2012-01-17 11:44:02 +00:00

83 lines
1.7 KiB
PHTML

<h1>Enrichissement</h1>
<p>
<a href="<?=$this->url(array('controller'=>'envoi', 'action'=>'fileform'))?>">Envoi d'un fichier CSV</a>
</p>
<p>
<a href="<?=$this->url(array('controller'=>'profil', 'action'=>'index'))?>">Gestion des profils d'enrichissement</a>
</p>
<h2>En attente de profil</h2>
<div>
<?php if (count($this->fileAttenteProfil)) {?>
<p>Vide</p>
<?php } else {?>
<table>
<thead>
<tr><th>Fichier</th><th>Profil</th></tr>
</thead>
<tbody>
<?php foreach($this->fileAttenteProfil as $file) {?>
<tr><td><?=$file->fichier?></td>
<td>
<select name="profil">
<?php if (count($this->listProfil)>0) { ?>
<?php foreach($this->listProfil as $profil) {?>
<option value=""></option>
<?php }?>
<?php }?>
</select>
</td>
</tr>
<?php }?>
</tbody>
</table>
<?php }?>
</div>
<h2>Enrichissements en cours</h2>
<div>
<?php if (count($this->fileEnCours)) {?>
<p>Vide</p>
<?php } else {?>
<table>
<thead>
<tr><th>Fichier</th><th>Date</th><th>Lignes traités</th><th>Lignes total</th></tr>
</thead>
<tbody>
<?php foreach($this->fileEnCours as $file) {?>
<tr id="<?=$file->id?>">
<td><?=$file->fichier?></td>
<td><?=$file->dateAdded?></td>
<td class="ligne"><?=$file->nbLigneT?></td>
<td><?=$file->nbLigne?></td>
</tr>
<?php }?>
</tbody>
</table>
<?php }?>
</div>
<h2>Enrichissements terminés</h2>
<div>
<?php if (count($this->fileFinish)) {?>
<p>Vide</p>
<?php } else {?>
<table>
<thead>
<tr><th>Fichier</th><th>Date</th><th>Date Fin</th><th>Lignes total</th><th>Fichier enrichi</th></tr>
</thead>
<tbody>
<?php foreach($this->fileFinish as $file) {?>
<tr>
<td><?=$file->fichier?></td>
<td><?=$file->dateAdded?></td>
<td><?=$file->dateStop?></td>
<td><?=$file->nbLigneT?></td>
<td>-</td>
</tr>
<?php }?>
</tbody>
</table>
<?php }?>
</div>