• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP pager_navigation函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中pager_navigation函数的典型用法代码示例。如果您正苦于以下问题:PHP pager_navigation函数的具体用法?PHP pager_navigation怎么用?PHP pager_navigation使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: include_partial

  <?php 
include_partial('sfSimpleForum/figures', array('display_topic_link' => false, 'nb_topics' => $forum->getNbTopics(), 'topic_rule' => '', 'display_post_link' => $forum->getNbPosts(), 'nb_posts' => $forum->getNbPosts(), 'post_rule' => '@forum_name_last?forum_name=' . $forum->getSlug(), 'feed_rule' => '@forum_name_last_feed?forum_name=' . $forum->getSlug(), 'feed_title' => $feed_title));
?>

  <?php 
if ($forum->getNbTopics()) {
    ?>

    <?php 
    include_partial('sfSimpleForum/topic_list', array('topics' => $topics, 'include_forum' => false));
    ?>

    <div id="pager">
      <?php 
    echo pager_navigation($topic_pager, 'sfSimpleForum/forum?forum_name=' . $forum->getSlug());
    ?>
    </div>
  <?php 
} else {
    ?>
    <br/>
    <p><?php 
    echo __('There is no topic in this discussion yet. Perhaps you would like to %start%?', array('%start%' => link_to(__('start a new one', null, 'sfSimpleForum'), '@forum_new_topic?forum_name=' . $forum->getSlug())), 'sfSimpleForum');
    ?>
</p>
  <?php 
}
?>

</div>
开发者ID:j0k3r,项目名称:sfDoctrineSimpleForumPlugin,代码行数:30,代码来源:forumSuccess.php


示例2: truncate_text

        ?>
</h3>
        <p><?php 
        echo truncate_text($projectAnnouncement->getDetails(), 200);
        ?>
 <?php 
        echo link_to('more', 'project/showAnnouncement?id=' . $projectAnnouncement->getId());
        ?>
</p>
        <span class="date">Posted on <?php 
        echo $projectAnnouncement->getCreatedAt();
        ?>
</span>
    </div>
<?php 
    }
    ?>
</div>
<?php 
} else {
    ?>
<p>There is no announcements for this project at the moment.</p>
<?php 
}
?>

<div id="pager">
    <?php 
echo pager_navigation($projectAnnouncementPager, 'project/listAnnouncements?id=' . $project->getTag());
?>
</div>
开发者ID:hoydaa,项目名称:hoydaa.org,代码行数:31,代码来源:listAnnouncementsSuccess.php


示例3: include_slot

<div id="middle-side" class="forum">

  <div class="breadcrumb">
    <?php 
include_slot('forum_navigation');
?>
  </div>

  <h1><?php 
echo $title;
?>
</h1>

  <?php 
include_partial('sfSimpleForum/figures', array('display_topic_link' => $nb_topics, 'nb_topics' => $nb_topics, 'topic_rule' => 'sfSimpleForum/latestTopics', 'display_post_link' => false, 'nb_posts' => $post_pager->getNbResults(), 'post_rule' => '', 'feed_rule' => 'sfSimpleForum/latestPostsFeed', 'feed_title' => $feed_title));
?>

  <?php 
include_partial('sfSimpleForum/post_list', array('posts' => $post_pager->getResults(), 'rankArray' => $rankArray, 'include_topic' => true));
?>

  <br/>

  <div id="pager">
    <?php 
echo pager_navigation($post_pager, 'sfSimpleForum/latestPosts');
?>
  </div>

</div>
开发者ID:j0k3r,项目名称:sfDoctrineSimpleForumPlugin,代码行数:30,代码来源:latestPostsSuccess.php


示例4: include_partial

    include_partial('edit_list_td_tabular', array('formulario' => $formulario, 'lista_campos_extra' => $lista_campos_extra, 'items_formulario' => $items_formulario));
    include_partial('edit_list_td_actions', array('formulario' => $formulario, "id_formulario" => $id_formulario, "id_tabla" => $id_tabla));
    ?>
</tr>
<?php 
}
?>
</tbody>
<tfoot>
<tr><th colspan="<?php 
echo sizeof($lista_campos_extra) + 2;
?>
">
<div class="float-right">
  <?php 
$value = pager_navigation($pager, 'formularios/edit/?id_formulario=' . $id_formulario);
echo $value ? $value : '&nbsp;';
?>
</div>
<?php 
$cuantos = $pager->getNbResults();
echo format_number_choice('[0] no hay resultados|[1] 1 resultado|(1,+Inf] %1% resultados', array('%1%' => $cuantos), $cuantos);
?>
</th></tr>
</tfoot>
</table>

<ul class="sf_admin_actions">
<div style="clear:left"> </div>
<br />
   <li><?php 
开发者ID:Esleelkartea,项目名称:legedia-ESLE,代码行数:31,代码来源:_edit_list.php


示例5: include_slot

?>

<div id="middle-side" class="forum">

  <div class="breadcrumb">
    <?php 
include_slot('forum_navigation');
?>
  </div>
  
  <h1><?php 
echo $title;
?>
</h1>
  
  <?php 
include_partial('sfSimpleForum/figures', array('display_topic_link' => true, 'nb_topics' => Doctrine::getTable('sfSimpleForumTopic')->findByForumId($forum->get('id'))->count(), 'topic_rule' => 'sfSimpleForum/forum?forum_name=' . $name, 'display_post_link' => false, 'nb_posts' => $post_pager->getNbResults(), 'post_rule' => '', 'feed_rule' => 'sfSimpleForum/forumLatestPostsFeed?forum_name=' . $name, 'feed_title' => $feed_title));
?>
  
  <?php 
include_partial('sfSimpleForum/post_list', array('posts' => $post_pager->getResults(), 'rankArray' => $rankArray, 'include_topic' => true));
?>
  
  <div id="pager">
    <?php 
echo pager_navigation($post_pager, 'sfSimpleForum/forumLatestPosts?forum_name=' . $name);
?>
  </div>

</div>
开发者ID:rschumacher,项目名称:sfDoctrineSimpleForumPlugin,代码行数:30,代码来源:forumLatestPostsSuccess.php


示例6: format_date

        echo format_date($issue->getStartingDate());
        ?>
</td>
        <td><?php 
        echo format_date($issue->getEndingDate());
        ?>
</td>
        <td><?php 
        echo link_to(__('Edit'), '@edit_issue?project_id=' . $issue->project_id . '&issue_id=' . $issue->getId());
        ?>
 | <?php 
        echo link_to(__('Delete'), '@delete_issue?project_id=' . $issue->project_id . '&issue_id=' . $issue->getId(), array('confirm' => __('Do you really want to delete this issue?')));
        ?>
</td>
      </tr>
    <?php 
    }
    ?>
  <?php 
}
?>

  <tr>
    <td></td>
    <td colspan="5"><?php 
echo pager_navigation($pager, $url);
?>
</td>
    <td></td>
  </tr>
</table>
开发者ID:kmatu,项目名称:phpcollab3,代码行数:31,代码来源:_issues_list.php


示例7: include_partial

</strong> notizie. 
	        Sono visualizzate cronologicamente dalla <?php 
echo $pager->getFirstIndice();
?>
 alla 
	        <?php 
echo $pager->getLastIndice();
?>
.</p>

	        <?php 
echo include_partial('news/newslist', array('pager' => $pager, 'context' => CONTEXT_TAG));
?>

	        <?php 
echo pager_navigation($pager, 'news/tag?id=' . $tag_id, true, 7);
?>
		
	</div>
	<div class="threecol last">
		
		<div class="section-box">
	        <h6>Collegamenti</h6>
	        <div class="float-container">
	          <ul>
	           <li>La pagina dell'argomento <?php 
echo link_to($tag, '@argomento?triple_value=' . $tag);
?>
</li>
	            <?php 
if ($sf_user->isAuthenticated()) {
开发者ID:valerio-bozzolan,项目名称:openparlamento,代码行数:31,代码来源:tagSuccess.php


示例8: foreach

foreach ($answer_pager->getResults() as $answer) {
    ?>
    <div class="answer">
      <h2><?php 
    echo link_to_question($answer->getQuestion());
    ?>
</h2>
      <?php 
    echo $answer->getHtmlBody();
    ?>
      <div class="subtitle" style="margin-top: -8px">
      <?php 
    echo __('answered by %1% on %2%', array('%1%' => link_to_profile($answer->getUser()), '%2%' => format_date($answer->getCreatedAt(), 'f')));
    ?>
      </div>
      <div class="options">
        <?php 
    include_partial('moderator/answer_options', array('answer' => $answer));
    ?>
      </div>
    </div>
  <?php 
}
?>
</div>

<div id="question_pager" class="right">
  <?php 
echo pager_navigation($answer_pager, 'moderator/reportedAnswers');
?>
</div>
开发者ID:jonphipps,项目名称:Metadata-Registry,代码行数:31,代码来源:reportedAnswersSuccess.php


示例9: url_for

</a></td>
          <td><a href="<?php 
    echo url_for('@relatorio_show_encaminhamento?id=' . $atendimento->getEncaminhamentoId());
    ?>
"><?php 
    echo $atendimento->getDescricao();
    ?>
</a></td>
        </tr>
        <?php 
}
?>
      </tbody>
    </table>
    <?php 
echo pager_navigation($pager, '@relatorio_encaminhamento_interval?start=' . strtotime($datesQueryFormated['start']) . '&end=' . strtotime($datesQueryFormated['end']));
?>
  </div>
  <div style="clear:both"></div>
  <div id="graphData">
    <div id="visualize-data-container">
    <table id="visualize-data">
     <caption>Encaminhamentos por dia</caption>
     <thead>
       <tr>
         <td></td> 
         <?php 
foreach ($dias as $dia) {
    ?>
           <th scope="col"><?php 
    echo $dia;
开发者ID:sindvigti,项目名称:sindhealth,代码行数:31,代码来源:encaminhamentoSuccess.php


示例10: link_to

</span><span class="red thumb-down"><?php 
    echo $atto->getUtContr();
    ?>
</span>
            <p><?php 
    echo link_to($atto->getNbCommenti() . ' <strong>commenti</strong>', '#');
    ?>
</p>
          </div>
        </td>	
      </tr>
    <?php 
}
?>
    <tr>
      <td align="center" colspan='4'>
        <?php 
echo pager_navigation($pager, '@parlamentare_atti?id=' . $parlamentare_id . '&slug=' . $parlamentare_slug);
?>
      </td>
    </tr>

    <tr>
      <td align="center" colspan='4'>
        <?php 
echo format_number_choice('[0] nessun risultato|[1] 1 risultato|(1,+Inf] %1% risultati', array('%1%' => $pager->getNbResults()), $pager->getNbResults());
?>
      </td>
    </tr>
  </tbody>
</table>
开发者ID:valerio-bozzolan,项目名称:openparlamento,代码行数:31,代码来源:_attiList.php


示例11: include_partial

?>
</li>
  </ul>
  
  <?php 
include_partial('forums/figures', array('display_topic_link' => false, 'nb_topics' => $forum->getNbTopics(), 'topic_rule' => '', 'display_post_link' => true, 'nb_posts' => $forum->getNbPosts(), 'post_rule' => '@list_forum_latest_posts?forum_name=' . $forum->getStrippedName() . '&project=' . $project->getSlug(), 'feed_rule' => '@list_forum_latest_posts_feed?forum_name=' . $forum->getStrippedName() . '&project=' . $project->getSlug(), 'feed_title' => $feed_title));
?>
  
  <?php 
if ($forum->getNbTopics()) {
    ?>
    
    <?php 
    include_partial('forums/topic_list', array('topics' => $topics, 'include_forum' => false, 'project' => $project, 'forum' => $forum));
    ?>
    
    <?php 
    echo pager_navigation($topic_pager, 'forums/forum?forum_name=' . $forum->getStrippedName() . '&project=' . $project);
    ?>
  <?php 
} else {
    ?>
    <p><?php 
    echo __('There is no topic in this discussion yet. Perhaps you would like to %start%?', array('%start%' => link_to(__('start a new one'), 'forums/createTopic?forum_name=' . $forum->getStrippedName() . '&project=' . $project->getSlug())));
    ?>
</p>
  <?php 
}
?>

</div>
开发者ID:sgrove,项目名称:cothinker,代码行数:31,代码来源:forumSuccess.php


示例12: slot

    slot('forum_navigation');
    ?>
  <?php 
    echo forum_breadcrumb(array(array(sfConfig::get('app_sfSimpleForumPlugin_forum_name', 'Forums'), 'forums/forumList'), $title));
    ?>
  
<?php 
    end_slot();
}
?>

<div class="sfSimpleForum">
  
  <h1><?php 
echo $title;
?>
</h1>
  
  <?php 
include_partial('forums/figures', array('display_topic_link' => true, 'nb_topics' => sfSimpleForumTopicPeer::countForUser($user->getUserId()), 'topic_rule' => 'forums/userLatestTopics?username=' . $username . '&project=' . $project->getSlug(), 'display_post_link' => false, 'nb_posts' => $post_pager->getNbResults(), 'post_rule' => '', 'feed_rule' => 'forums/userLatestPostsFeed?username=' . $username, 'feed_title' => $feed_title));
?>
  
  <?php 
include_partial('forums/post_list', array('posts' => $post_pager->getResults(), 'include_topic' => true, 'project' => $project));
?>
  
  <?php 
echo pager_navigation($post_pager, 'forums/userLatestPosts?username=' . $username . '&project=' . $project->getSlug());
?>

</div>
开发者ID:sgrove,项目名称:cothinker,代码行数:31,代码来源:userLatestPostsSuccess.php


示例13: __

<h1><?php 
echo __('popular questions for tag "%1%"', array('%1%' => $sf_request->getParameter('tag')));
?>
</h1>

<?php 
echo include_partial('question/question_list', array('question_pager' => $question_pager));
echo pager_navigation($question_pager, '@tag?tag=' . $sf_request->getParameter('tag'));
开发者ID:emacsattic,项目名称:symfony,代码行数:8,代码来源:showSuccess.php


示例14: foreach

foreach ($pager->getResults() as $usuario) {
    $odd = fmod(++$i, 2);
    ?>
<tr class="sf_admin_row_<?php 
    echo $odd;
    ?>
">
<?php 
    include_partial('list_td_tabular', array('usuario' => $usuario));
    include_partial('list_td_actions', array('usuario' => $usuario));
    ?>
</tr>
<?php 
}
?>
</tbody>
<tfoot>
<tr><th colspan="8">
<div class="float-right">
<?php 
$value = pager_navigation($pager, 'usuarios/list');
echo $value ? $value : '';
?>
</div>
<?php 
echo format_number_choice('[0] no hay resultados|[1] 1 resultado|(1,+Inf] %1% resultados', array('%1%' => $pager->getNbResults()), $pager->getNbResults());
?>
</th></tr>
</tfoot>
</table>
开发者ID:Esleelkartea,项目名称:legedia-ESLE,代码行数:30,代码来源:_list.php


示例15: link_to

?>
</h1>

  <?php 
if (sfConfig::get('app_sfSimpleForumPlugin_allow_new_topic_outside_forum', true)) {
    ?>
  <ul class="forum_actions">
    <li><?php 
    echo link_to(__('New topic', null, 'sfSimpleForum'), 'sfSimpleForum/createTopic');
    ?>
</li>
  </ul>    
  <?php 
}
?>
  
  <?php 
include_partial('sfSimpleForum/figures', array('display_topic_link' => false, 'nb_topics' => $topics_pager->getNbResults(), 'topic_rule' => '', 'display_post_link' => true, 'nb_posts' => Doctrine::getTable('sfSimpleForumPost')->findByUserId($user->getId())->count(), 'post_rule' => 'sfSimpleForum/userLatestPosts?username=' . $username, 'feed_rule' => 'sfSimpleForum/userLatestTopicsFeed?username=' . $username, 'feed_title' => $feed_title));
?>
    
  <?php 
include_partial('sfSimpleForum/topic_list', array('topics' => $topics_pager->getResults(), 'include_forum' => true));
?>

  <div id="pager">
    <?php 
echo pager_navigation($topics_pager, 'sfSimpleForum/userLatestTopics?username=' . $username);
?>
  </div>

</div>
开发者ID:vjousse,项目名称:sfDoctrineSimpleForumPlugin,代码行数:31,代码来源:userLatestTopicsSuccess.php


示例16: printf

        <td class="numeric-value"><p><?php 
    printf("%d", $record->getMissioni());
    ?>
</p></td>
        <td class="numeric-value"><p><?php 
    printf("%d", $record->getRibellioni());
    ?>
</p></td>
      </tr>
    <?php 
}
?>

    <tr>
      <td align="center" colspan='5'>
        <?php 
echo pager_navigation($pager, 'datiStorici/indicePresenze');
?>
      </td>
    </tr>

    <tr>
      <td align="center" colspan='5'>
        <?php 
echo format_number_choice('[0] nessun risultato|[1] 1 risultato|(1,+Inf] %1% risultati', array('%1%' => $pager->getNbResults()), $pager->getNbResults());
?>
      </td>
    </tr>
  </tbody>
</table>
开发者ID:valerio-bozzolan,项目名称:openparlamento,代码行数:30,代码来源:_indicePresenzeList.php


示例17: use_helper

<?php

use_helper('Pagination', 'Field', 'Viewer');
$id = $sf_params->get('id');
$lang = $sf_params->get('lang');
$module = $sf_context->getModuleName();
echo display_title(__($module . ' list'), $module, false);
echo '<div id="nav_space">&nbsp;</div>';
include_partial("{$module}/nav4list");
echo display_content_top('list_content');
echo start_content_tag($module . '_content');
if (!isset($items) || count($items) == 0) {
    echo __('there is no %1% to show', array('%1%' => __('outings')));
} else {
    $pager_navigation = pager_navigation($pager);
    echo $pager_navigation;
    ?>
<ul class="clear">
    <?php 
    foreach ($items as $item) {
        ?>
    <li><?php 
        include_partial($module . '/list_full', array('item' => $item));
        ?>
    </li>
    <?php 
    }
    ?>
</ul>
<?php 
    echo $pager_navigation;
开发者ID:snouhaud,项目名称:camptocamp.org,代码行数:31,代码来源:listfullSuccess.php


示例18: count

    ?>
</h2>
    <?php 
    echo count($answer->getRelevancys());
    ?>
 points
    posted by <?php 
    echo link_to($answer->getUser(), 'user/show?id=' . $answer->getUser()->getId());
    ?>
 
    on <?php 
    echo format_date($answer->getCreatedAt(), 'p');
    ?>
    <div>
      <?php 
    echo $answer->getBody();
    ?>
    </div>
  </div>
<?php 
}
?>
</div>        
 
<div id="question_pager">
  <?php 
echo pager_navigation($answer_pager, 'answer/recent');
?>
</div>

开发者ID:arrisray,项目名称:askeet,代码行数:29,代码来源:recentSuccess.php


示例19: include_slot

<div id="middle-side" class="forum">

  <div class="breadcrumb">
    <?php 
include_slot('forum_navigation');
?>
  </div>
  
  <h1><?php 
echo $title;
?>
</h1>
  
  <?php 
include_partial('sfSimpleForum/figures', array('display_topic_link' => false, 'nb_topics' => $topics_pager->getNbResults(), 'topic_rule' => '', 'display_post_link' => true, 'nb_posts' => Doctrine::getTable('sfSimpleForumPost')->findAll()->count(), 'post_rule' => 'sfSimpleForum/latestPosts', 'feed_rule' => 'sfSimpleForum/latestTopicsFeed', 'feed_title' => $feed_title));
?>
    
  <?php 
include_partial('sfSimpleForum/topic_list', array('topics' => $topics_pager->getResults(), 'include_forum' => true));
?>
  
  <br/>
  
  <div id="pager">
    <?php 
echo pager_navigation($topics_pager, 'sfSimpleForum/latestTopics');
?>
  </div>

</div>
开发者ID:vjousse,项目名称:sfDoctrineSimpleForumPlugin,代码行数:30,代码来源:latestTopicsSuccess.php


示例20: include_partial

echo $pager->getNbResults();
?>
</strong> notizie. Sono visualizzate cronologicamente dalla <?php 
echo $pager->getFirstIndice();
?>
 alla  <?php 
echo $pager->getLastIndice();
?>
.</p>

	      <?php 
echo include_partial('news/newslist', array('pager' => $pager, 'context' => CONTEXT_LIST));
?>

	       <?php 
echo pager_navigation($pager, 'news/decretiLegislativiList');
?>
		
	</div>
	<div class="threecol last">
		
		<div class="section-box">
	        <h6>Collegamenti</h6>
	        <div class="float-container">
	          <ul>
	            <li><?php 
echo link_to('Lista dei decreti legislativi', '@attiDecretiLegislativi');
?>
</li>
	          </ul>
	        </div>
开发者ID:valerio-bozzolan,项目名称:openparlamento,代码行数:31,代码来源:decretiLegislativiListSuccess.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP pages函数代码示例发布时间:2022-05-15
下一篇:
PHP pager_load_array函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap