本文整理汇总了PHP中smarty_block_crmScope函数的典型用法代码示例。如果您正苦于以下问题:PHP smarty_block_crmScope函数的具体用法?PHP smarty_block_crmScope怎么用?PHP smarty_block_crmScope使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了smarty_block_crmScope函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: function
.parent().css(\'text-align\', \'center\').find(\'.ui-button-text\').css({\'padding-top\': \'4px\', \'padding-bottom\': \'4px\'})
;
}
e.preventDefault();
});
$(\'.crm-quickSearchField\').click(function() {
var label = $(this).text();
var value = $(\'input\', this).val();
// These fields are not supported by advanced search
if (value === \'first_name\' || value === \'last_name\') {
value = \'sort_name\';
}
$(\'#sort_name_navigation\').attr({name: value, placeholder: label}).focus();
});
// redirect to view page if there is only one contact
$(\'#id_search_block\').on(\'submit\', function() {
var $menu = $(\'#sort_name_navigation\').autocomplete(\'widget\');
if ($(\'li.ui-menu-item\', $menu).length === 1) {
var cid = $(\'li.ui-menu-item\', $menu).data(\'ui-autocomplete-item\').value;
document.location = CRM.url(\'civicrm/contact/view\', {reset: 1, cid: cid});
return false;
}
});
// Close menu after selecting an item
$(\'#root-menu-div\').on(\'click\', \'a\', $.Menu.closeAll);
});
$(\'#civicrm-menu\').menuBar({arrowSrc: CRM.config.resourceBase + \'packages/jquery/css/images/arrow.png\'});
})(CRM.$);'; ?>
<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_crmScope($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
示例2: array
$this->_tag_stack[] = array('ts', array());
$_block_repeat = true;
smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
while ($_block_repeat) {
ob_start();
?>
Do you want to continue?<?php
$_block_content = ob_get_contents();
ob_end_clean();
$_block_repeat = false;
echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat);
}
array_pop($this->_tag_stack);
?>
</div>
<div class="crm-submit-buttons">
<?php
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "CRM/common/formButtons.tpl", 'smarty_include_vars' => array('location' => 'bottom')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
</div>
</div>
<?php
$_block_content = ob_get_contents();
ob_end_clean();
$_block_repeat = false;
echo smarty_block_crmScope($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat);
}
array_pop($this->_tag_stack);