Exemple #1
0
}
?>



<?php 
if (isset($entity_pager)) {
    ?>

<?php 
    include_partial('global/section', array('title' => 'Search Results', 'pager' => $entity_pager));
    ?>

<div class="padded">
  <?php 
    foreach ($entity_pager->execute() as $result) {
        ?>
    <?php 
        include_partial('entity/oneliner', array('entity' => $result, 'profile_link' => true, 'actions' => array(array('name' => 'select', 'url' => EntityTable::getInternalUrl($entity, 'findConnections', array('id2' => $result['id'])), 'options' => 'class="text_big" style="font-weight: bold"'))));
        ?>
  <?php 
    }
    ?>
  <?php 
    echo pager_noresults($entity_pager);
    ?>
</div>


<?php 
}
Exemple #2
0
    ?>

<?php 
    include_partial('global/section', array('title' => 'Entities', 'pointer' => null, 'pager' => $results_pager));
    ?>

<div class="padded">
  <?php 
    foreach ($results_pager->execute() as $entity) {
        ?>
    <div class="search-spacer">
      <?php 
        include_partial('entity/oneliner', array('entity' => $entity, 'search' => $sf_request->getParameter('q')));
        ?>
    </div>
  <?php 
    }
    ?>
  <?php 
    echo pager_noresults($results_pager);
    ?>


<?php 
    include_partial('search/cantfind');
    ?>

    
</div>
<?php 
}