97 lines
2.9 KiB
PHTML
97 lines
2.9 KiB
PHTML
<ul class="chemin clearfix rounded_t">
|
|
<li class="e0"><a class="lir" href="/">Accueil</a></li>
|
|
<li>
|
|
<a href="<?=$this->url(array('controller'=>'dashboard', 'action'=>'index'))?>">
|
|
<span>Tableau de bord</span>
|
|
</a>
|
|
</li>
|
|
<li class="last">
|
|
<span></span>
|
|
</li>
|
|
</ul>
|
|
|
|
<div id="dashboard">
|
|
|
|
<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 href="<?=$this->url(array('controller'=> 'dashboard','action'=>'ciblage', 'id'=>$item['id']))?>">Detail</a></td>
|
|
<td><a href="<?=$this->url(array('controller'=> 'index','action'=>'index', 'id'=>$item['id']))?>">Charger les critères de ciblage dans l'interface</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>
|
|
|
|
</div>
|