89 lines
3.1 KiB
PHTML
89 lines
3.1 KiB
PHTML
<div id="dashboard">
|
|
|
|
<div class="chemin">
|
|
<a href="<?=$this->url(array('controller'=>'dashboard', 'action'=>''))?>">Tableau de bord</a>
|
|
</div>
|
|
|
|
<div id="menu">
|
|
<a href="<?=$this->url(array('controller'=>'dashboard', 'action'=>'ciblages'))?>">Liste de vos ciblages</a> -
|
|
<a href="<?=$this->url(array('controller'=>'dashboard', 'action'=>'enrichissements'))?>">Liste de vos enrichissements</a> -
|
|
<a href="<?=$this->url(array('controller'=>'dashboard', 'action'=>'configuration'))?>">Préférences de l'application</a> -
|
|
<a href="<?=$this->url(array('controller'=>'dashboard', 'action'=>''))?>">Enrichissement de fichier</a>
|
|
</div>
|
|
|
|
<div id="rechercheCiblage">
|
|
<h2>Rechercher dans vos ciblages</h2>
|
|
<input type="text" name="searchCiblage" class="searchCiblage" />
|
|
<input type="submit" value="Rechercher" class="submit"/>
|
|
</div>
|
|
|
|
<div id="lastCiblage">
|
|
<h2>Vos derniers ciblages</h2>
|
|
<?php if(count($this->comptages) > 0):?>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Référence</th>
|
|
<th>Nombre d'entité</th>
|
|
<th>Unité Insee</th>
|
|
<th>Date</th>
|
|
<th colspan="4"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach($this->comptages as $name => $item):?>
|
|
<tr>
|
|
<td class="reference"><?=$item['reference']?></td>
|
|
<td class="update resultat"><?=number_format($item['resultat'], 0, ',', ' ')?></td>
|
|
<td class="update insee"><?=number_format($item['uniteInsee'], 0, ',', ' ')?></td>
|
|
<td class="update date"><?=$item['dateComptage']?></td>
|
|
<td><a class="update" href="<?=$this->url(array('controller'=> 'comptage','action'=>'update', 'id'=>$item['id']))?>">Actualiser</a></td>
|
|
<td><a href="<?=$this->url(array('controller'=> 'index','action'=>'index', 'id'=>$item['id']))?>">Recharger les critères de ciblage</a></td>
|
|
<td><a href="<?=$this->url(array('controller'=> 'dashboard','action'=>'ciblage', 'id'=>$item['id']))?>">Detail</a></td>
|
|
<td><a class="enrichissementref" href="<?=$this->url(array('controller'=> 'enrichissement','action'=>'reference', 'id'=>$item['id']))?>">Enrichissement</a></td>
|
|
</tr>
|
|
<?php endforeach;?>
|
|
</tbody>
|
|
</table>
|
|
<?php else:?>
|
|
<p>Aucun ciblage.<p>
|
|
<?php endif;?>
|
|
</div>
|
|
|
|
|
|
<div id="lastEnrichissement">
|
|
<h2>Vos derniers enrichissements</h2>
|
|
<?php if(count($this->enrichissements) > 0):?>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Référence</th>
|
|
<th>Nombre de lignes totales</th>
|
|
<th>Date</th>
|
|
<th>Etat</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php $i=0;foreach($this->enrichissements as $item):?>
|
|
<?php if($i++ == 5)break;?>
|
|
<tr>
|
|
<td><?=$item['reference']?></td>
|
|
<td><?=number_format($item['nbLigneTotales'], 0, ',', ' ')?></td>
|
|
<td><?=$item['dateAdded']?></td>
|
|
<td>
|
|
<?php if ( $item['dateStop']!='0000-00-00 00:00:00' ) {?>
|
|
<a href="/enrichissement/download/id/<?php echo $item['id'];?>"><?php echo $item['fichier']; ?></a>
|
|
<?php }elseif ( $item['dateStart']!='0000-00-00 00:00:00' ) {?>
|
|
En cours de traitement
|
|
<?php } else {?>
|
|
En attente de traitement
|
|
<?php } ?>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach;?>
|
|
</tbody>
|
|
</table>
|
|
<?php else:?>
|
|
<p>Aucun enrichissement.<p>
|
|
<?php endif;?>
|
|
</div>
|