本文整理汇总了PHP中Statistics::getRefererLogsWithPage方法的典型用法代码示例。如果您正苦于以下问题:PHP Statistics::getRefererLogsWithPage方法的具体用法?PHP Statistics::getRefererLogsWithPage怎么用?PHP Statistics::getRefererLogsWithPage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Statistics
的用法示例。
在下文中一共展示了Statistics::getRefererLogsWithPage方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: PN_Referer_Default
function PN_Referer_Default()
{
global $pluginMenuURL, $pluginSelfParam;
if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['page'])) {
$_GET['page'] = $_POST['page'];
}
$page = Setting::getBlogSetting('RowsPerPageReferer', 20);
if (empty($_POST['perPage'])) {
$perPage = $page;
} else {
if ($page != $_POST['perPage']) {
Setting::setBlogSetting('RowsPerPageReferer', $_POST['perPage']);
$perPage = $_POST['perPage'];
} else {
$perPage = $_POST['perPage'];
}
}
?>
<div id="part-statistics-rank" class="part">
<h2 class="caption"><span class="main-text"><?php
echo _t("리퍼러 순위");
?>
</span></h2>
<table class="data-inbox" cellspacing="0" cellpadding="0">
<thead>
<tr>
<th class="number"><span class="text"><?php
echo _t("순위");
?>
</span></th>
<th class="site"><span class="text"><?php
echo _t("리퍼러");
?>
</span></th>
</tr>
</thead>
<tbody>
<?php
$temp = Statistics::getRefererStatistics(getBlogId());
for ($i = 0; $i < count($temp); $i++) {
$record = $temp[$i];
$className = $i % 2 == 1 ? 'even-line' : 'odd-line';
$className .= $i == sizeof($temp) - 1 ? ' last-line' : '';
?>
<tr class="<?php
echo $className;
?>
inactive-class" onmouseover="rolloverClass(this, 'over')" onmouseout="rolloverClass(this, 'out')">
<td class="rank"><?php
echo $i + 1;
?>
.</td>
<td class="site"><a href="http://<?php
echo Utils_Misc::escapeJSInAttribute($record['host']);
?>
" onclick="window.open(this.href); return false;"><?php
echo htmlspecialchars($record['host']);
?>
</a> <span class="count">(<?php
echo $record['count'];
?>
)</span></td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
<hr class="hidden" />
<form id="part-statistics-log" class="part" method="post" action="<?php
echo $pluginMenuURL;
?>
">
<h2 class="caption"><span class="main-text"><?php
echo _t("리퍼러 로그");
?>
</span></h2>
<table class="data-inbox" cellspacing="0" cellpadding="0">
<thead>
<tr>
<th class="number"><span class="text">날짜</span></th>
<th class="site"><span class="text">주소</span></th>
</tr>
</thead>
<tbody>
<?php
$more = false;
list($referers, $paging) = Statistics::getRefererLogsWithPage($_GET['page'], $perPage);
for ($i = 0; $i < count($referers); $i++) {
$record = $referers[$i];
$className = $i % 2 == 1 ? 'even-line' : 'odd-line';
$className .= $i == sizeof($referers) - 1 ? ' last-line' : '';
?>
<tr class="<?php
echo $className;
//.........这里部分代码省略.........
示例2: getRefererLogsWithPage
function getRefererLogsWithPage($page, $count)
{
return Statistics::getRefererLogsWithPage($page, $count);
}