function content_5682050b8e025($_smarty_tpl)
    {
        ?>
<div id="popupPageContainer" class="contentsDiv"><div class="paddingLeftRight10px"><?php 
        echo $_smarty_tpl->getSubTemplate(vtemplate_path('PopupSearch.tpl', $_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>
</div><div id="popupContents" class="paddingLeftRight10px"><?php 
        echo $_smarty_tpl->getSubTemplate(vtemplate_path('PopupContents.tpl', $_smarty_tpl->tpl_vars['MODULE_NAME']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>
</div><input type="hidden" class="triggerEventName" value="<?php 
        echo getPurifiedSmartyParameters('triggerEventName');
        ?>
"/></div></div><?php 
    }
    function content_567d66718d976($_smarty_tpl)
    {
        ?>
<input type="hidden" id="currentView" value="<?php 
        echo getPurifiedSmartyParameters('view');
        ?>
" /><input type="hidden" id="activity_view" value="<?php 
        echo $_smarty_tpl->tpl_vars['CURRENT_USER']->value->get('activity_view');
        ?>
" /><input type="hidden" id="time_format" value="<?php 
        echo $_smarty_tpl->tpl_vars['CURRENT_USER']->value->get('hour_format');
        ?>
" /><input type="hidden" id="start_hour" value="<?php 
        echo $_smarty_tpl->tpl_vars['CURRENT_USER']->value->get('start_hour');
        ?>
" /><input type="hidden" id="date_format" value="<?php 
        echo $_smarty_tpl->tpl_vars['CURRENT_USER']->value->get('date_format');
        ?>
" /><div class="container-fluid"><div class="row-fluid"><div class="span12"><p><!-- Divider --></p><div id="calendarview"></div></div></div></div><?php 
    }
    function content_568ddffff3f03($_smarty_tpl)
    {
        ?>
<ul><?php 
        $_smarty_tpl->tpl_vars['CHILD_ROLE'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['CHILD_ROLE']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['ROLE']->value->getChildren();
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['CHILD_ROLE']->key => $_smarty_tpl->tpl_vars['CHILD_ROLE']->value) {
            $_smarty_tpl->tpl_vars['CHILD_ROLE']->_loop = true;
            ?>
<li data-role="<?php 
            echo $_smarty_tpl->tpl_vars['CHILD_ROLE']->value->getParentRoleString();
            ?>
" data-roleid="<?php 
            echo $_smarty_tpl->tpl_vars['CHILD_ROLE']->value->getId();
            ?>
"><?php 
            ob_start();
            echo getPurifiedSmartyParameters('view');
            $_tmp1 = ob_get_clean();
            $_smarty_tpl->tpl_vars['VIEW_NAME'] = new Smarty_variable($_tmp1, null, 0);
            ob_start();
            echo getPurifiedSmartyParameters('type');
            $_tmp2 = ob_get_clean();
            $_smarty_tpl->tpl_vars['VIEW_TYPE'] = new Smarty_variable($_tmp2, null, 0);
            ?>
<div <?php 
            if ($_smarty_tpl->tpl_vars['VIEW_NAME']->value != 'Popup') {
                ?>
class="toolbar-handle"<?php 
            }
            ?>
><?php 
            if ($_smarty_tpl->tpl_vars['VIEW_TYPE']->value == 'Transfer') {
                $_smarty_tpl->tpl_vars["SOURCE_ROLE_SUBPATTERN"] = new Smarty_variable('::' . $_smarty_tpl->tpl_vars['SOURCE_ROLE']->value->getId(), null, 0);
                if (strpos($_smarty_tpl->tpl_vars['CHILD_ROLE']->value->getParentRoleString(), $_smarty_tpl->tpl_vars['SOURCE_ROLE_SUBPATTERN']->value) !== false) {
                    echo $_smarty_tpl->tpl_vars['CHILD_ROLE']->value->getName();
                } else {
                    ?>
<a href="<?php 
                    echo $_smarty_tpl->tpl_vars['CHILD_ROLE']->value->getEditViewUrl();
                    ?>
" data-url="<?php 
                    echo $_smarty_tpl->tpl_vars['CHILD_ROLE']->value->getEditViewUrl();
                    ?>
" class="btn roleEle" rel="tooltip" ><?php 
                    echo $_smarty_tpl->tpl_vars['CHILD_ROLE']->value->getName();
                    ?>
</a><?php 
                }
            } else {
                ?>
<a href="<?php 
                echo $_smarty_tpl->tpl_vars['CHILD_ROLE']->value->getEditViewUrl();
                ?>
" data-url="<?php 
                echo $_smarty_tpl->tpl_vars['CHILD_ROLE']->value->getEditViewUrl();
                ?>
" class="btn draggable droppable" rel="tooltip" title="<?php 
                echo vtranslate('LBL_CLICK_TO_EDIT_OR_DRAG_TO_MOVE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['CHILD_ROLE']->value->getName();
                ?>
</a><?php 
            }
            if ($_smarty_tpl->tpl_vars['VIEW_NAME']->value != 'Popup') {
                ?>
<div class="toolbar">&nbsp;<a href="<?php 
                echo $_smarty_tpl->tpl_vars['CHILD_ROLE']->value->getCreateChildUrl();
                ?>
" data-url="<?php 
                echo $_smarty_tpl->tpl_vars['CHILD_ROLE']->value->getCreateChildUrl();
                ?>
" title="<?php 
                echo vtranslate('LBL_ADD_RECORD', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                ?>
"><span class="icon-plus-sign"></span></a>&nbsp;<a data-id="<?php 
                echo $_smarty_tpl->tpl_vars['CHILD_ROLE']->value->getId();
                ?>
" href="javascript:;" data-url="<?php 
                echo $_smarty_tpl->tpl_vars['CHILD_ROLE']->value->getDeleteActionUrl();
                ?>
" data-action="modal" title="<?php 
                echo vtranslate('LBL_DELETE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
                ?>
"><span class="icon-trash"></span></a></div><?php 
            }
            ?>
</div><?php 
            $_smarty_tpl->tpl_vars["ROLE"] = new Smarty_variable($_smarty_tpl->tpl_vars['CHILD_ROLE']->value, null, 0);
            echo $_smarty_tpl->getSubTemplate(vtemplate_path("RoleTree.tpl", "Settings:Roles"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
            ?>
</li><?php 
        }
        ?>
</ul><?php 
    }
    function content_567d644a1d2e5($_smarty_tpl)
    {
        $_smarty_tpl->tpl_vars["FIELD_INFO"] = new Smarty_variable(Vtiger_Util_Helper::toSafeHTML(Zend_Json::encode($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldInfo())), null, 0);
        $_smarty_tpl->tpl_vars["SPECIAL_VALIDATOR"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getValidator(), null, 0);
        $_smarty_tpl->tpl_vars["FIELD_NAME"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name'), null, 0);
        if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype') == '71') {
            ?>
<div class="input-prepend"><span class="add-on"><?php 
            echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('currency_symbol');
            ?>
</span><input id="<?php 
            echo $_smarty_tpl->tpl_vars['MODULE']->value;
            ?>
_editView_fieldName_<?php 
            echo $_smarty_tpl->tpl_vars['FIELD_NAME']->value;
            ?>
" type="text" class="input-medium currencyField" data-validation-engine="validate[<?php 
            if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatory() == true) {
                ?>
 required,<?php 
            }
            ?>
funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" name="<?php 
            echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldName();
            ?>
"data-fieldinfo='<?php 
            echo $_smarty_tpl->tpl_vars['FIELD_INFO']->value;
            ?>
' value="<?php 
            echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getEditViewDisplayValue($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'));
            ?>
" <?php 
            if (!empty($_smarty_tpl->tpl_vars['SPECIAL_VALIDATOR']->value)) {
                ?>
data-validator='<?php 
                echo Zend_Json::encode($_smarty_tpl->tpl_vars['SPECIAL_VALIDATOR']->value);
                ?>
'<?php 
            }
            ?>
data-decimal-seperator='<?php 
            echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('currency_decimal_separator');
            ?>
' data-group-seperator='<?php 
            echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('currency_grouping_separator');
            ?>
' data-number-of-decimal-places='<?php 
            echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('no_of_currency_decimals');
            ?>
'/></div><?php 
        } elseif ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype') == '72' && $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getName() == 'unit_price') {
            ?>
<div class="input-prepend"><div class="row-fluid"><span class="span1"><span class="add-on row-fluid"><?php 
            echo $_smarty_tpl->tpl_vars['BASE_CURRENCY_SYMBOL']->value;
            ?>
</span></span><span class="span10 row-fluid"><input id="<?php 
            echo $_smarty_tpl->tpl_vars['MODULE']->value;
            ?>
-editview-fieldname-<?php 
            echo $_smarty_tpl->tpl_vars['FIELD_NAME']->value;
            ?>
" type="text" class="span6 unitPrice currencyField" name="<?php 
            echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldName();
            ?>
" data-validation-engine="validate[<?php 
            if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatory() == true) {
                ?>
 required,<?php 
            }
            ?>
funcCall[Vtiger_Base_Validator_Js.invokeValidation]]"data-fieldinfo='<?php 
            echo $_smarty_tpl->tpl_vars['FIELD_INFO']->value;
            ?>
'  value="<?php 
            echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getDisplayValue($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'));
            ?>
" <?php 
            if (!empty($_smarty_tpl->tpl_vars['SPECIAL_VALIDATOR']->value)) {
                ?>
data-validator='<?php 
                echo Zend_Json::encode($_smarty_tpl->tpl_vars['SPECIAL_VALIDATOR']->value);
                ?>
'<?php 
            }
            ?>
data-decimal-seperator='<?php 
            echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('currency_decimal_separator');
            ?>
' data-group-seperator='<?php 
            echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('currency_grouping_separator');
            ?>
' data-number-of-decimal-places='<?php 
            echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('no_of_currency_decimals');
            ?>
'/><?php 
            ob_start();
            echo getPurifiedSmartyParameters('view');
            $_tmp1 = ob_get_clean();
            $_smarty_tpl->tpl_vars['VIEW_NAME'] = new Smarty_variable($_tmp1, null, 0);
            if ($_smarty_tpl->tpl_vars['VIEW_NAME']->value == 'Edit') {
                ?>
<a id="moreCurrencies" class="span cursorPointer"><?php 
                echo vtranslate('LBL_MORE_CURRENCIES', $_smarty_tpl->tpl_vars['MODULE']->value);
                ?>
>></a><span id="moreCurrenciesContainer" class="hide"></span><?php 
            }
            ?>
<input type="hidden" name="base_currency" value="<?php 
            echo $_smarty_tpl->tpl_vars['BASE_CURRENCY_NAME']->value;
            ?>
"><input type="hidden" name="cur_<?php 
            echo $_smarty_tpl->tpl_vars['BASE_CURRENCY_ID']->value;
            ?>
_check" value="on"><input type="hidden" id="requstedUnitPrice" name="<?php 
            echo $_smarty_tpl->tpl_vars['BASE_CURRENCY_NAME']->value;
            ?>
" value=""></span></div></div><?php 
        } else {
            ?>
<div class="input-prepend"><div class="row-fluid"><span class="span1"><span class="add-on row-fluid"><?php 
            echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('currency_symbol');
            ?>
</span></span><span class="span7"><input type="text" class="row-fluid currencyField" name="<?php 
            echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldName();
            ?>
" data-validation-engine="validate[<?php 
            if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatory() == true) {
                ?>
 required,<?php 
            }
            ?>
funcCall[Vtiger_Base_Validator_Js.invokeValidation]]"data-fieldinfo='<?php 
            echo $_smarty_tpl->tpl_vars['FIELD_INFO']->value;
            ?>
' value="<?php 
            echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getEditViewDisplayValue($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'));
            ?>
" <?php 
            if (!empty($_smarty_tpl->tpl_vars['SPECIAL_VALIDATOR']->value)) {
                ?>
data-validator=<?php 
                echo Zend_Json::encode($_smarty_tpl->tpl_vars['SPECIAL_VALIDATOR']->value);
            }
            ?>
 data-decimal-seperator='<?php 
            echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('currency_decimal_separator');
            ?>
' data-group-seperator='<?php 
            echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('currency_grouping_separator');
            ?>
' /></span></div></div><?php 
        }
    }
    function content_566fa76d8086c($_smarty_tpl)
    {
        $_smarty_tpl->tpl_vars['FIELD_NAME'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name'), null, 0);
        $_smarty_tpl->tpl_vars["REFERENCE_LIST"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getReferenceList(), null, 0);
        $_smarty_tpl->tpl_vars["REFERENCE_LIST_COUNT"] = new Smarty_variable(count($_smarty_tpl->tpl_vars['REFERENCE_LIST']->value), null, 0);
        $_smarty_tpl->tpl_vars["FIELD_INFO"] = new Smarty_variable(Zend_Json::encode($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldInfo()), null, 0);
        $_smarty_tpl->tpl_vars["SPECIAL_VALIDATOR"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getValidator(), null, 0);
        ob_start();
        echo $_smarty_tpl->tpl_vars['REFERENCE_LIST_COUNT']->value;
        $_tmp1 = ob_get_clean();
        if ($_tmp1 == 1) {
            ?>
<input name="popupReferenceModule" type="hidden" value="<?php 
            echo $_smarty_tpl->tpl_vars['REFERENCE_LIST']->value[0];
            ?>
" /><?php 
        }
        ob_start();
        echo $_smarty_tpl->tpl_vars['REFERENCE_LIST_COUNT']->value;
        $_tmp2 = ob_get_clean();
        if ($_tmp2 > 1) {
            $_smarty_tpl->tpl_vars["DISPLAYID"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'), null, 0);
            $_smarty_tpl->tpl_vars["REFERENCED_MODULE_STRUCT"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getUITypeModel()->getReferenceModule($_smarty_tpl->tpl_vars['DISPLAYID']->value), null, 0);
            if (!empty($_smarty_tpl->tpl_vars['REFERENCED_MODULE_STRUCT']->value)) {
                $_smarty_tpl->tpl_vars["REFERENCED_MODULE_NAME"] = new Smarty_variable($_smarty_tpl->tpl_vars['REFERENCED_MODULE_STRUCT']->value->get('name'), null, 0);
            }
            if (in_array($_smarty_tpl->tpl_vars['REFERENCED_MODULE_NAME']->value, $_smarty_tpl->tpl_vars['REFERENCE_LIST']->value)) {
                ?>
<input name="popupReferenceModule" type="hidden" value="<?php 
                echo $_smarty_tpl->tpl_vars['REFERENCED_MODULE_NAME']->value;
                ?>
" /><?php 
            } else {
                ?>
<input name="popupReferenceModule" type="hidden" value="<?php 
                echo $_smarty_tpl->tpl_vars['REFERENCE_LIST']->value[0];
                ?>
" /><?php 
            }
        }
        ?>
<input name="<?php 
        echo $_smarty_tpl->tpl_vars['FIELD_NAME']->value;
        ?>
" type="hidden" value="<?php 
        echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue');
        ?>
" class="sourceField" data-displayvalue='<?php 
        echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getEditViewDisplayValue($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'));
        ?>
' data-fieldinfo='<?php 
        echo $_smarty_tpl->tpl_vars['FIELD_INFO']->value;
        ?>
' data-multiple='true' data-validation-engine="validate[<?php 
        if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatory() == true) {
            ?>
 required,<?php 
        }
        ?>
funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" <?php 
        if (!empty($_smarty_tpl->tpl_vars['SPECIAL_VALIDATOR']->value)) {
            ?>
data-validator=<?php 
            echo Zend_Json::encode($_smarty_tpl->tpl_vars['SPECIAL_VALIDATOR']->value);
        }
        ?>
><?php 
        $_smarty_tpl->tpl_vars["displayId"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'), null, 0);
        ?>
<div class="row-fluid input-prepend input-append"><span class="add-on clearReferenceSelection cursorPointer"><i class='icon-remove-sign' title="<?php 
        echo vtranslate('LBL_CLEAR', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
"></i></span><?php 
        ob_start();
        echo getPurifiedSmartyParameters('view');
        $_tmp3 = ob_get_clean();
        $_smarty_tpl->tpl_vars['VIEW_NAME'] = new Smarty_variable($_tmp3, null, 0);
        ?>
<input id="<?php 
        echo $_smarty_tpl->tpl_vars['FIELD_NAME']->value;
        ?>
_display" name="<?php 
        echo $_smarty_tpl->tpl_vars['FIELD_NAME']->value;
        ?>
_display" type="text" class="<?php 
        if ($_smarty_tpl->tpl_vars['VIEW_NAME']->value == 'Edit') {
            ?>
 span7 <?php 
        } else {
            ?>
 span8 <?php 
        }
        ?>
	marginLeftZero autoComplete" <?php 
        if (!empty($_smarty_tpl->tpl_vars['displayId']->value)) {
            ?>
readonly="true"<?php 
        }
        ?>
value="<?php 
        echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getEditViewDisplayValue($_smarty_tpl->tpl_vars['displayId']->value);
        ?>
" data-validation-engine="validate[<?php 
        if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatory() == true) {
            ?>
 required,<?php 
        }
        ?>
funcCall[Vtiger_Base_Validator_Js.invokeValidation]]"data-fieldinfo='<?php 
        echo $_smarty_tpl->tpl_vars['FIELD_INFO']->value;
        ?>
' placeholder="<?php 
        echo vtranslate('LBL_TYPE_SEARCH', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
"<?php 
        if (!empty($_smarty_tpl->tpl_vars['SPECIAL_VALIDATOR']->value)) {
            ?>
data-validator='<?php 
            echo Zend_Json::encode($_smarty_tpl->tpl_vars['SPECIAL_VALIDATOR']->value);
            ?>
'<?php 
        }
        ?>
/><span class="add-on relatedPopup cursorPointer"><i class="icon-search relatedPopup" title="<?php 
        echo vtranslate('LBL_SELECT', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
" ></i></span><!-- Show the add button only if it is edit view  --><?php 
        if ($_smarty_tpl->tpl_vars['VIEW_NAME']->value == 'Edit') {
            ?>
<span class="add-on cursorPointer createReferenceRecord"><i class='icon-plus' title="<?php 
            echo vtranslate('LBL_CREATE', $_smarty_tpl->tpl_vars['MODULE']->value);
            ?>
"></i></span><?php 
        }
        ?>
<input type="hidden" name="relatedContactInfo" data-value='<?php 
        echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['RELATED_CONTACTS']->value);
        ?>
' /></div>
<?php 
    }
    function content_5674f23b5217a($_smarty_tpl)
    {
        $_smarty_tpl->tpl_vars["FIELD_INFO"] = new Smarty_variable(Zend_Json::encode($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldInfo()), null, 0);
        $_smarty_tpl->tpl_vars["SPECIAL_VALIDATOR"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getValidator(), null, 0);
        $_smarty_tpl->tpl_vars["FIELD_NAME"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldName(), null, 0);
        if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype') == '19' || $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype') == '20') {
            ?>
<textarea class="row-fluid <?php 
            if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isNameField()) {
                ?>
nameField<?php 
            }
            ?>
" name="<?php 
            echo $_smarty_tpl->tpl_vars['FIELD_NAME']->value;
            ?>
" <?php 
            if ($_smarty_tpl->tpl_vars['FIELD_NAME']->value == "notecontent") {
                ?>
id="<?php 
                echo $_smarty_tpl->tpl_vars['FIELD_NAME']->value;
                ?>
"<?php 
            }
            ?>
 data-validation-engine="validate[<?php 
            if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatory() == true) {
                ?>
required,<?php 
            }
            ?>
funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" data-fieldinfo='<?php 
            echo $_smarty_tpl->tpl_vars['FIELD_INFO']->value;
            ?>
' <?php 
            if (!empty($_smarty_tpl->tpl_vars['SPECIAL_VALIDATOR']->value)) {
                ?>
data-validator=<?php 
                echo Zend_Json::encode($_smarty_tpl->tpl_vars['SPECIAL_VALIDATOR']->value);
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue');
            ?>
</textarea><?php 
        } else {
            ?>
<textarea class="row-fluid <?php 
            if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isNameField()) {
                ?>
nameField<?php 
            }
            ?>
" name="<?php 
            echo $_smarty_tpl->tpl_vars['FIELD_NAME']->value;
            ?>
" data-validation-engine="validate[<?php 
            if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatory() == true) {
                ?>
required,<?php 
            }
            ?>
funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" data-fieldinfo='<?php 
            echo $_smarty_tpl->tpl_vars['FIELD_INFO']->value;
            ?>
' <?php 
            if (!empty($_smarty_tpl->tpl_vars['SPECIAL_VALIDATOR']->value)) {
                ?>
data-validator=<?php 
                echo Zend_Json::encode($_smarty_tpl->tpl_vars['SPECIAL_VALIDATOR']->value);
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue');
            ?>
</textarea><?php 
            ob_start();
            echo getPurifiedSmartyParameters('view');
            $_tmp1 = ob_get_clean();
            $_smarty_tpl->tpl_vars['VIEW_NAME'] = new Smarty_variable($_tmp1, null, 0);
            if ($_smarty_tpl->tpl_vars['MODULE_NAME']->value != 'Webforms' && $_smarty_tpl->tpl_vars['VIEW_NAME']->value != 'Detail') {
                if ($_smarty_tpl->tpl_vars['FIELD_NAME']->value == "bill_street") {
                    ?>
<div><a class="cursorPointer" name="copyAddress" data-target="shipping"><?php 
                    echo vtranslate('LBL_COPY_SHIPPING_ADDRESS', $_smarty_tpl->tpl_vars['MODULE']->value);
                    ?>
</a></div><?php 
                } elseif ($_smarty_tpl->tpl_vars['FIELD_NAME']->value == "ship_street") {
                    ?>
<div><a class="cursorPointer" name="copyAddress" data-target="billing"><?php 
                    echo vtranslate('LBL_COPY_BILLING_ADDRESS', $_smarty_tpl->tpl_vars['MODULE']->value);
                    ?>
</a></div><?php 
                }
            }
        }
    }
    function content_5672314ff2e05($_smarty_tpl)
    {
        ?>

<div>
	<?php 
        $_smarty_tpl->tpl_vars['ACTIVITY'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['ACTIVITY']->_loop = false;
        $_smarty_tpl->tpl_vars['INDEX'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['ACTIVITIES']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['ACTIVITY']->key => $_smarty_tpl->tpl_vars['ACTIVITY']->value) {
            $_smarty_tpl->tpl_vars['ACTIVITY']->_loop = true;
            $_smarty_tpl->tpl_vars['INDEX']->value = $_smarty_tpl->tpl_vars['ACTIVITY']->key;
            ?>
	<div>
		<div class='pull-left'>
			<?php 
            if ($_smarty_tpl->tpl_vars['ACTIVITY']->value->get('activitytype') == 'Task') {
                ?>
				<image src="<?php 
                echo vimage_path('Tasks.png');
                ?>
" width="24px"/>&nbsp;&nbsp;
			<?php 
            } else {
                ?>
				<image src="<?php 
                echo vimage_path('Calendar.png');
                ?>
" width="24px" />&nbsp;&nbsp;
			<?php 
            }
            ?>
		</div>
		<div>
			<div class='pull-left' style='margin-top:5px'>
				<?php 
            $_smarty_tpl->tpl_vars['PARENT_ID'] = new Smarty_variable($_smarty_tpl->tpl_vars['ACTIVITY']->value->get('parent_id'), null, 0);
            ?>
				<?php 
            $_smarty_tpl->tpl_vars['CONTACT_ID'] = new Smarty_variable($_smarty_tpl->tpl_vars['ACTIVITY']->value->get('contact_id'), null, 0);
            ?>
				<a href="<?php 
            echo $_smarty_tpl->tpl_vars['ACTIVITY']->value->getDetailViewUrl();
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['ACTIVITY']->value->get('subject');
            ?>
</a><?php 
            if ($_smarty_tpl->tpl_vars['PARENT_ID']->value) {
                ?>
 <?php 
                echo vtranslate('LBL_FOR');
                ?>
 <?php 
                echo $_smarty_tpl->tpl_vars['ACTIVITY']->value->getDisplayValue('parent_id');
            } elseif ($_smarty_tpl->tpl_vars['CONTACT_ID']->value) {
                ?>
 <?php 
                echo vtranslate('LBL_FOR');
                ?>
 <?php 
                echo $_smarty_tpl->tpl_vars['ACTIVITY']->value->getDisplayValue('contact_id');
            }
            ?>
			</div>
				<?php 
            $_smarty_tpl->tpl_vars['START_DATE'] = new Smarty_variable($_smarty_tpl->tpl_vars['ACTIVITY']->value->get('date_start'), null, 0);
            ?>
				<?php 
            $_smarty_tpl->tpl_vars['START_TIME'] = new Smarty_variable($_smarty_tpl->tpl_vars['ACTIVITY']->value->get('time_start'), null, 0);
            ?>
				
				<?php 
            $_smarty_tpl->tpl_vars['DUE_DATE'] = new Smarty_variable($_smarty_tpl->tpl_vars['ACTIVITY']->value->get('due_date'), null, 0);
            ?>
				<?php 
            $_smarty_tpl->tpl_vars['DUE_TIME'] = new Smarty_variable($_smarty_tpl->tpl_vars['ACTIVITY']->value->get('time_end'), null, 0);
            ?>
			<p class='pull-right muted' style='margin-top:5px;padding-right:5px;'><small title="<?php 
            echo Vtiger_Util_Helper::formatDateTimeIntoDayString($_smarty_tpl->tpl_vars['START_DATE']->value . " " . $_smarty_tpl->tpl_vars['START_TIME']->value);
            ?>
 <?php 
            echo vtranslate('LBL_TO');
            ?>
 <?php 
            echo Vtiger_Util_Helper::formatDateTimeIntoDayString($_smarty_tpl->tpl_vars['DUE_DATE']->value . " " . $_smarty_tpl->tpl_vars['DUE_TIME']->value);
            ?>
"><?php 
            echo Vtiger_Util_Helper::formatDateDiffInStrings($_smarty_tpl->tpl_vars['START_DATE']->value . " " . $_smarty_tpl->tpl_vars['START_TIME']->value);
            ?>
</small></p>
			<div class='clearfix'></div>
		</div>
		<div class='clearfix'></div>
	</div>
	<?php 
        }
        if (!$_smarty_tpl->tpl_vars['ACTIVITY']->_loop) {
            ?>
		<span class="noDataMsg">
                    <?php 
            ob_start();
            echo getPurifiedSmartyParameters('name');
            $_tmp1 = ob_get_clean();
            $_smarty_tpl->tpl_vars['REQUEST_NAME'] = new Smarty_variable($_tmp1, null, 0);
            ?>
			<?php 
            if ($_smarty_tpl->tpl_vars['REQUEST_NAME']->value == 'OverdueActivities') {
                ?>
				<?php 
                echo vtranslate('LBL_NO_OVERDUE_ACTIVITIES', $_smarty_tpl->tpl_vars['MODULE_NAME']->value);
                ?>

			<?php 
            } else {
                ?>
				<?php 
                echo vtranslate('LBL_NO_SCHEDULED_ACTIVITIES', $_smarty_tpl->tpl_vars['MODULE_NAME']->value);
                ?>

			<?php 
            }
            ?>
		</span>
	<?php 
        }
        ?>

<?php 
        if ($_smarty_tpl->tpl_vars['PAGING']->value->get('nextPageExists') == 'true') {
            ?>
	<div class='pull-right' style='margin-top:5px;padding-right:5px;'>
        <a href="javascript:;" name="history_more" data-url="<?php 
            echo $_smarty_tpl->tpl_vars['WIDGET']->value->getUrl();
            ?>
&page=<?php 
            echo $_smarty_tpl->tpl_vars['PAGING']->value->getNextPage();
            ?>
"><?php 
            echo vtranslate('LBL_MORE');
            ?>
...</a>
        <br />
        <br />
        <br />
        <br />
	</div>
<?php 
        } else {
            ?>
    <br />
    <br />
    <br />
    <br />
<?php 
        }
        ?>
</div><?php 
    }
    function content_56880405add39($_smarty_tpl)
    {
        $_smarty_tpl->tpl_vars["FIELD_INFO"] = new Smarty_variable(Vtiger_Util_Helper::toSafeHTML(Zend_Json::encode($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldInfo())), null, 0);
        $_smarty_tpl->tpl_vars['PICKLIST_VALUES'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getPicklistValues(), null, 0);
        $_smarty_tpl->tpl_vars["SPECIAL_VALIDATOR"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getValidator(), null, 0);
        $_smarty_tpl->tpl_vars["FIELD_VALUE_LIST"] = new Smarty_variable(explode(' |##| ', $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue')), null, 0);
        ?>
<input type="hidden" name="<?php 
        echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldName();
        ?>
" value="" /><?php 
        ob_start();
        echo getPurifiedSmartyParameters('view');
        $_tmp1 = ob_get_clean();
        $_smarty_tpl->tpl_vars['VIEW_NAME'] = new Smarty_variable($_tmp1, null, 0);
        ?>
<select id="<?php 
        echo $_smarty_tpl->tpl_vars['MODULE']->value;
        ?>
_<?php 
        echo $_smarty_tpl->tpl_vars['VIEW_NAME']->value;
        ?>
_fieldName_<?php 
        echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name');
        ?>
" multiple class="select2" name="<?php 
        echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldName();
        ?>
[]" data-fieldinfo='<?php 
        echo $_smarty_tpl->tpl_vars['FIELD_INFO']->value;
        ?>
' <?php 
        if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatory() == true) {
            ?>
 data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" <?php 
            if (!empty($_smarty_tpl->tpl_vars['SPECIAL_VALIDATOR']->value)) {
                ?>
data-validator='<?php 
                echo Zend_Json::encode($_smarty_tpl->tpl_vars['SPECIAL_VALIDATOR']->value);
                ?>
'<?php 
            }
            ?>
 <?php 
        }
        ?>
 style="width: 60%"><?php 
        $_smarty_tpl->tpl_vars['PICKLIST_VALUE'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->_loop = false;
        $_smarty_tpl->tpl_vars['PICKLIST_NAME'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['PICKLIST_VALUES']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->key => $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->value) {
            $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->_loop = true;
            $_smarty_tpl->tpl_vars['PICKLIST_NAME']->value = $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->key;
            ?>
<option value="<?php 
            echo Vtiger_Util_Helper::toSafeHTML($_smarty_tpl->tpl_vars['PICKLIST_NAME']->value);
            ?>
" <?php 
            if (in_array(Vtiger_Util_Helper::toSafeHTML($_smarty_tpl->tpl_vars['PICKLIST_NAME']->value), $_smarty_tpl->tpl_vars['FIELD_VALUE_LIST']->value)) {
                ?>
 selected <?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->value;
            ?>
</option><?php 
        }
        ?>
</select>
<?php 
    }
    function content_568552caeb3e0($_smarty_tpl)
    {
        $_smarty_tpl->tpl_vars['jsModel'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['jsModel']->_loop = false;
        $_smarty_tpl->tpl_vars['index'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['SCRIPTS']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['jsModel']->key => $_smarty_tpl->tpl_vars['jsModel']->value) {
            $_smarty_tpl->tpl_vars['jsModel']->_loop = true;
            $_smarty_tpl->tpl_vars['index']->value = $_smarty_tpl->tpl_vars['jsModel']->key;
            ?>
<script type="<?php 
            echo $_smarty_tpl->tpl_vars['jsModel']->value->getType();
            ?>
" src="<?php 
            echo $_smarty_tpl->tpl_vars['jsModel']->value->getSrc();
            ?>
"></script><?php 
        }
        ?>
<div class="modelContainer"><div class="modal-header contentsBackground"><button class="close" aria-hidden="true" data-dismiss="modal" type="button" title="<?php 
        echo vtranslate('LBL_CLOSE');
        ?>
">&times;</button><h3><?php 
        echo vtranslate('LBL_QUICK_CREATE', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
 <?php 
        echo vtranslate('LBL_EVENT_OR_TASK', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
</h3></div><form class="form-horizontal recordEditView" id="quickCreate" name="QuickCreate" method="post" action="index.php"><?php 
        if (!empty($_smarty_tpl->tpl_vars['PICKIST_DEPENDENCY_DATASOURCE']->value)) {
            ?>
<input type="hidden" name="picklistDependency" value='<?php 
            echo Vtiger_Util_Helper::toSafeHTML($_smarty_tpl->tpl_vars['PICKIST_DEPENDENCY_DATASOURCE']->value);
            ?>
' /><?php 
        }
        ?>
<input type="hidden" name="module" value="<?php 
        echo $_smarty_tpl->tpl_vars['MODULE']->value;
        ?>
"><input type="hidden" name="action" value="SaveAjax"><input type="hidden" name="defaultCallDuration" value="<?php 
        echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('callduration');
        ?>
" /><input type="hidden" name="defaultOtherEventDuration" value="<?php 
        echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('othereventduration');
        ?>
" /><input type="hidden" name="userChangedEndDateTime" value="0" /><!-- Random number is used to make specific tab is opened --><?php 
        $_smarty_tpl->tpl_vars["RAND_NUMBER"] = new Smarty_variable(rand(), null, 0);
        ?>
<div class="modal-body tabbable" style="padding:0px"><ul class="nav nav-pills" style="margin-bottom:0px;padding-left:5px"><li class="active"><a href="javascript:void(0);" data-target=".EventsQuikcCreateContents_<?php 
        echo $_smarty_tpl->tpl_vars['RAND_NUMBER']->value;
        ?>
" data-toggle="tab" data-tab-name="Event"><?php 
        echo vtranslate('LBL_EVENT', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
</a></li><li class=""><a href="javascript:void(0);" data-target=".CalendarQuikcCreateContents_<?php 
        echo $_smarty_tpl->tpl_vars['RAND_NUMBER']->value;
        ?>
 " data-toggle="tab" data-tab-name="Task"><?php 
        echo vtranslate('LBL_TASK', $_smarty_tpl->tpl_vars['MODULE']->value);
        ?>
</a></li></ul><div class="tab-content overflowVisible"><?php 
        $_smarty_tpl->tpl_vars["CALENDAR_MODULE_MODEL"] = new Smarty_variable($_smarty_tpl->tpl_vars['QUICK_CREATE_CONTENTS']->value['Calendar']['moduleModel'], null, 0);
        $_smarty_tpl->tpl_vars['MODULE_DETAILS'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['MODULE_DETAILS']->_loop = false;
        $_smarty_tpl->tpl_vars['MODULE_NAME'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['QUICK_CREATE_CONTENTS']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['MODULE_DETAILS']->key => $_smarty_tpl->tpl_vars['MODULE_DETAILS']->value) {
            $_smarty_tpl->tpl_vars['MODULE_DETAILS']->_loop = true;
            $_smarty_tpl->tpl_vars['MODULE_NAME']->value = $_smarty_tpl->tpl_vars['MODULE_DETAILS']->key;
            ?>
<div class="<?php 
            echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value;
            ?>
QuikcCreateContents_<?php 
            echo $_smarty_tpl->tpl_vars['RAND_NUMBER']->value;
            ?>
 tab-pane <?php 
            if ($_smarty_tpl->tpl_vars['MODULE_NAME']->value == 'Events') {
                ?>
 active in <?php 
            }
            ?>
fade"><?php 
            $_smarty_tpl->tpl_vars["RECORD_STRUCTURE_MODEL"] = new Smarty_variable($_smarty_tpl->tpl_vars['QUICK_CREATE_CONTENTS']->value[$_smarty_tpl->tpl_vars['MODULE_NAME']->value]['recordStructureModel'], null, 0);
            $_smarty_tpl->tpl_vars["RECORD_STRUCTURE"] = new Smarty_variable($_smarty_tpl->tpl_vars['QUICK_CREATE_CONTENTS']->value[$_smarty_tpl->tpl_vars['MODULE_NAME']->value]['recordStructure'], null, 0);
            $_smarty_tpl->tpl_vars["MODULE_MODEL"] = new Smarty_variable($_smarty_tpl->tpl_vars['QUICK_CREATE_CONTENTS']->value[$_smarty_tpl->tpl_vars['MODULE_NAME']->value]['moduleModel'], null, 0);
            ?>
<div class="quickCreateContent"><div style='margin:5px'><table class="massEditTable table table-bordered"><tr><?php 
            $_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable(0, null, 0);
            $_smarty_tpl->tpl_vars['FIELD_MODEL'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['FIELD_MODEL']->_loop = false;
            $_smarty_tpl->tpl_vars['FIELD_NAME'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['RECORD_STRUCTURE']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['FIELD_MODEL']->total = $_smarty_tpl->_count($_from);
            $_smarty_tpl->tpl_vars['FIELD_MODEL']->iteration = 0;
            foreach ($_from as $_smarty_tpl->tpl_vars['FIELD_MODEL']->key => $_smarty_tpl->tpl_vars['FIELD_MODEL']->value) {
                $_smarty_tpl->tpl_vars['FIELD_MODEL']->_loop = true;
                $_smarty_tpl->tpl_vars['FIELD_NAME']->value = $_smarty_tpl->tpl_vars['FIELD_MODEL']->key;
                $_smarty_tpl->tpl_vars['FIELD_MODEL']->iteration++;
                $_smarty_tpl->tpl_vars['FIELD_MODEL']->last = $_smarty_tpl->tpl_vars['FIELD_MODEL']->iteration === $_smarty_tpl->tpl_vars['FIELD_MODEL']->total;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['blockfields']['last'] = $_smarty_tpl->tpl_vars['FIELD_MODEL']->last;
                $_smarty_tpl->tpl_vars["isReferenceField"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType(), null, 0);
                $_smarty_tpl->tpl_vars["refrenceList"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getReferenceList(), null, 0);
                $_smarty_tpl->tpl_vars["refrenceListCount"] = new Smarty_variable(count($_smarty_tpl->tpl_vars['refrenceList']->value), null, 0);
                if ($_smarty_tpl->tpl_vars['COUNTER']->value == 2) {
                    ?>
</tr><tr><?php 
                    $_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable(1, null, 0);
                } else {
                    $_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable($_smarty_tpl->tpl_vars['COUNTER']->value + 1, null, 0);
                }
                ?>
<td class="fieldLabel alignMiddle"><?php 
                if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatory() == true) {
                    ?>
 <span class="redColor">*</span> <?php 
                }
                ob_start();
                echo $_smarty_tpl->tpl_vars['isReferenceField']->value;
                $_tmp1 = ob_get_clean();
                if ($_tmp1 == "reference") {
                    if ($_smarty_tpl->tpl_vars['refrenceListCount']->value > 1) {
                        ?>
<select style="width: 150px;" class="chzn-select referenceModulesList" id="referenceModulesList"><optgroup><?php 
                        $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['value']->_loop = false;
                        $_smarty_tpl->tpl_vars['index'] = new Smarty_Variable();
                        $_from = $_smarty_tpl->tpl_vars['refrenceList']->value;
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) {
                            $_smarty_tpl->tpl_vars['value']->_loop = true;
                            $_smarty_tpl->tpl_vars['index']->value = $_smarty_tpl->tpl_vars['value']->key;
                            ?>
<option value="<?php 
                            echo $_smarty_tpl->tpl_vars['value']->value;
                            ?>
"><?php 
                            echo vtranslate($_smarty_tpl->tpl_vars['value']->value, $_smarty_tpl->tpl_vars['value']->value);
                            ?>
</option><?php 
                        }
                        ?>
</optgroup></select><?php 
                    } else {
                        echo vtranslate($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('label'), $_smarty_tpl->tpl_vars['MODULE']->value);
                    }
                    echo vtranslate($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('label'), $_smarty_tpl->tpl_vars['MODULE']->value);
                } else {
                    echo vtranslate($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('label'), $_smarty_tpl->tpl_vars['MODULE']->value);
                }
                ?>
</td><td class="fieldValue" <?php 
                if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype') == '19') {
                    ?>
 colspan="3" <?php 
                    $_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable($_smarty_tpl->tpl_vars['COUNTER']->value + 1, null, 0);
                    ?>
 <?php 
                }
                ?>
><?php 
                echo $_smarty_tpl->getSubTemplate(vtemplate_path($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getUITypeModel()->getTemplateName(), $_smarty_tpl->tpl_vars['MODULE_NAME']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
                ?>
</td><?php 
                if ($_smarty_tpl->tpl_vars['MODULE_NAME']->value == 'Events' && $_smarty_tpl->getVariable('smarty')->value['foreach']['blockfields']['last']) {
                    echo $_smarty_tpl->getSubTemplate(vtemplate_path('uitypes/FollowUp.tpl', $_smarty_tpl->tpl_vars['MODULE_NAME']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('MODULE' => $_smarty_tpl->tpl_vars['MODULE_NAME']->value), 0);
                }
            }
            ?>
</tr><?php 
            ob_start();
            echo getPurifiedSmartyParameters('parent_id');
            $_tmp2 = ob_get_clean();
            $_smarty_tpl->tpl_vars['PARENT_ID'] = new Smarty_variable($_tmp2, null, 0);
            ob_start();
            echo getPurifiedSmartyParameters('contact_id');
            $_tmp3 = ob_get_clean();
            $_smarty_tpl->tpl_vars['CONTACT_ID'] = new Smarty_variable($_tmp3, null, 0);
            if ($_smarty_tpl->tpl_vars['PARENT_ID']->value != '') {
                ?>
<input type="hidden" name="parent_id" value="<?php 
                echo $_smarty_tpl->tpl_vars['PARENT_ID']->value;
                ?>
" /><?php 
            } elseif ($_smarty_tpl->tpl_vars['CONTACT_ID']->value != '') {
                ?>
<input type="hidden" name="contact_id" value="<?php 
                echo $_smarty_tpl->tpl_vars['CONTACT_ID']->value;
                ?>
" /><?php 
            }
            ?>
</table></div></div><div class="modal-footer quickCreateActions"><?php 
            if ($_smarty_tpl->tpl_vars['MODULE_NAME']->value == 'Calendar') {
                $_smarty_tpl->tpl_vars["EDIT_VIEW_URL"] = new Smarty_variable($_smarty_tpl->tpl_vars['CALENDAR_MODULE_MODEL']->value->getCreateTaskRecordUrl(), null, 0);
            } else {
                $_smarty_tpl->tpl_vars["EDIT_VIEW_URL"] = new Smarty_variable($_smarty_tpl->tpl_vars['CALENDAR_MODULE_MODEL']->value->getCreateEventRecordUrl(), null, 0);
            }
            ?>
<a class="cancelLink cancelLinkContainer pull-right" type="reset" data-dismiss="modal"><?php 
            echo vtranslate('LBL_CANCEL', $_smarty_tpl->tpl_vars['MODULE']->value);
            ?>
</a><button class="btn btn-success" type="submit"><strong><?php 
            echo vtranslate('LBL_SAVE', $_smarty_tpl->tpl_vars['MODULE']->value);
            ?>
</strong></button><button class="btn" id="goToFullForm" type="button" data-edit-view-url="<?php 
            echo $_smarty_tpl->tpl_vars['EDIT_VIEW_URL']->value;
            ?>
"><strong><?php 
            echo vtranslate('LBL_GO_TO_FULL_FORM', $_smarty_tpl->tpl_vars['MODULE']->value);
            ?>
</strong></button></div></div><?php 
        }
        ?>
</div></div></form></div><?php 
    }