115 lines
3.9 KiB
PHTML
Raw Normal View History

2011-08-09 15:40:02 +00:00
<div id="center">
<h1>Surveillance Fichier</h1>
<div class="paragraph">
<table>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Mon identifiant</td>
<td width="350" class="StyleInfoData"><i><?=$this->login?></i></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Mon identité</td>
<td width="350" class="StyleInfoData"><i><?=$this->nom?></i></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Afficher uniquement les annonces</td>
<td width="350" class="StyleInfoData">
2011-09-12 14:29:58 +00:00
<form name="form_filtre" action="<?=$this->url(array('controller'=>'surveillance', 'action'=>'fichier'))?>" method="GET" enctype="multipart/form-data">
2011-08-09 15:40:02 +00:00
<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&eacute;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">&nbsp;</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">&nbsp;</td>
<td width="550" colspan="2" class="StyleInfoLib">
Entreprise : <?=$annonce['RaisonSociale'].' ('.$annonce['Siren']?>)
</td>
</tr>
<tr>
<td width="30">&nbsp;</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">&nbsp;</td>
<td width="550" colspan="2" class="StyleInfoData">BODACC n&deg;<?=$annonce['Parution'].'&nbsp;'.$annonce['Bodacc'].' du '.$annonce['DatePar'];?>. <?=$annonce['Tribunal']?>.</td>
</tr>
<?php } elseif ($annonce['Bodacc']=='G') { ?>
<tr>
<td width="30">&nbsp;</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">&nbsp;</td>
<td width="550" colspan="2" class="StyleInfoData">RNCS du <?=$annonce['Tribunal'].' au '.$annonce['DatePar'];?>.</td>
</tr>
<?php } else { ?>
<tr>
<td width="30">&nbsp;</td>
<td width="550" colspan="2" class="StyleInfoData">Collecte SD du <?=$annonce['Tribunal'].' au '.$annonce['DatePar'];?>.</td>
</tr>
<?php } ?>
<tr>
<td width="30">&nbsp;</td>
<td width="550" colspan="2" class="StyleInfoLib"><b><?=$annonce['Even']?></b></td>
</tr>
<tr>
<td colspan="4">&nbsp;</td>
</tr>
<tr>
<td width="30">&nbsp;</td><td width="550" colspan="2"><code><?=$annonce['TexteAnn']?></code></td>
</tr>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<td colspan="3"><hr width="80%"></td>
</tr>
<?php
} // Fin foreach
//Si pas d'annonces
} else {
?>
<tr>
<td width="30">&nbsp;</td>
<td width="550" colspan="2" class="StyleInfoLib">Aucune annonce</td>
</tr>
<?php
}
?>
</table>
</div>