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


PHP Poll::countPolls方法代码示例

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


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

示例1: foreach

    exit;
}
$f_language_selected = Input::Get('f_language_selected', 'int');
$f_poll_limit = Input::Get('f_poll_limit', 'int', 20);
$f_poll_offset = Input::Get('f_poll_offset', 'int', 0);
$f_poll_order = Input::Get('f_poll_order', 'string', 'bynumber');
$parents = Poll::getPolls(array('language_id' => $f_language_selected, 'parent_poll_nr' => 0), null, $f_poll_offset, $f_poll_limit, $f_poll_order);
// add the copys
foreach ($parents as $poll) {
    $polls[] = $poll;
    $copys = Poll::getPolls(array('language_id' => $poll->getLanguageId(), 'parent_poll_nr' => $poll->getNumber()));
    foreach ($copys as $poll) {
        $polls[] = $poll;
    }
}
$pager = new SimplePager(Poll::countPolls(), $f_poll_limit, "f_poll_offset", "index.php?f_poll_order={$f_poll_order}&", false);
$allLanguages = Language::GetLanguages();
include_once $GLOBALS['g_campsiteDir'] . "/{$ADMIN_DIR}/javascript_common.php";
echo camp_html_breadcrumbs(array(array(getGS('Plugins'), $Campsite['WEBSITE_URL'] . '/admin/plugins/manage.php'), array(getGS('Polls'), '')));
// DO NOT DELETE!!! Needed for localizer
// getGS("Polls");
?>
<script type="text/javascript" src="<?php 
echo $Campsite['WEBSITE_URL'];
?>
/js/campsite-checkbox.js"></script>

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="1" class="action_buttons" style="padding-top: 5px;">
<TR>
    <TD><A HREF="edit.php" ><IMG SRC="<?php 
echo $Campsite["ADMIN_IMAGE_BASE_URL"];
开发者ID:nidzix,项目名称:Newscoop,代码行数:31,代码来源:index.php

示例2: array

?>
</b></a>
        </TD>
    </TR>

    <?php 
$f_poll_limit = Input::Get('f_poll_limit', 'int', 15);
$f_poll_offset = Input::Get('f_poll_offset', 'int', 0);
$f_poll_order = Input::Get('f_poll_order', 'string');
$f_poll_assigned = Input::Get('f_poll_assigned', 'string');
$constraints = array('language_id' => $f_language_id, 'publication_id' => $f_publication_id, 'issue_nr' => $f_issue_nr, 'section_nr' => $f_section_nr, 'article_nr' => $f_article_nr);
$polls = Poll::getPolls($constraints, $f_poll_assigned, $f_poll_offset, $f_poll_limit, $f_poll_order);
$param_string = "f_poll_item={$f_poll_item}&amp;f_issue_nr={$f_issue_nr}&amp;f_language_id={$f_language_id}&amp;f_publication_id={$f_publication_id}";
$pager_params = "?{$param_string}&amp;f_poll_order={$f_poll_order}&amp;";
$pager = new SimplePager(Poll::countPolls($f_language_id), $f_poll_limit, "f_poll_offset", $pager_params, false);
Poll::countPolls($f_language_id);
?>

    <tr>
        <td colspan="2" style="padding: 3px; background-color: #EEE; border-left: 1px solid #8baed1; border-right: 1px solid #8baed1;">
           &nbsp;&nbsp;&nbsp; <?php 
echo $pager->render();
?>
        </td>
    </tr>

    <tr>
        <td colspan="2" style="padding: 3px; background-color: #EEE; border-left: 1px solid #8baed1; border-right: 1px solid #8baed1;">
        <TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" class="table_list" style="padding-top: 5px;" width="95%">
        <?php 
$counter = 0;
开发者ID:nidzix,项目名称:Newscoop,代码行数:31,代码来源:assign.php


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