當前位置: 首頁>>代碼示例>>PHP>>正文


PHP smarty_block_crmScope函數代碼示例

本文整理匯總了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); ?>
開發者ID:riyadennis,項目名稱:my_civicrm,代碼行數:30,代碼來源:FB2BD4E7%%navigation.js.tpl.php

示例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);
開發者ID:Hack4Eugene,項目名稱:Hack4Cause2016,代碼行數:31,代碼來源:72B97D86%%DeleteGroup.tpl.php


注:本文中的smarty_block_crmScope函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。