当前位置: 首页>>代码示例>>PHP>>正文


PHP Releases::getCount方法代码示例

本文整理汇总了PHP中Releases::getCount方法的典型用法代码示例。如果您正苦于以下问题:PHP Releases::getCount方法的具体用法?PHP Releases::getCount怎么用?PHP Releases::getCount使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Releases的用法示例。


在下文中一共展示了Releases::getCount方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: AdminPage

<?php

require_once "config.php";
require_once WWW_DIR . "/lib/adminpage.php";
require_once WWW_DIR . "/lib/releases.php";
$page = new AdminPage();
$releases = new Releases();
$page->title = "Release List";
$offset = isset($_REQUEST["offset"]) ? $_REQUEST["offset"] : 0;
$activeonly = isset($_REQUEST['active']) && $_REQUEST['active'] == "1" ? 1 : 0;
$releasecount = $releases->getCount($activeonly);
$page->smarty->assign('active', $activeonly);
$page->smarty->assign('pagertotalitems', $releasecount);
$page->smarty->assign('pageroffset', $offset);
$page->smarty->assign('pageritemsperpage', ITEMS_PER_PAGE);
$releasesearch = $activeonly != "" ? 'active=' . $activeonly . '&amp;' : '';
$page->smarty->assign('pagerquerybase', WWW_TOP . "/release-list.php?" . $releasesearch . "offset=");
$pager = $page->smarty->fetch("pager.tpl");
$page->smarty->assign('pager', $pager);
$page->smarty->assign('active_ids', array(1, 0));
$page->smarty->assign('active_names', array('Awaiting Post-processing', 'All'));
$releaselist = $releases->getRange($offset, ITEMS_PER_PAGE, $activeonly);
$page->smarty->assign('releaselist', $releaselist);
$page->content = $page->smarty->fetch('release-list.tpl');
$page->render();
开发者ID:scriptzteam,项目名称:newzNZB-premium-indexer,代码行数:25,代码来源:release-list.php

示例2: AdminPage

<?php

require_once "config.php";
$page = new AdminPage();
$releases = new Releases();
$page->title = "Release List";
$releasecount = $releases->getCount();
$offset = isset($_REQUEST["offset"]) ? $_REQUEST["offset"] : 0;
$page->smarty->assign('pagertotalitems', $releasecount);
$page->smarty->assign('pageroffset', $offset);
$page->smarty->assign('pageritemsperpage', ITEMS_PER_PAGE);
$page->smarty->assign('pagerquerybase', WWW_TOP . "/release-list.php?offset=");
$pager = $page->smarty->fetch("pager.tpl");
$page->smarty->assign('pager', $pager);
$releaselist = $releases->getRange($offset, ITEMS_PER_PAGE);
$page->smarty->assign('releaselist', $releaselist);
$page->content = $page->smarty->fetch('release-list.tpl');
$page->render();
开发者ID:RickDB,项目名称:newznab-tmux,代码行数:18,代码来源:release-list.php

示例3: getReleaseCount

    /**
     * count of releases
     */
    public function getReleaseCount()
    {
        $r = new Releases();
        $total_releases = $r->getCount();
        printf('<span class="icon32 icon-blue icon-star-on"></span>
			<div>Total Releases</div>
			<div>%s</div>', $total_releases);
    }
开发者ID:RickDB,项目名称:newznab-tmux,代码行数:11,代码来源:dashdata.php


注:本文中的Releases::getCount方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。