本文整理匯總了PHP中XenForo_Template_Helper_Core::adminLink方法的典型用法代碼示例。如果您正苦於以下問題:PHP XenForo_Template_Helper_Core::adminLink方法的具體用法?PHP XenForo_Template_Helper_Core::adminLink怎麽用?PHP XenForo_Template_Helper_Core::adminLink使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類XenForo_Template_Helper_Core
的用法示例。
在下文中一共展示了XenForo_Template_Helper_Core::adminLink方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: findAllUsersSharing
public function findAllUsersSharing($page = 1, $perPage = 10, &$totalFound)
{
$db = $this->_getDb();
$records = $this->fetchAllKeyed('
SELECT SQL_CALC_FOUND_ROWS COUNT(*) AS total, field_value
FROM xf_user_field_value
WHERE field_id = "analytics_cid"
AND field_value LIKE "GA%"
GROUP BY field_value
HAVING total > 1
ORDER BY total DESC, field_value
LIMIT ' . intval(($page - 1) * $perPage) . ', ' . $perPage . '
', 'field_value', array());
$totalFound = $db->fetchOne('SELECT FOUND_ROWS()');
$clientIds = $users = array();
if ($records) {
foreach ($records as $record) {
$clientIds[] = $record['field_value'];
}
$users = $db->fetchAll('
SELECT xf_user.*, xf_user_field_value.field_value
FROM xf_user_field_value
LEFT JOIN xf_user ON (xf_user.user_id = xf_user_field_value.user_id)
WHERE xf_user_field_value.field_id = "analytics_cid"
AND xf_user_field_value.field_value IN(' . $db->quote($clientIds) . ')
ORDER BY xf_user_field_value.user_id
');
if ($users) {
foreach ($users as &$user) {
$records[$user['field_value']]['users_output'][$user['user_id']] = XenForo_Template_Helper_Core::callHelper('usernamehtml', array($user, '', true, array('href' => XenForo_Template_Helper_Core::adminLink('users/edit', $user, array()), 'class' => 'NoOverlay')));
}
foreach ($records as &$record) {
$record['users_output'] = implode(', ', $record['users_output']);
}
}
}
return $records;
}
示例2: array
<?php
if (!class_exists('XenForo_Application', false)) {
die;
}
$__output = '';
$__output .= '<div style="display: block; padding: 3px; margin: 2px">
<a href="' . XenForo_Template_Helper_Core::adminLink('widgets/add', '', array('position' => $positionCode, 'display_order' => $displayOrder)) . '"
target="_blank"
title="' . htmlspecialchars($positionCode, ENT_QUOTES, 'UTF-8') . ($displayOrder + 0 != 0 ? ' - ' . 'Display Order' . ': ' . htmlspecialchars($displayOrder, ENT_QUOTES, 'UTF-8') : '') . '"
class="Tooltip"
style="background: white; color: black; border: 1px solid black; padding: 3px">
' . 'Add Widget' . '
</a>
</div>';
示例3: array
$__compilerVar82 .= '
<li><a href="' . XenForo_Template_Helper_Core::link('members/shared-ips', $user, array()) . '" class="OverlayTrigger">' . 'Chia sẻ IPs' . '</a></li>
';
}
$__compilerVar82 .= '
';
if ($canBanUsers) {
$__compilerVar82 .= '
';
if ($user['is_banned']) {
$__compilerVar82 .= '
<li><a href="' . XenForo_Template_Helper_Core::adminLink('banning/users/lift', $user, array()) . '">' . 'Lift Ban' . '</a></li>
';
} else {
$__compilerVar82 .= '
<li><a href="' . XenForo_Template_Helper_Core::adminLink('banning/users/add', $user, array()) . '">' . 'Ban' . '</a></li>
';
}
$__compilerVar82 .= '
';
}
$__compilerVar82 .= '
';
if ($canEditUser) {
$__compilerVar82 .= '
<li><a href="' . XenForo_Template_Helper_Core::link('members/edit', $user, array()) . '">' . 'Sửa' . '</a></li>
';
}
$__compilerVar82 .= '
';
if (trim($__compilerVar82) !== '') {