52 lines
2.9 KiB
PHTML
Raw Normal View History

2011-04-19 15:59:50 +00:00
<div id="center">
<?php if ($this->resultats->NumberOfHits == 0): ?>
<p>Aucun résultats</p>
<?php else: ?>
<div class="giant-search">
<p align="center"><b>
2011-08-23 15:19:17 +00:00
<?php echo number_format($this->resultats->NumberOfHits, 0, ',', ' ')?>
2011-06-29 14:38:52 +00:00
réponses avec les critères <a href="<?php echo $this->lienReferer;?>">"<?php echo $this->referer; ?>"</a>.
2011-08-23 15:19:17 +00:00
<?php echo $this->userMaxResult;?> résultats affichés.
2011-06-29 14:38:52 +00:00
Page <?php echo $this->page + 1 .'/'. $this->resultats->NumberOfHits?>.</b>
2011-04-19 15:59:50 +00:00
</p>
2011-06-29 14:38:52 +00:00
<ol start="<?php echo ($this->userMaxResult * $this->page) + 1; ?>">
2011-04-19 15:59:50 +00:00
<?php foreach ($this->resultats->Results->Company as $resultat) :?>
2011-06-29 14:38:52 +00:00
<?php if($this->debug):?>
2011-08-23 15:19:17 +00:00
<?php echo $this->action('identite', 'debug', null, array('resultat' => $resultat, 'soap' => $this->soap));?>
2011-06-29 14:38:52 +00:00
<?php endif;?>
2011-08-23 15:19:17 +00:00
<li>
<?php echo $this->partial('giant/partials/rowSearch.phtml', array('resultat' => $resultat, 'pays', $this->pays));?>
</li>
2011-04-19 15:59:50 +00:00
<?php endforeach;?>
</ol>
<div id="Paginator">
<center>
<table>
2011-08-23 15:19:17 +00:00
<tr>
2011-06-29 14:38:52 +00:00
<?php if ($this->page > 0):?>
2011-08-23 15:19:17 +00:00
<td>
<a href="<?php echo $this->url(array('controller' => 'giant', 'action' => 'search', 'page' => $this->page - 1, 'pays' => $this->pays)) ?>">
2011-08-23 15:19:17 +00:00
<img src="/themes/default/images/boutton_precedent_off.gif" onmouseover="this.src='/themes/default/images/boutton_precedent_on.gif'" onmouseout="this.src='/themes/default/images/boutton_precedent_off.gif'" />
</a>
</td>
<?php endif;?>
<td valign="middle">&nbsp;Page <?php echo $this->page + 1 .'/'. round(($this->resultats->NumberOfHits > $this->userMaxResult)?$this->resultats->NumberOfHits/$this->userMaxResult:1);?>&nbsp;</td>
<?php if ($this->userMaxResult < $this->resultats->NumberOfHits):?>
<td>
<a href="<?php echo $this->url(array('controller' => 'giant', 'action' => 'search', 'page' => $this->page + 1, 'pays' => $this->pays)) ?>">
2011-08-23 15:19:17 +00:00
<img src="/themes/default/images/boutton_suivant_off.gif" onmouseover="this.src='/themes/default/images/boutton_suivant_on.gif'" onmouseout="this.src='/themes/default/images/boutton_suivant_off.gif'" />
</a>
</td>
<?php endif;?>
</tr>
</table>
</center>
2011-04-19 15:59:50 +00:00
</div>
<br />
<p id="contact">
2011-08-23 15:19:17 +00:00
<b>Si aucun résultat ne correspond à votre recherche.
<a href="<?php echo $this->url(array('controller' => 'giant', 'action' => 'contact'))?>">Cliquez-ici.</a></b>
2011-04-19 15:59:50 +00:00
</p>
</div>
<?php endif;?>
</div>