本文整理匯總了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";