本文整理汇总了PHP中Timestamp::formatDate2方法的典型用法代码示例。如果您正苦于以下问题:PHP Timestamp::formatDate2方法的具体用法?PHP Timestamp::formatDate2怎么用?PHP Timestamp::formatDate2使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Timestamp
的用法示例。
在下文中一共展示了Timestamp::formatDate2方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: PN_Visitor_Default
//.........这里部分代码省略.........
<?php
}
?>
</div>
<hr class="hidden" />
<table id="statistics-month-inbox" class="data-inbox" cellspacing="0" cellpadding="0">
<thead>
<tr>
<th colspan="2"><span class="text">월별 방문자 수</span></th>
</tr>
</thead>
<tbody>
<?php
$temp = Statistics::getMonthlyStatistics($blogid);
for ($i = 0; $i < sizeof($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')" onclick="window.location.href='<?php
echo $pluginMenuURL;
?>
&date=<?php
echo $record['datemark'];
?>
'">
<td class="date"><a href="<?php
echo $pluginMenuURL;
?>
&date=<?php
echo $record['datemark'];
?>
"><?php
echo Timestamp::formatDate2(Utils_Misc::getTimeFromPeriod($record['datemark']));
?>
</a></td>
<td class="count"><a href="<?php
echo $pluginMenuURL;
?>
&date=<?php
echo $record['datemark'];
?>
"><?php
echo $record['visits'];
?>
</a></td>
</tr>
<?php
}
?>
</tbody>
</table>
<hr class="hidden" />
<table id="statistics-day-inbox" class="data-inbox" cellspacing="0" cellpadding="0">
<thead>
<tr>
<th colspan="2"><span class="text">일별 방문자 수</span></th>
</tr>
</thead>
<tbody>
<?php
if (isset($date)) {
$temp = Statistics::getDailyStatistics($date);
for ($i = 0; $i < sizeof($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">
<td class="date"><?php
echo Timestamp::formatDate(Utils_Misc::getTimeFromPeriod($record['datemark']));
?>
</td>
<td class="count"><?php
echo $record['visits'];
?>
</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</form>
<?php
}