127 lines
4.1 KiB
PHTML
127 lines
4.1 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>Inclus :</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>Exclus :</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 href="#myModal" role="button" class="btn btn-primary" data-toggle="modal" data-load-remote="<?=$this->url(array('controller'=> 'enrichissement','action'=>'reference', 'id'=>$this->comptageId))?>" data-remote-target="#myModal .modal-body">Commander un enrichissement</a>
|
|
<!-- Modal -->
|
|
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
<h4 class="modal-title" id="myModalLabel">Commande d'un enrichissment</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
Chargement...
|
|
<div class="progress progress-striped active">
|
|
<div class="progress-bar" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 100%">
|
|
<span class="sr-only">100% Complete</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-primary submit">Save changes</button>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
</div>
|
|
</div><!-- /.modal-content -->
|
|
</div><!-- /.modal-dialog -->
|
|
</div><!-- /.modal -->
|
|
<?php }?>
|
|
</fieldset>
|
|
|
|
</div>
|