本文整理匯總了PHP中CRM_Utils_System::crmURL方法的典型用法代碼示例。如果您正苦於以下問題:PHP CRM_Utils_System::crmURL方法的具體用法?PHP CRM_Utils_System::crmURL怎麽用?PHP CRM_Utils_System::crmURL使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CRM_Utils_System
的用法示例。
在下文中一共展示了CRM_Utils_System::crmURL方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: smarty_block_crmButton
/**
* Generate the html for a button-style link
*
* @param array $params
* Params of the {crmButton} call.
* @param string $text
* Contents of block.
* @param CRM_Core_Smarty $smarty
* The Smarty object.
*
* @return string
* The generated html.
*/
function smarty_block_crmButton($params, $text, &$smarty)
{
// Generate url (pass 'html' param as false to avoid double-encode by htmlAttributes)
if (empty($params['href'])) {
$params['href'] = CRM_Utils_System::crmURL($params + array('h' => FALSE));
}
// Always add class 'button' - fixme probably should be crm-button
$params['class'] = empty($params['class']) ? 'button' : 'button ' . $params['class'];
// Any FA icon works
$icon = CRM_Utils_Array::value('icon', $params, 'pencil');
// All other params are treated as html attributes
CRM_Utils_Array::remove($params, 'icon', 'p', 'q', 'a', 'f', 'h', 'fb', 'fe');
$attributes = CRM_Utils_String::htmlAttributes($params);
return "<a {$attributes}><span><i class='crm-i fa-{$icon}'></i> {$text}</span></a>";
}
示例2: smarty_core_load_plugins
<?php
/* Smarty version 2.6.26, created on 2010-04-27 15:25:33
compiled from CRM/Core/I18n/Dialog.tpl */
require_once SMARTY_CORE_DIR . 'core.load_plugins.php';
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'count', 'CRM/Core/I18n/Dialog.tpl', 26, false), array('function', 'crmURL', 'CRM/Core/I18n/Dialog.tpl', 27, false))), $this);
if (count($this->_tpl_vars['config']->languageLimit) >= 2 && $this->_tpl_vars['translatePermission']) {
?>
<a href="javascript:" onClick="loadDialog('<?php
echo CRM_Utils_System::crmURL(array('p' => 'civicrm/i18n', 'q' => "reset=1&table=" . $this->_tpl_vars['table'] . "&field=" . $this->_tpl_vars['field'] . "&id=" . $this->_tpl_vars['id'] . "&snippet=1&context=dialog", 'h' => 0), $this);
?>
', '<?php
echo $this->_tpl_vars['field'];
?>
');"><img src="<?php
echo $this->_tpl_vars['config']->resourceBase;
?>
i/langs.png" /></a><div id="locale-dialog_<?php
echo $this->_tpl_vars['field'];
?>
" style="display:none"></div>
<?php
echo '
<script type="text/javascript">
function loadDialog( url, fieldName ) {
cj.ajax({
url: url,
success: function( content ) {
cj("#locale-dialog_" +fieldName ).show( ).html( content ).dialog({
modal : true,
示例3: require_once
<?php /* Smarty version 2.6.27, created on 2015-08-08 15:04:12
compiled from CRM/common/navigation.js.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('block', 'crmScope', 'CRM/common/navigation.js.tpl', 1, false),array('block', 'ts', 'CRM/common/navigation.js.tpl', 32, false),array('function', 'crmURL', 'CRM/common/navigation.js.tpl', 30, false),array('modifier', 'date_format', 'CRM/common/navigation.js.tpl', 56, false),array('modifier', 'json_encode', 'CRM/common/navigation.js.tpl', 59, false),)), $this); ?>
<?php $this->_tag_stack[] = array('crmScope', array('extensionKey' => "")); $_block_repeat=true;smarty_block_crmScope($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>// http://civicrm.org/licensing
<?php ob_start(); ?><?php echo '<ul id="civicrm-menu">'; ?><?php if (call_user_func ( array ( 'CRM_Core_Permission' , 'giveMeAllACLs' ) )): ?><?php echo '<li id="crm-qsearch" class="menumain"><form action="'; ?><?php echo CRM_Utils_System::crmURL(array('p' => 'civicrm/contact/search/advanced','h' => 0), $this);?><?php echo '" name="search_block" id="id_search_block" method="post"><div id="quickSearch"><input type="text" class="form-text" id="sort_name_navigation" placeholder="'; ?><?php $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(); ?><?php echo 'Contacts'; ?><?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); ?><?php echo '" name="sort_name" style="width: 6em;" /><input type="text" id="sort_contact_id" style="display: none" /><input type="hidden" name="hidden_location" value="1" /><input type="hidden" name="qfKey" value="" /><div style="height:1px; overflow:hidden;"><input type="submit" value="'; ?><?php $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(); ?><?php echo 'Go'; ?><?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); ?><?php echo '" name="_qf_Advanced_refresh" class="crm-form-submit default" /></div></div></form><ul><li><label class="crm-quickSearchField"><input type="radio" data-tablename="cc" checked="checked" value="" name="quickSearchField">'; ?><?php $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(); ?><?php echo 'Name/Email'; ?><?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); ?><?php echo '</label></li><li><label class="crm-quickSearchField"><input type="radio" data-tablename="cc" value="contact_id" name="quickSearchField">'; ?><?php $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(); ?><?php echo 'CiviCRM ID'; ?><?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); ?><?php echo '</label></li><li><label class="crm-quickSearchField"><input type="radio" data-tablename="cc" value="external_identifier" name="quickSearchField">'; ?><?php $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(); ?><?php echo 'External ID'; ?><?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); ?><?php echo '</label></li><li><label class="crm-quickSearchField"><input type="radio" data-tablename="cc" value="first_name" name="quickSearchField">'; ?><?php $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(); ?><?php echo 'First Name'; ?><?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); ?><?php echo '</label></li><li><label class="crm-quickSearchField"><input type="radio" data-tablename="cc" value="last_name" name="quickSearchField">'; ?><?php $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(); ?><?php echo 'Last Name'; ?><?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); ?><?php echo '</label></li><li><label class="crm-quickSearchField"><input type="radio" data-tablename="eml" value="email" name="quickSearchField">'; ?><?php $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(); ?><?php echo 'Email'; ?><?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); ?><?php echo '</label></li><li><label class="crm-quickSearchField"><input type="radio" data-tablename="phe" value="phone_numeric" name="quickSearchField">'; ?><?php $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(); ?><?php echo 'Phone'; ?><?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); ?><?php echo '</label></li><li><label class="crm-quickSearchField"><input type="radio" data-tablename="sts" value="street_address" name="quickSearchField">'; ?><?php $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(); ?><?php echo 'Street Address'; ?><?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); ?><?php echo '</label></li><li><label class="crm-quickSearchField"><input type="radio" data-tablename="sts" value="city" name="quickSearchField">'; ?><?php $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(); ?><?php echo 'City'; ?><?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); ?><?php echo '</label></li><li><label class="crm-quickSearchField"><input type="radio" data-tablename="sts" value="postal_code" name="quickSearchField">'; ?><?php $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(); ?><?php echo 'Postal Code'; ?><?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); ?><?php echo '</label></li><li><label class="crm-quickSearchField"><input type="radio" data-tablename="cc" value="job_title" name="quickSearchField">'; ?><?php $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(); ?><?php echo 'Job Title'; ?><?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); ?><?php echo '</label></li></ul></li>'; ?><?php endif; ?><?php echo ''; ?><?php echo $this->_tpl_vars['navigation']; ?><?php echo '</ul>'; ?>
<?php $this->_smarty_vars['capture']['default'] = ob_get_contents(); $this->assign('menuMarkup', ob_get_contents());ob_end_clean(); ?>// <script> Generated <?php echo ((is_array($_tmp=time())) ? $this->_run_mod_handler('date_format', true, $_tmp, '%d %b %Y %H:%M:%S') : smarty_modifier_date_format($_tmp, '%d %b %Y %H:%M:%S')); ?>
<?php echo '
(function($) {
var menuMarkup = '; ?>
<?php echo json_encode($this->_tpl_vars['menuMarkup']); ?>
;
<?php if ($this->_tpl_vars['config']->userFramework != 'Joomla'): ?><?php echo '
$(\'body\').append(menuMarkup);
//Track Scrolling
$(window).scroll(function () {
var scroll = document.documentElement.scrollTop || document.body.scrollTop;
$(\'#civicrm-menu\').css({top: "scroll", position: "fixed", top: "0px"});
$(\'div.sticky-header\').css({top: "23px", position: "fixed"});
});
if ($(\'#edit-shortcuts\').length > 0) {
$(\'#civicrm-menu\').css({\'width\': \'97%\'});
}
'; ?>
<?php else: ?><?php echo '
// below div is present in older version of joomla 2.5.x
var elementExists = $(\'div#toolbar-box div.m\').length;
if (elementExists > 0) {
示例4: array
$this->_tag_stack[] = array('ts', array());
smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat = true);
while ($_block_repeat) {
ob_start();
?>
status<?php
$_block_content = ob_get_contents();
ob_end_clean();
echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat = false);
}
array_pop($this->_tag_stack);
?>
"/>
<?php
ob_start();
echo CRM_Utils_System::crmURL(array('p' => 'civicrm/admin/custom/group', 'q' => 'action=add&reset=1'), $this);
$this->_smarty_vars['capture']['default'] = ob_get_contents();
$this->assign('crmURL', ob_get_contents());
ob_end_clean();
?>
<?php
$this->_tag_stack[] = array('ts', array('1' => $this->_tpl_vars['crmURL']));
smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat = true);
while ($_block_repeat) {
ob_start();
?>
No custom data groups have been created yet. You can <a href="%1">add one</a>.<?php
$_block_content = ob_get_contents();
ob_end_clean();
echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat = false);
}
示例5: ob_get_contents
echo CRM_Utils_System::crmURL(array('p' => 'civicrm/event/ical', 'q' => "reset=1&list=1"), $this);
$this->_smarty_vars['capture']['default'] = ob_get_contents();
$this->assign('icalPage', ob_get_contents());
ob_end_clean();
ob_start();
echo CRM_Utils_System::crmURL(array('p' => 'civicrm/event/ical', 'q' => "reset=1&list=1&rss=1"), $this);
$this->_smarty_vars['capture']['default'] = ob_get_contents();
$this->assign('rssFeed', ob_get_contents());
ob_end_clean();
ob_start();
echo CRM_Utils_System::crmURL(array('p' => 'civicrm/event/ical', 'q' => "reset=1&list=1&html=1"), $this);
$this->_smarty_vars['capture']['default'] = ob_get_contents();
$this->assign('htmlFeed', ob_get_contents());
ob_end_clean();
ob_start();
echo CRM_Utils_System::crmURL(array('p' => 'civicrm/event/ical', 'q' => "reset=1&list=1&type=3&start=20070101"), $this);
$this->_smarty_vars['capture']['default'] = ob_get_contents();
$this->assign('icalPageExample', ob_get_contents());
ob_end_clean();
?>
<p>
<?php
$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();
?>
iCalendar is a standard format for representing information about calendaring and scheduling. CiviEvent allows you to output your current and upcoming 'public' events in the iCalendar format - so this information can be shared with other iCalendar-enabled applications.<?php
$_block_content = ob_get_contents();
ob_end_clean();
示例6: array
echo CRM_Utils_System::crmURL(array('p' => 'civicrm/contact/search/advanced', 'q' => "context=amtg&amtgID=" . $this->_tpl_vars['group']['id'] . "&reset=1&force=1"), $this);
echo '">» ';
$this->_tag_stack[] = array('ts', array());
smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat = true);
while ($_block_repeat) {
ob_start();
echo 'Advanced Search';
$_block_content = ob_get_contents();
ob_end_clean();
echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat = false);
}
array_pop($this->_tag_stack);
echo '</a>';
} else {
echo '<a href="';
echo CRM_Utils_System::crmURL(array('p' => 'civicrm/contact/search/advanced'), $this);
echo '">» ';
$this->_tag_stack[] = array('ts', array());
smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat = true);
while ($_block_repeat) {
ob_start();
echo 'Advanced Search';
$_block_content = ob_get_contents();
ob_end_clean();
echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat = false);
}
array_pop($this->_tag_stack);
echo '</a>';
}
echo '</td></tr></table>';
?>
示例7: unset
echo '</dd>';
}
echo '';
}
}
unset($_from);
echo '</dl><div class="spacer"></div></fieldset></div>';
}
}
unset($_from);
echo '';
if ($this->_tpl_vars['editCustomData']) {
echo '<div class="action-link">';
if ($this->_tpl_vars['groupId']) {
echo '<a href="';
echo CRM_Utils_System::crmURL(array('p' => "civicrm/contact/view/cd", 'q' => "cid=" . $this->_tpl_vars['contactId'] . "&gid=" . $this->_tpl_vars['groupId'] . "&action=update&reset=1"), $this);
echo '">» ';
$this->_tag_stack[] = array('ts', array('1' => $this->_tpl_vars['groupTree'][$this->_tpl_vars['groupId']]['title']));
smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat = true);
while ($_block_repeat) {
ob_start();
echo 'Edit %1';
$_block_content = ob_get_contents();
ob_end_clean();
echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat = false);
}
array_pop($this->_tag_stack);
echo '</a>';
}
echo '</div>';
}
示例8: cj
var element = blockName + \'_Block_\';
//get blockcount of last element of relevant blockName
var previousInstance = cj( \'[id^="\'+ element +\'"]:last\' ).attr(\'id\').slice( element.length );
var currentInstance = parseInt( previousInstance ) + 1;
//show primary option if block count = 2
if ( currentInstance == 2) {
cj("#" + blockName + \'-Primary\').show( );
cj("#" + blockName + \'-Primary-html\').show( );
}
var dataUrl = ';
?>
"<?php
echo CRM_Utils_System::crmURL(array('h' => 0, 'q' => 'snippet=4'), $this);
?>
"<?php
echo ' + \'&block=\' + blockName + \'&count=\' + currentInstance;;
if ( className == \'CRM_Event_Form_ManageEvent_Location\' ) {
dataUrl = ( currentInstance <= 2 ) ? dataUrl + \'&subPage=Location\' : \'\';
}
';
?>
<?php
if ($this->_tpl_vars['qfKey']) {
?>
示例9: array
?>
</div>
</dd>
<?php
}
?>
</dl>
</fieldset>
</div>
<?php
if ($this->_tpl_vars['action'] == 2 || $this->_tpl_vars['action'] == 4) {
?>
<p></p>
<div class="action-link">
<a href="<?php
echo CRM_Utils_System::crmURL(array('p' => 'civicrm/admin/custom/group/field', 'q' => "action=browse&reset=1&gid=" . $this->_tpl_vars['gid']), $this);
?>
">» <?php
$this->_tag_stack[] = array('ts', array());
smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat = true);
while ($_block_repeat) {
ob_start();
?>
Custom Fields for this Group<?php
$_block_content = ob_get_contents();
ob_end_clean();
echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat = false);
}
array_pop($this->_tag_stack);
?>
</a>
示例10: ob_start
</div>
<?php
}
?>
</div>
<?php
} else {
?>
<?php
if ($this->_tpl_vars['isSearch'] == 1) {
?>
<div class="status messages">
<div class="icon inform-icon"></div>
<?php
ob_start();
echo CRM_Utils_System::crmURL(array('p' => 'civicrm/event/manage', 'q' => "reset=1"), $this);
$this->_smarty_vars['capture']['default'] = ob_get_contents();
$this->assign('browseURL', ob_get_contents());
ob_end_clean();
?>
<?php
$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();
?>
No available Events match your search criteria. Suggestions:<?php
$_block_content = ob_get_contents();
ob_end_clean();
$_block_repeat = false;
示例11: ob_get_contents
$_block_content = ob_get_contents();
ob_end_clean();
echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat = false);
}
array_pop($this->_tag_stack);
echo '</a></td></tr>';
}
echo '</table>';
?>
<?php
if ($this->_tpl_vars['permission'] == 'edit') {
?>
<div class="action-link">
<a href="<?php
echo CRM_Utils_System::crmURL(array('p' => 'civicrm/contact/view/note', 'q' => "action=add&cid=" . $this->_tpl_vars['contactId']), $this);
?>
">» <?php
$this->_tag_stack[] = array('ts', array());
smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat = true);
while ($_block_repeat) {
ob_start();
?>
New Note<?php
$_block_content = ob_get_contents();
ob_end_clean();
echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat = false);
}
array_pop($this->_tag_stack);
?>
</a>
示例12: array
i/custom_activity.gif" alt="<?php
$this->_tag_stack[] = array('ts', array());
smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat = true);
while ($_block_repeat) {
ob_start();
?>
Other Activities<?php
$_block_content = ob_get_contents();
ob_end_clean();
echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat = false);
}
array_pop($this->_tag_stack);
?>
"/></a>
<a href="<?php
echo CRM_Utils_System::crmURL(array('p' => 'civicrm/contact/view/activity', 'q' => "activity_id=5&action=add&reset=1&cid=" . $this->_tpl_vars['contactId']), $this);
?>
"><?php
$this->_tag_stack[] = array('ts', array());
smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat = true);
while ($_block_repeat) {
ob_start();
?>
Other Activities<?php
$_block_content = ob_get_contents();
ob_end_clean();
echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat = false);
}
array_pop($this->_tag_stack);
?>
</a>
示例13: array
$this->_tag_stack[] = array('ts', array());
smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat = true);
while ($_block_repeat) {
ob_start();
?>
status<?php
$_block_content = ob_get_contents();
ob_end_clean();
echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat = false);
}
array_pop($this->_tag_stack);
?>
"/></dt>
<?php
ob_start();
echo CRM_Utils_System::crmURL(array('p' => 'civicrm/admin/gender', 'q' => "action=add&reset=1"), $this);
$this->_smarty_vars['capture']['default'] = ob_get_contents();
$this->assign('crmURL', ob_get_contents());
ob_end_clean();
?>
<dd><?php
$this->_tag_stack[] = array('ts', array('1' => $this->_tpl_vars['crmURL']));
smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat = true);
while ($_block_repeat) {
ob_start();
?>
There are no Gender entered. You can <a href="%1">add one</a>.<?php
$_block_content = ob_get_contents();
ob_end_clean();
echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat = false);
}
示例14: ob_end_clean
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);
echo '" src="\' +resourceBase+\'i/close.png"/></a>\';
cj( \'#enableDisableStatusMsg\' ).show( ).html( serverError );
}
}
function saveEnableDisable( recordID, recordBAO, op ) {
cj( \'#enableDisableStatusMsg\' ).hide( );
var postUrl = ';
?>
"<?php
echo CRM_Utils_System::crmURL(array('p' => 'civicrm/ajax/ed', 'h' => 0), $this);
?>
"<?php
echo ';
//post request and get response
cj.post( postUrl, { recordID: recordID, recordBAO: recordBAO, op:op }, function( html ){
responseFromServer = true;
//this is custom status set when record update success.
if ( html.status == \'record-updated-success\' ) {
//change row class and show/hide action links.
modifySelectorRow( recordID, op );
//modify action link html
示例15: require_once
<?php /* Smarty version 2.6.27, created on 2015-08-08 15:04:16
compiled from CRM/Civizualise/Page/Main.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('block', 'crmScope', 'CRM/Civizualise/Page/Main.tpl', 1, false),array('function', 'crmTitle', 'CRM/Civizualise/Page/Main.tpl', 1, false),array('function', 'crmURL', 'CRM/Civizualise/Page/Main.tpl', 5, false),)), $this); ?>
<?php $this->_tag_stack[] = array('crmScope', array('extensionKey' => "")); $_block_repeat=true;smarty_block_crmScope($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?><?php echo smarty_function_crmTitle(array('string' => 'Civisualize'), $this);?>
You need to choose one of the following visualizations to start with:
<ul>
<li><a href="<?php echo CRM_Utils_System::crmURL(array('p' => 'civicrm/dataviz/contribute'), $this);?>
">Contributions</a></li>
<li><a href="<?php echo CRM_Utils_System::crmURL(array('p' => 'civicrm/dataviz/contacts'), $this);?>
">Contacts</a></li>
<li><a href="<?php echo CRM_Utils_System::crmURL(array('p' => 'civicrm/dataviz/events'), $this);?>
">Events</a></li>
<li><a href="<?php echo CRM_Utils_System::crmURL(array('p' => 'civicrm/dataviz/donortrends'), $this);?>
">Donor Trends</a></li>
</ul>
<p>
You might like to learn how to <a href="https://github.com/TechToThePeople/civisualize">build your own datavisualisation</a>
</p>
<?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); ?>