76 lines
4.0 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>
<?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-04-19 15:59:50 +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):?>
<?php echo $this->action('identite', 'debug', null, array('resultat' => $resultat, 'soap' => $this->soap));?>
<?php endif;?>
2011-04-19 15:59:50 +00:00
<li>
<b>
<a href="<?php echo $this->url(
2011-06-29 14:38:52 +00:00
array('controller' => 'giant', 'action' => 'identite',
'raisonSociale' => $resultat->RegisteredName,
'CompanyId' => $resultat->CompanyId,
'CompanyRegisterNumber' => $resultat->CompanyRegisterNumber,
'Pays' => $this->pays,
'Adresse' => $resultat->Address->HouseNumber.':'.$resultat->Address->Street.':'.$resultat->Address->PostCode.':'.$resultat->Address->City));?>">
2011-04-19 15:59:50 +00:00
<?php echo $resultat->RegisteredName; ?>
</a>
</b><br />
<b>
2011-06-29 14:38:52 +00:00
CompanyId : <?php echo $resultat->CompanyId;?>
</b><br />
<i><?php echo $this->TrueLabel($this->label, 'CompanyRegisterNumber') ?> :
<?php echo $this->TrueLabel($this->labelResults, $resultat->CompanyRegisterNumber); ?></i>
<br/>
2011-04-19 15:59:50 +00:00
<b>
<?php echo $resultat->VatNumber;?></b>
2011-06-29 14:38:52 +00:00
<?php echo (!empty($resultat->Address->HouseNumber))?number_format($resultat->Address->HouseNumber, 0):null;?>
2011-04-19 15:59:50 +00:00
<?php echo $resultat->Address->Street;?><br />
<b><?php echo $resultat->Address->PostCode;?>
<?php echo $resultat->Address->City;?></b><br />
<i>Forme : <?php echo $resultat->LegalForm; ?></i>
<br /><br />
</li>
<?php endforeach;?>
</ol>
<div id="Paginator">
<center>
<table>
<tr>
2011-06-29 14:38:52 +00:00
<?php if ($this->page > 0):?>
2011-04-19 15:59:50 +00:00
<td>
2011-06-29 14:38:52 +00:00
<a href="<?php echo $this->url(array('controller' => 'giant', 'action' => 'search', 'page' => $this->page - 1)) ?>">
2011-06-24 15:59:42 +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'" />
2011-04-19 15:59:50 +00:00
</a>
</td>
<?php endif;?>
2011-06-29 14:38:52 +00:00
<td valign="center">&nbsp;Page <?php echo $this->page + 1 .'/'. round(($this->resultats->NumberOfHits > $this->userMaxResult)?$this->resultats->NumberOfHits/$this->userMaxResult:1);?>&nbsp;</td>
2011-04-19 15:59:50 +00:00
<?php if ($this->userMaxResult < $this->resultats->NumberOfHits):?>
<td>
2011-06-29 14:38:52 +00:00
<a href="<?php echo $this->url(array('controller' => 'giant', 'action' => 'search', 'page' => $this->page + 1)) ?>">
2011-06-24 15:59:42 +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'" />
2011-04-19 15:59:50 +00:00
</a>
</td>
<?php endif;?>
</tr>
</table>
</center>
</div>
<br />
<p id="contact">
<b>Si aucun résultat ne correspond à votre recherche.
<a href="<?php echo $this->url(array('controller' => 'giant', 'action' => 'contact'))?>">Cliquez-ici.</a></b>
</p>
</div>
<?php endif;?>
</div>