103 lines
2.4 KiB
PHTML
Raw Normal View History

2012-01-13 16:17:33 +00:00
<h1>Enrichissement</h1>
2012-01-13 13:35:11 +00:00
2012-01-13 16:17:33 +00:00
<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>
2012-01-15 17:43:37 +00:00
<h2>En attente de profil</h2>
<div>
<?php if (count($this->fileAttenteProfil)) {?>
<table>
<thead>
<tr><th>Fichier</th><th>Profil</th></tr>
</thead>
<tbody>
<?php foreach($this->fileAttenteProfil as $file) {?>
2012-01-17 11:44:02 +00:00
<tr><td><?=$file->fichier?></td>
<td>
<select name="profil">
2012-01-19 15:25:47 +00:00
<option value="" selected>-</option>
2012-01-17 11:44:02 +00:00
<?php if (count($this->listProfil)>0) { ?>
<?php foreach($this->listProfil as $profil) {?>
2012-01-19 15:25:47 +00:00
<option value="<?=$profil->id?>"><?=$profil->reference?></option>
2012-01-17 11:44:02 +00:00
<?php }?>
<?php }?>
</select>
2012-01-19 15:25:47 +00:00
<a class="setprofil" href="<?=$this->url(array('controller'=>'profil', 'action'=>'set', 'idfile'=>$file->id))?>">Ok</a>
2012-01-17 11:44:02 +00:00
</td>
</tr>
2012-01-15 17:43:37 +00:00
<?php }?>
</tbody>
</table>
2012-01-19 15:25:47 +00:00
<?php } else {?>
<p>Vide</p>
2012-01-15 17:43:37 +00:00
<?php }?>
</div>
2012-01-13 16:17:33 +00:00
<h2>Enrichissements en cours</h2>
<div>
2012-01-15 17:43:37 +00:00
<?php if (count($this->fileEnCours)) {?>
<table>
<thead>
<tr>
<th>Fichier</th>
<th>Date Ajout</th>
<th>Lignes Traités</th>
<th>Lignes Total</th>
<th>Message d'erreur</th>
<th>Action</th>
</tr>
2012-01-15 17:43:37 +00:00
</thead>
<tbody>
<?php foreach($this->fileEnCours as $file) {?>
<tr id="<?=$file->id?>" class="encours">
2012-04-19 09:19:43 +00:00
<td><?=$file->fichier?></td>
<td><?=$file->dateAdded?></td>
<td class="ligne"><?=$file->nbLigneT?></td>
<td><?=$file->nbLigne?></td>
<td><?=$file->error?></td>
<td>
<a class="restart" href="<?=$this->url(array('action'=>'restart', 'id'=>$file->id))?>">Remise à zéro et redémarrage</a>
<?php if ( !empty($file->error) ) {?>
| <a class="reprise" href="<?=$this->url(array('action'=>'reprise', 'id'=>$file->id))?>">Reprise manuelle sur erreur</a>
<?php }?>
2012-04-19 09:19:43 +00:00
</td>
2012-01-15 17:43:37 +00:00
</tr>
<?php }?>
</tbody>
</table>
2012-01-19 15:25:47 +00:00
<?php } else {?>
<p>Vide</p>
2012-01-15 17:43:37 +00:00
<?php }?>
</div>
2012-01-13 16:17:33 +00:00
2012-01-15 17:43:37 +00:00
<h2>Enrichissements terminés</h2>
<div>
<?php if (count($this->fileFinish)) {?>
2012-01-30 15:32:19 +00:00
2012-01-15 17:43:37 +00:00
<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>
2012-01-31 15:33:12 +00:00
<td>
<a href="<?=$this->url(array('controller'=>'index','action'=>'getfile', 'file'=>$file->fichierOut))?>">
<?=$file->fichierOut?></a>
</td>
2012-01-15 17:43:37 +00:00
</tr>
<?php }?>
</tbody>
</table>
2012-01-19 15:25:47 +00:00
<?php } else {?>
<p>Vide</p>
2012-01-15 17:43:37 +00:00
<?php }?>
2012-01-13 16:17:33 +00:00
</div>