<?php if (!$pager->getNbResults()): ?>


<?php else: ?>

<table width="100%" cellspacing="0" cellpadding="3" border="0" class="lui__list_table lui__list_table_donor lui__list_table__sourse" id="lui__list_table_donor">
      <thead>
        <tr>
          <th id="sf_admin_list_batch_actions" class="sf_admin_batch_checkbox__td"><input id="sf_admin_list_batch_checkbox" type="checkbox" onclick="$('.sf_admin_batch_checkbox').prop('checked', $(this).is(':checked'));" /></th>
          <?php include_partial('callback/list_th_tabular', array('sort' => $sort, 'tab' => $tab)) ?>

          <th id="sf_admin_list_th_actions">&nbsp;</th>
        </tr>
      </thead>
 
      <tbody>
        <?php foreach ($pager->getResults() as $i => $callback): $odd = fmod(++$i, 2) ? 'odd' : 'even' ?>
          <tr class="sf_admin_row <?php echo $odd ?>" valign="top" data-href="<?php echo url_for('callback/edit?id=' . $callback->getPrimaryKey());?>">
            <?php include_partial('callback/list_td_batch_actions', array('callback' => $callback, 'helper' => $helper)) ?>
            <?php include_partial('callback/list_td_tabular', array('callback' => $callback, 'tab' => $tab)) ?>
            <td>
            <?php include_partial('callback/list_td_actions', array('callback' => $callback, 'helper' => $helper)) ?>
            </td>
          </tr>
        <?php endforeach; ?>
      </tbody>
</table>
<?php endif; ?>
<script>
    $('.blank_product').on('click', function () {
        var href = $(this).attr('href');
        var win = window.open(href, '_blank');
        if (win) {
            win.focus();
        }
        return false;
    });
</script>
<?php
    if (isset($callback)):
    include_partial('callback/list_footer', array('callback' => $callback, 'helper' => $helper));
    endif;
?>
