<table> <tr> <?php if ($this->getParameterValue('list.object_actions')): ?> [?php $c = 0; ?] <?php foreach ($this->getParameterValue('list.object_actions') as $actionName => $params): ?> <?php echo $this->addCredentialCondition('[?php $c++; ?]', $params) ?> <?php endforeach; ?> <th width="1%" colspan="[?php echo $c ?]" id="sf_admin_list_th_sf_actions">[?php echo __('Actions') ?]</th> <?php endif; ?> [?php include_partial('list_th_<?php echo $this->getParameterValue('list.layout', 'tabular') ?>') ?] </tr> [?php $i = 1; foreach ($pager->getResults() as $<?php echo $this->getSingularName() ?>): $odd = fmod(++$i, 2) ?] <tr class="sf_admin_row_[?php echo $odd ?]"> [?php include_partial('list_td_actions', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?] [?php include_partial('list_td_<?php echo $this->getParameterValue('list.layout', 'tabular') ?>', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?] </tr> [?php endforeach; ?] </table>