本文整理汇总了PHP中pagination::display方法的典型用法代码示例。如果您正苦于以下问题:PHP pagination::display方法的具体用法?PHP pagination::display怎么用?PHP pagination::display使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pagination
的用法示例。
在下文中一共展示了pagination::display方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: mswCleanData
}
?>
</tbody>
</table>
</div>
<div class="btn-toolbar" style="margin-top:0;padding-top:0">
<button class="btn btn-link" type="button" onclick="ms_windowLoc('?p=accountman')"><i class="icon-remove"></i> <?php
echo mswCleanData($msg_levels11);
?>
</button>
</div>
<?php
if ($countedRows > 0 && $countedRows > $limit) {
?>
<div class="pagination pagination-small pagination-right">
<?php
define('PER_PAGE', $limit);
$PGS = new pagination($countedRows, '?p=' . $cmd . mswQueryParams(array('p', 'next')) . '&next=');
echo $PGS->display();
?>
</div>
<?php
}
// Footer links..
include PATH . 'templates/footer-links.php';
?>
</div>
</div>
</div>
示例2: mswCleanData
if (!in_array($word, $searchSkipWords)) {
$SQL .= (!$SQL ? 'WHERE (' : 'OR (') . "`question` LIKE '%" . mswCleanData(mswSafeImportString($word)) . "%' OR `answer` LIKE '%" . mswCleanData(mswSafeImportString($word)) . "%')";
}
}
}
// Are we searching for anything..
if ($SQL) {
$html = $FAQ->questions(0, $limitvalue, $SETTINGS, array($SQL, 'no'));
$dataCount = $FAQ->questions(0, $limitvalue, $SETTINGS, array($SQL, 'yes'));
}
}
// Pagination..
if ($dataCount > $SETTINGS->quePerPage) {
define('PER_PAGE', $SETTINGS->quePerPage);
$PTION = new pagination($dataCount, '?q=' . urlencode($_GET['q']) . mswQueryParams(array('q', 'p', 'next')) . '&next=');
$pageNumbers = $PTION->display();
}
// Header..
include PATH . 'control/header.php';
// Template initialisation..
$tpl = new Savant3();
$tpl->assign('TXT', array($msg_pkbase, $msg_header4, $msg_kbase53));
$tpl->assign('SCH_TXT', $msg_header4);
$tpl->assign('FAQ', $html);
$tpl->assign('RESULTS', $dataCount);
$tpl->assign('MSDT', $MSDT);
$tpl->assign('PAGES', $pageNumbers);
// Global vars..
include PATH . 'control/lib/global.php';
// Global vars..
$tpl->display('content/' . MS_TEMPLATE_SET . '/faq-search.tpl.php');