[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/data/generator/sfPropelAdmin/default/template/templates/ -> _list.php (source)

   1  <table cellspacing="0" class="sf_admin_list">
   2  <thead>
   3  <tr>
   4  [?php include_partial('list_th_<?php echo $this->getParameterValue('list.layout', 'tabular') ?>') ?]
   5  <?php if ($this->getParameterValue('list.object_actions')): ?>
   6    <th id="sf_admin_list_th_sf_actions">[?php echo __('Actions') ?]</th>
   7  <?php endif; ?>
   8  </tr>
   9  </thead>
  10  <tbody>
  11  [?php $i = 1; foreach ($pager->getResults() as $<?php echo $this->getSingularName() ?>): $odd = fmod(++$i, 2) ?]
  12  <tr class="sf_admin_row_[?php echo $odd ?]">
  13  [?php include_partial('list_td_<?php echo $this->getParameterValue('list.layout', 'tabular') ?>', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?]
  14  [?php include_partial('list_td_actions', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?]
  15  </tr>
  16  [?php endforeach; ?]
  17  </tbody>
  18  <tfoot>
  19  <tr><th colspan="<?php echo $this->getParameterValue('list.object_actions') ? count($this->getColumns('list.display')) + 1 : count($this->getColumns('list.display')) ?>">
  20  <div class="float-right">
  21  [?php if ($pager->haveToPaginate()): ?]
  22    [?php echo link_to(image_tag(sfConfig::get('sf_admin_web_dir').'/images/first.png', array('align' => 'absmiddle', 'alt' => __('First'), 'title' => __('First'))), '<?php echo $this->getModuleName() ?>/list?page=1') ?]
  23    [?php echo link_to(image_tag(sfConfig::get('sf_admin_web_dir').'/images/previous.png', array('align' => 'absmiddle', 'alt' => __('Previous'), 'title' => __('Previous'))), '<?php echo $this->getModuleName() ?>/list?page='.$pager->getPreviousPage()) ?]
  24  
  25    [?php foreach ($pager->getLinks() as $page): ?]
  26      [?php echo link_to_unless($page == $pager->getPage(), $page, '<?php echo $this->getModuleName() ?>/list?page='.$page) ?]
  27    [?php endforeach; ?]
  28  
  29    [?php echo link_to(image_tag(sfConfig::get('sf_admin_web_dir').'/images/next.png', array('align' => 'absmiddle', 'alt' => __('Next'), 'title' => __('Next'))), '<?php echo $this->getModuleName() ?>/list?page='.$pager->getNextPage()) ?]
  30    [?php echo link_to(image_tag(sfConfig::get('sf_admin_web_dir').'/images/last.png', array('align' => 'absmiddle', 'alt' => __('Last'), 'title' => __('Last'))), '<?php echo $this->getModuleName() ?>/list?page='.$pager->getLastPage()) ?]
  31  [?php endif; ?]
  32  </div>
  33  [?php echo format_number_choice('[0] no result|[1] 1 result|(1,+Inf] %1% results', array('%1%' => $pager->getNbResults()), $pager->getNbResults()) ?]
  34  </th></tr>
  35  </tfoot>
  36  </table>


Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7