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