Example #1
0
<?php

use_helper('Pager', 'Javascript');
?>


<div class="section" style="display: block;">
  <span class="section_title">Matches</span>
</div>
<div class="section_meta" style="display: block;"><?php 
echo pager_meta($entity_pager);
?>
</div>


<div class="padded" style="display: block;">
<?php 
foreach ($entity_pager->execute() as $entity) {
    ?>

  <?php 
    $innerHtml = '<span class="text_big">' . entity_link($entity) . '</span> ' . input_hidden_tag('relationship[' . strtolower($entityField) . '_id]', $entity->id);
    ?>
  <?php 
    $innerHtml = str_replace('"', '\\\'', $innerHtml);
    ?>

  <?php 
    include_partial('entity/oneliner', array('entity' => $entity, 'actions' => array(array('raw' => '<a href="javascript:void(0);" onclick="selectEntity(\'' . $innerHtml . '\', \'' . strtolower($entityField) . '\');">select</a>'))));
    ?>
Example #2
0
<?php

use_helper('Pager', 'Javascript');
?>


<div class="section" style="display: block;">
  <span class="section_title">Matches</span>
</div>
<div class="section_meta" style="display: block;"><?php 
echo pager_meta($list_pager);
?>
</div>


<div class="padded" style="display: block;">
<?php 
foreach ($list_pager->execute() as $list) {
    ?>
  <?php 
    $list_link = str_replace("'", "\\'", list_link($list));
    ?>
  <?php 
    $innerHtml = '<span class="text_big">' . $list_link . '</span> ' . input_hidden_tag('list_id', $list->id);
    ?>
  <?php 
    $innerHtml = str_replace('"', '\\\'', $innerHtml);
    ?>

  <?php 
    include_partial('listoneliner', array('list' => $list, 'actions' => array(array('raw' => '<a href="javascript:void(0);" onclick="selectList(\'' . $innerHtml . '\', \'' . 'list' . '\');">select</a>'))));
Example #3
0
    ?>

<?php 
    if ($pager->getLastPage() > 1) {
        use_helper('Pager');
        $sort = isset($sort) ? $sort : null;
        ?>

<div class="section_meta">
  <?php 
        if (isset($more)) {
            ?>
    <?php 
            echo pager_meta_sample($pager, $more, $sort);
            ?>
  <?php 
        } else {
            ?>
    <?php 
            echo pager_meta($pager, $sort);
            ?>
  <?php 
        }
        ?>
</div>
<?php 
    }
    ?>

<?php 
}