105 lines
3.0 KiB
PHTML
105 lines
3.0 KiB
PHTML
<ul class="chemin clearfix rounded_t">
|
|
<li class="e0"><a class="lir" href="/">Accueil</a></li>
|
|
<li><a href="/dashboard/index"><span>Tableau de bord</span></a></li>
|
|
<li class="last"><span>Detail du ciblage (<?=$this->comptageRef?>)</span></li>
|
|
</ul>
|
|
|
|
<div id="dashboard" style="padding:10px">
|
|
|
|
<a href="<?=$this->url(array('controller'=> 'index','action'=>'index', 'id'=>$this->comptageId))?>">Charger les critères de ciblage dans l'interface</a> |
|
|
<a class="update" href="<?=$this->url(array('controller'=> 'comptage','action'=>'update', 'id'=>$this->comptageId))?>">Actualiser le comptage</a> |
|
|
<a class="enrichissementref" href="<?=$this->url(array('controller'=> 'enrichissement','action'=>'reference', 'id'=>$this->comptageId))?>">Commander un enrichissement</a>
|
|
|
|
<fieldset>
|
|
<legend>Critères</legend>
|
|
|
|
<?php foreach ( $this->criteres as $criteres ) { ?>
|
|
<div>
|
|
<h3><?=$criteres['label']?></h3>
|
|
<?php if (is_string($criteres['in'])) {?>
|
|
<div><?=$criteres['in']?></div>
|
|
<?php } else {?>
|
|
|
|
<?php if ( is_array($criteres['in']) && count($criteres['in'])>0 ) { ?>
|
|
<div>
|
|
<p>Inclu :</p>
|
|
<?php foreach( $criteres['in'] as $item ) {?>
|
|
<p><?=$item?></p>
|
|
<?php }?>
|
|
</div>
|
|
<?php }?>
|
|
|
|
<?php if ( is_array($criteres['ex']) && count($criteres['ex'])>0 ) { ?>
|
|
<div>
|
|
<p>Exclu :</p>
|
|
<?php foreach( $criteres['ex'] as $item ) {?>
|
|
<p><?=$item?></p>
|
|
<?php }?>
|
|
</div>
|
|
<?php }?>
|
|
|
|
<?php }?>
|
|
</div>
|
|
<?php }?>
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
<legend>Comptages</legend>
|
|
<table class="comptages" style="width:100%">
|
|
<thead>
|
|
<tr>
|
|
<th>Date</th>
|
|
<th>Résultat</th>
|
|
<th>Nombre d'unité Insee</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach($this->comptages as $comptage):?>
|
|
<tr>
|
|
<th><?=substr($comptage['dateAjout'],8,2).'/'.substr($comptage['dateAjout'],5,2).'/'.substr($comptage['dateAjout'],0,4)
|
|
.' '.substr($comptage['dateAjout'],11,2).':'.substr($comptage['dateAjout'],14,2).':'.substr($comptage['dateAjout'],17,2)?></th>
|
|
<th><?=number_format($comptage['resultat'], 0, '', ' ')?></th>
|
|
<th><?=number_format($comptage['uniteInsee'], 0, '', ' ')?></th>
|
|
</tr>
|
|
<?php endforeach;?>
|
|
</tbody>
|
|
</table>
|
|
</fieldset>
|
|
|
|
|
|
<fieldset>
|
|
<legend>Enrichissements</legend>
|
|
<?php if ( count($this->enrichissements)>0 ) {?>
|
|
<table style="width:100%">
|
|
<thead>
|
|
<tr>
|
|
<th>Date</th>
|
|
<th>Reférence</th>
|
|
<th>Nombre de lignes</th>
|
|
<th>Fichier</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach($this->enrichissements as $item):?>
|
|
<tr>
|
|
<th><?=$item['dateAdded']?></th>
|
|
<th><?=$item['reference']?></th>
|
|
<th><?=number_format($item['nbLigneTotales'], 0, '', ' ')?></th>
|
|
<td>
|
|
<?php if($item['dateStart']>0): ?>
|
|
<a href="/enrichissement/download/id/<?=$item['id']?>"><?=$item['fichier']?></a>
|
|
<?php else: ?>
|
|
En attente de traitement
|
|
<?php endif; ?>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach;?>
|
|
</tbody>
|
|
</table>
|
|
<?php } else {?>
|
|
<a class="enrichissementref" href="<?=$this->url(array('controller'=> 'enrichissement','action'=>'reference', 'id'=>$this->comptageId))?>">Commander un enrichissement</a>
|
|
<?php }?>
|
|
</fieldset>
|
|
|
|
|
|
</div>
|