115 lines
4.0 KiB
PHTML
115 lines
4.0 KiB
PHTML
<div id="center">
|
|
|
|
<h1>Surveillance Fichier</h1>
|
|
<div class="paragraph">
|
|
<table>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Mon identifiant</td>
|
|
<td width="350" class="StyleInfoData"><i><?=$this->login?></i></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Mon identité</td>
|
|
<td width="350" class="StyleInfoData"><i><?=$this->nom?></i></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Afficher uniquement les annonces</td>
|
|
<td width="350" class="StyleInfoData">
|
|
<form name="form_filtre" action="<?=$this->url(array('controller'=>'surveillance', 'action'=>'fichier'))?>" method="GET" enctype="multipart/form-data">
|
|
<input type="hidden" name="page" value="survlisteann" />
|
|
<input type="hidden" name="nomFic" value="<?=$this->$nomFic?>" />
|
|
<select name="filtre" onchange="document.form_filtre.submit()">
|
|
<option value="-" <?if ($this->filtre=='') echo 'selected';?>>-</option>
|
|
<option value="procol" <?if ($this->filtre=='procol') echo 'selected';?>>Procédures collectives</option>
|
|
<option value="radiations" <?if ($this->filtre=='radiations') echo 'selected';?>>Radiations</option>
|
|
<option value="ventes" <?if ($this->filtre=='ventes') echo 'selected';?>>Ventes/Cessions</option>
|
|
<option value="mmd" <?if ($this->filtre=='mmd') echo 'selected';?>>Modifications diverses</option>
|
|
<?php /* <option value="bodacc" <?if ($filtre=='bodacc') echo 'selected';?>>BODACC</option> */ ?>
|
|
</select>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoLib">Télécharger la liste en pdf</td>
|
|
<td width="350" class="StyleInfoData">
|
|
<?php
|
|
//On souhaite afficher 100 annonces par PDF
|
|
$nbPDF = ceil(count($this->annonces)/100);
|
|
for($i=0;$i<$nbPDF;$i++){ ?>
|
|
<a href="<?=$this->url(array('controller'=>'surveillance', 'action'=>'fichierpdf', 'q'=>$this->nomFic, 'page'=>$i+1, 'filtre'=>$this->filtre))?>"><?=$i+1?></a>
|
|
<?php if($i!=$nbPDF-1) print "-"; ?>
|
|
<?php } ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<h2>Surveillance</h2>
|
|
<table>
|
|
<?php if(count($this->annonces)>0) { ?>
|
|
<?php foreach($this->annonces as $annonce){ ?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="550" colspan="2" class="StyleInfoLib">
|
|
Entreprise : <?=$annonce['RaisonSociale'].' ('.$annonce['Siren']?>)
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="200" class="StyleInfoData">Site : <?=$annonce['SiteCnasea']?></td>
|
|
<td width="350" colspan="2" class="StyleInfoData">Référence : <?=$annonce['Ref']?></td>
|
|
</tr>
|
|
<?php if ($annonce['Bodacc']=='A' || $annonce['Bodacc']=='B' || $annonce['Bodacc']=='C') { ?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="550" colspan="2" class="StyleInfoData">BODACC n°<?=$annonce['Parution'].' '.$annonce['Bodacc'].' du '.$annonce['DatePar'];?>. <?=$annonce['Tribunal']?>.</td>
|
|
</tr>
|
|
<?php } elseif ($annonce['Bodacc']=='G') { ?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="550" colspan="2" class="StyleInfoData">GREFFE du <?=$annonce['Tribunal'].' au '.$annonce['DatePar'];?>.</td>
|
|
</tr>
|
|
<?php } elseif ($annonce['Bodacc']=='P') { ?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="550" colspan="2" class="StyleInfoData">RNCS du <?=$annonce['Tribunal'].' au '.$annonce['DatePar'];?>.</td>
|
|
</tr>
|
|
<?php } else { ?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="550" colspan="2" class="StyleInfoData">Collecte SD du <?=$annonce['Tribunal'].' au '.$annonce['DatePar'];?>.</td>
|
|
</tr>
|
|
<?php } ?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="550" colspan="2" class="StyleInfoLib"><b><?=$annonce['Even']?></b></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="4"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td width="30"> </td><td width="550" colspan="2"><code><?=$annonce['TexteAnn']?></code></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="4"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="4"><hr width="100%"></td>
|
|
</tr>
|
|
<?php
|
|
} // Fin foreach
|
|
//Si pas d'annonces
|
|
} else {
|
|
?>
|
|
<tr>
|
|
<td width="30"> </td>
|
|
<td width="550" colspan="2" class="StyleInfoLib">Aucune annonce</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
</table>
|
|
</div>
|