本文整理汇总了PHP中Paging::getPaging方法的典型用法代码示例。如果您正苦于以下问题:PHP Paging::getPaging方法的具体用法?PHP Paging::getPaging怎么用?PHP Paging::getPaging使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Paging
的用法示例。
在下文中一共展示了Paging::getPaging方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<td class="ta_r">
<a href="/admin/?page=products&action=edit&id=<?php
echo $product['id'];
?>
">Edit</a>
</td>
</tr>
<?php
}
?>
</table>
<?php
echo $objPaging->getPaging();
?>
<?php
} else {
echo '<p>' . $empty . '</p>';
}
?>
<?php
require_once 'template/_footer.php';
?>
示例2: Form
if ($this->admin['access'] != 1) {
Helper::redirect('/panel/content/c/pages/a/index');
}
$objForm = new Form($this->objUrl);
$objForm->post2Url('srch');
$search = $this->objUrl->get('srch');
$search = urldecode(stripslashes($search));
if (!empty($search)) {
$admins = $this->objAdmin->getAll(array('first_name' => $search, 'last_name' => $search));
} else {
$admins = $this->objAdmin->getAll();
}
$objPaging = new Paging($this->objUrl, $this->objLanguage, $admins, 10);
$admins = $objPaging->getRecords();
$paging = $objPaging->getPaging();
require_once 'header.php';
?>
<h1><?php
echo $this->objLanguage->labels[85];
?>
</h1>
<form method="post" id="search">
<table class="tbl_repeat">
<tr>
<th>
<input type="text" name="srch" id="srch"
class="table-field fll mrr4"
value="<?php