本文整理汇总了PHP中pager_navigation函数的典型用法代码示例。如果您正苦于以下问题:PHP pager_navigation函数的具体用法?PHP pager_navigation怎么用?PHP pager_navigation使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了pager_navigation函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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>
示例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>
示例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>
示例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 : ' ';
?>
</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
示例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>
示例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>
示例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()) {
示例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>
示例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;
示例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>
示例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>
示例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>
示例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'));
示例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>
示例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>