本文整理汇总了PHP中search::printGamesList方法的典型用法代码示例。如果您正苦于以下问题:PHP search::printGamesList方法的具体用法?PHP search::printGamesList怎么用?PHP search::printGamesList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类search
的用法示例。
在下文中一共展示了search::printGamesList方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
$search->filterInput($_SESSION['search-profile.php']);
} elseif (isset($_REQUEST['page']) && isset($_SESSION['search-profile.php'])) {
$searched = true;
$search->filterInput($_SESSION['search-profile.php']);
}
print '<div style="margin:30px">';
print '<form action="profile.php?userID=' . $UserProfile->id . '&advanced=on#top" method="post">';
print '<input type="hidden" name="page" value="1" />';
$search->formHTML();
print '</form>';
print '<p><a href="profile.php?page=1&userID=' . $UserProfile->id . '#top" class="light">' . l_t('Close search') . '</a></p>';
print '</div>';
if ($searched) {
print '<div class="hr"></div>';
print $profilePager->pagerBar('top', '<h3>' . l_t('Results:') . '</h3>');
$gameCount = $search->printGamesList($profilePager);
if ($gameCount == 0) {
print '<p class="notice">';
if ($profilePager->currentPage > 1) {
print l_t('No more games found for the given search parameters.');
} else {
print l_t('No games found for the given search parameters, try broadening your search.');
}
print '</p>';
print '<div class="hr"></div>';
}
}
} else {
$searched = true;
if (isset($_SESSION['search-profile.php'])) {
unset($_SESSION['search-profile.php']);
示例2: elseif
if (isset($_REQUEST['search'])) {
$_SESSION['search-gamelistings.php'] = $_REQUEST['search'];
$search->filterInput($_REQUEST['search']);
} elseif (isset($_SESSION['search-gamelistings.php'])) {
$search->filterInput($_SESSION['search-gamelistings.php']);
}
print '<div style="margin:30px">';
print '<form action="gamelistings.php?gamelistType=' . $tab . '&page=1#top" method="post">';
$search->formHTML();
print '</form>';
print '<p><a href="gamelistings.php?page=1" class="light">' . l_t('Close search') . '</a></p>';
print '</div>';
libHTML::pagebreak();
print $Pager->pagerBar('top', '<h4>' . l_t('Results:') . '</h4>');
print '<div class="hr"></div>';
$gameCount = $search->printGamesList($Pager);
if ($gameCount == 0) {
print '<p class="notice">';
if ($Pager->currentPage > 1) {
print l_t('The set of returned games has finished; use the search tab to find specific games.');
} else {
print l_t('No games found for the given search parameters, try broadening your search.');
}
print '</p>';
}
} else {
libHTML::pagebreak();
print $Pager->pagerBar('top');
print '<div class="hr"></div>';
$gameCount = $search->printGamesList($Pager);
if ($gameCount == 0) {