当前位置: 首页>>代码示例>>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;未经允许,请勿转载。