<div class="sf_admin_list">
  <?php if (!$pager->getNbResults()): ?>
      <div class="lui__list_empty">Нет элементов</div>
  <?php else: ?>
    <table cellspacing="0" width="100%" cellpadding="0">

      <tfoot>
        <tr>
          <th colspan="4">
            <?php if ($pager->haveToPaginate()): ?>
              <?php include_partial('csSetting/pagination', array('pager' => $pager)) ?>
            <?php endif; ?>

            <?php //echo format_number_choice('[0] no result|[1] 1 result|(1,+Inf] %1% results', array('%1%' => $pager->getNbResults()), $pager->getNbResults(), 'sf_admin') ?>
            <?php if ($pager->haveToPaginate()): ?>
              <?php echo __('(page %%page%%/%%nb_pages%%)', array('%%page%%' => $pager->getPage(), '%%nb_pages%%' => $pager->getLastPage()), 'sf_admin') ?>
            <?php endif; ?>
          </th>
        </tr>
      </tfoot>
      <tbody>
        <?php $group = '' ?>
        <?php foreach ($pager->getResults() as $i => $cs_setting): $odd = fmod(++$i, 2) ? 'odd' : 'even' ?>
          <?php if ($cs_setting['group'] != $group): ?>
            <tr class="sf_admin_row sf_admin_list_th_name sf_admin_setting_group">
              <th colspan="4">
                <i class="br20"></i>
                <?php echo $cs_setting['group'] ?>
              </th>
            </tr>
          <?php endif ?>
          <?php $group = $cs_setting->getGroup(); ?>
          <tr class="sf_admin_row sf_admin_tr_stop <?php echo $odd ?>">
            <?php include_partial('csSetting/list_td_tabular', array('cs_setting' => $cs_setting, 'form' => $form)) ?>
            <?php //include_partial('csSetting/list_td_actions', array('cs_setting' => $cs_setting, 'helper' => $helper)) ?>
          </tr>
        <?php endforeach; ?>
      </tbody>
    </table>
  <?php endif; ?>
</div>
<script type="text/javascript">
/* <![CDATA[ */
function checkAll()
{
  var boxes = document.getElementsByTagName('input'); for(var index = 0; index < boxes.length; index++) { box = boxes[index]; if (box.type == 'checkbox' && box.className == 'sf_admin_batch_checkbox') box.checked = document.getElementById('sf_admin_list_batch_checkbox').checked } return true;
}
/* ]]> */
</script>
