_list.php 1.75 KB
Newer Older
Яков's avatar
first  
Яков committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?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;
?>