115 lines
2.7 KiB
PHTML
115 lines
2.7 KiB
PHTML
<div id="center">
|
|
<h1>LISTE DES ÉTABLISSEMNTS</h1>
|
|
<div class="paragraph">
|
|
<table>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">
|
|
Numéro identifiant Siren
|
|
</td>
|
|
<td width="350" class="StyleInfoData">
|
|
<?=$this->SirenTexte($this->siren)?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Raison Sociale</td>
|
|
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Actif/Inactif</td>
|
|
<td width="350" class="StyleInfoData">
|
|
<form name="options" method="post" action="<?=$this->url(array(
|
|
'action' => 'etablissements',
|
|
'siret' => $this->siret,
|
|
'id' => $this->id,
|
|
));?>">
|
|
<select name="actif">
|
|
<option value="-1">Tous</option>
|
|
<option value="1">Actif</option>
|
|
<option value="0">Inactif</option>
|
|
</select>
|
|
<input type="submit" name="selection" value="Ok">
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
|
|
<h2>Établissements</h2>
|
|
<div class="paragraph">
|
|
<table>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td colspan="2" width="550" class="StyleInfoData">
|
|
<table>
|
|
<?php
|
|
if (count($this->etabs)>0)
|
|
{
|
|
foreach ($this->etabs as $etab)
|
|
{
|
|
if ($etab->Siege==1) $type = 'siège ';
|
|
else $type = 'établ. ';
|
|
if ($etab->Actif==1) $type.= 'actif';
|
|
else $type.= 'inactif';
|
|
|
|
if(intval($etab->Nic)==0 || intval($etab->Nic)>=99990) $type.=' provisoire';
|
|
|
|
$href = $this->url(array(
|
|
'controller' => 'identite',
|
|
'action' => 'fiche',
|
|
'siret' => $this->siren.$etab->Nic,
|
|
'id' => $this->id,
|
|
));
|
|
?>
|
|
<tr>
|
|
<td class="StyleInfoData" width="30">
|
|
<b><a title="Voir la fiche d'identité" href="<?=$href?>"><?=$etab->Nic?></a></b>
|
|
</td>
|
|
<td class="StyleInfoData" width="80"><?=$type?></td>
|
|
<td class="StyleInfoData" width="190">
|
|
<?php
|
|
if ($etab->Enseigne!='') {
|
|
?>
|
|
<b><?=$etab->Enseigne?></b><br/>
|
|
<?php
|
|
}
|
|
?>
|
|
<?=$etab->Adresse?><br/>
|
|
<?php
|
|
if ($etab->Adresse2!='') {?>
|
|
<?=$etab->Adresse2?><br/>
|
|
<?php
|
|
}
|
|
?>
|
|
<b><?=$etab->CP?> <?=$etab->Ville?></b>
|
|
<?php
|
|
if ($etab->Tel!='') echo '<br/><i>Tél : '.$etab->Tel.'</i> ';
|
|
if ($etab->Fax!='') echo '<br/><i>Fax : '.$etab->Fax.'</i>';
|
|
?>
|
|
</td>
|
|
<td class="StyleInfoData" width="260">
|
|
<?=$etab->NafEtab.' : '.$etab->NafEtabLib?>
|
|
<?php
|
|
if ($etab->Actif==1 && !empty($etab->EffEtTrLib) && !empty($etab->EffEtTr) && !in_array($etab->EffEtTr, array('N/C', 'NN', 0)) ){
|
|
?>
|
|
<br/><i><?=$etab->EffEtTrLib?></i>
|
|
<?php
|
|
}
|
|
?>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
}
|
|
?>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<?php //Carte et aucun résultat ?>
|
|
</table>
|
|
</div>
|
|
|
|
</div> |