當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Releases::searchadv方法代碼示例

本文整理匯總了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();
開發者ID:scriptzteam,項目名稱:newzNZB-premium-indexer,代碼行數:31,代碼來源:search.php


注:本文中的Releases::searchadv方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。