本文整理汇总了PHP中Paging::displayLinks方法的典型用法代码示例。如果您正苦于以下问题:PHP Paging::displayLinks方法的具体用法?PHP Paging::displayLinks怎么用?PHP Paging::displayLinks使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Paging
的用法示例。
在下文中一共展示了Paging::displayLinks方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: date
echo $row['title'];
?>
</span><span class="smallGrey"> -
<?php
echo $getCategory->getResultRow("category");
?>
</span><br /><br />
</td>
</tr>
<tr>
<td width="126" class="tdVertBottom"><span class="smallPink"><a href="?id=<?php
echo $row['rowid'];
?>
">Läs mer</a></span></td>
<td width="164" class="tdVertBottom" align="right" ><span class="smallGrey"><?php
echo date("Y-m-d H:i", strtotime($row['date']));
?>
</span></td>
</tr>
</table>
<br />
<?php
}
$paging->displayLinks("se", "smallPink", "smallGrey");
?>
</div>
<?php
include "footer.php";
示例2: Query
<table border="0" cellpadding="1" cellspacing="1" width="500">
<?php
while ($row = mysql_fetch_assoc($paging->getResult())) {
$getCategory = new Query("advertisement_categories");
$getCategory->whereQuery("*", "rowid", $row['category'], "rowid", "ASC", 100);
?>
<tr>
<td align="left" ><span class="boldGreyLighter"><?php
echo $row['title'];
?>
</span><span class="smallGrey"> -
<?php
echo $getCategory->getResultRow("category");
?>
</span></td>
<td align="left"><span class="smallGrey"><?php
echo $row['date'];
?>
</span></td>
<td align="right"><a href="admin_market_action.php?action=remove&id=<?php
echo $row['rowid'];
?>
"><img src="graphics/remove.jpg" alt="Ta bort" border="0" width="10"/></a></td>
</tr>
<?php
}
?>
</table>
<?php
$paging->displayLinks("se", "", "");
include "admin_footer.php";