Development

/plugins/sfPropel15Plugin/trunk/data/generator/sfPropelModule/admin15/template/templates/_pagination.php

You must first sign up to be able to contribute.

root/plugins/sfPropel15Plugin/trunk/data/generator/sfPropelModule/admin15/template/templates/_pagination.php

Revision 28622, 1.6 kB (checked in by francois, 3 years ago)

[sfPropel15Plugin] added experimental query-based theme for the admin generator

  • Property svn:eol-style set to native
  • Property svn:keywords set to "Id Rev Revision Author"
Line 
1 <div class="sf_admin_pagination">
2   <a href="[?php echo url_for('@<?php echo $this->getUrlForAction('list') ?>') ?]?page=1">
3     [?php echo image_tag(sfConfig::get('sf_admin_module_web_dir').'/images/first.png', array('alt' => __('First page', array(), 'sf_admin'), 'title' => __('First page', array(), 'sf_admin'))) ?]
4   </a>
5
6   <a href="[?php echo url_for('@<?php echo $this->getUrlForAction('list') ?>') ?]?page=[?php echo $pager->getPreviousPage() ?]">
7     [?php echo image_tag(sfConfig::get('sf_admin_module_web_dir').'/images/previous.png', array('alt' => __('Previous page', array(), 'sf_admin'), 'title' => __('Previous page', array(), 'sf_admin'))) ?]
8   </a>
9
10   [?php foreach ($pager->getLinks() as $page): ?]
11     [?php if ($page == $pager->getPage()): ?]
12       [?php echo $page ?]
13     [?php else: ?]
14       <a href="[?php echo url_for('@<?php echo $this->getUrlForAction('list') ?>') ?]?page=[?php echo $page ?]">[?php echo $page ?]</a>
15     [?php endif; ?]
16   [?php endforeach; ?]
17
18   <a href="[?php echo url_for('@<?php echo $this->getUrlForAction('list') ?>') ?]?page=[?php echo $pager->getNextPage() ?]">
19     [?php echo image_tag(sfConfig::get('sf_admin_module_web_dir').'/images/next.png', array('alt' => __('Next page', array(), 'sf_admin'), 'title' => __('Next page', array(), 'sf_admin'))) ?]
20   </a>
21
22   <a href="[?php echo url_for('@<?php echo $this->getUrlForAction('list') ?>') ?]?page=[?php echo $pager->getLastPage() ?]">
23     [?php echo image_tag(sfConfig::get('sf_admin_module_web_dir').'/images/last.png', array('alt' => __('Last page', array(), 'sf_admin'), 'title' => __('Last page', array(), 'sf_admin'))) ?]
24   </a>
25 </div>
26
Note: See TracBrowser for help on using the browser.