本文整理汇总了PHP中Releases::searchadv方法的典型用法代码示例。如果您正苦于以下问题:PHP Releases::searchadv方法的具体用法?PHP Releases::searchadv怎么用?PHP Releases::searchadv使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Releases
的用法示例。
在下文中一共展示了Releases::searchadv方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
} else {
$searchReleaseName = (string) $_REQUEST["searchadvr"];
$searchFileName = (string) $_REQUEST["searchadvf"];
$searchPoster = (string) $_REQUEST["searchadvposter"];
$searchGroups = (string) $_REQUEST["searchadvgroups"];
$searchCat = (string) $_REQUEST["searchadvcat"];
$searchSizeFrom = (string) $_REQUEST["searchadvsizefrom"];
$searchSizeTo = (string) $_REQUEST["searchadvsizeto"];
$page->smarty->assign('searchadvr', $searchReleaseName);
$page->smarty->assign('searchadvf', $searchFileName);
$page->smarty->assign('searchadvposter', $searchPoster);
$page->smarty->assign('selectedgroup', $searchGroups);
$page->smarty->assign('selectedcat', $searchCat);
$page->smarty->assign('selectedsizefrom', $searchSizeFrom);
$page->smarty->assign('selectedsizeto', $searchSizeTo);
$results = $releases->searchadv($searchStr, $categoryId, $offset, ITEMS_PER_PAGE, $orderby, -1, $page->userdata["categoryexclusions"]);
}
$page->smarty->assign('lastvisit', $page->userdata['lastlogin']);
if (sizeof($results) > 0) {
$totalRows = $results[0]['_totalrows'];
} else {
$totalRows = 0;
}
$page->smarty->assign('pagertotalitems', $totalRows);
$page->smarty->assign('pageroffset', $offset);
$page->smarty->assign('pageritemsperpage', ITEMS_PER_PAGE);
$page->smarty->assign('pagerquerysuffix', "#results");
$pager = $page->smarty->fetch("pager.tpl");
$page->smarty->assign('pager', $pager);
}
$grouplist = $grp->getGroupsForSelect();