2013-01-09 11:13:44 +00:00
|
|
|
<?php
|
|
|
|
$YearBegin = 2012;
|
|
|
|
$Years = date('Y') - $YearBegin;
|
|
|
|
?>
|
2012-04-12 08:09:18 +00:00
|
|
|
<div id="dashboard">
|
2013-01-09 11:13:44 +00:00
|
|
|
<form method="post" action="">
|
|
|
|
<select name="year">
|
|
|
|
<?php for ($i=0 ; $i<=$Years ; $i++ ) {?>
|
|
|
|
<?php $select=''; if ($YearBegin+$Years-$i==$this->year) $select = ' selected';?>
|
|
|
|
<option value="<?=$YearBegin+$Years-$i?>"<?=$select?>><?=$YearBegin+$Years-$i?></option>
|
|
|
|
<?php }?>
|
|
|
|
</select>
|
|
|
|
<select name="month">
|
|
|
|
<?php for ( $i=1 ; $i<=12 ; $i++ ) {?>
|
|
|
|
<?php $select=''; if ($i==$this->month) $select = ' selected';?>
|
|
|
|
<option value="<?=$i?>"<?=$select?>><?=str_pad($i, 2, '0', STR_PAD_LEFT)?></option>
|
|
|
|
<?php }?>
|
|
|
|
</select>
|
|
|
|
<input type="submit" name="submit" value="Ok"/>
|
|
|
|
</form>
|
|
|
|
<h2>Liste des ciblages</h2>
|
|
|
|
<div>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th><b>Id</b></th>
|
|
|
|
<th><b>Date de création</b></th>
|
|
|
|
<th><b>Référence</b></th>
|
|
|
|
<th><b>Résultat</b></th>
|
|
|
|
<th><b>Insee</b></th>
|
|
|
|
<th><b>Actions</b></th>
|
|
|
|
</tr>
|
|
|
|
<?php foreach($this->comptages as $comptage): ?>
|
|
|
|
<tr>
|
|
|
|
<td><?=$comptage['idDefinition']?></td>
|
|
|
|
<td><?=$comptage['dateAjout']?></td>
|
|
|
|
<td><?=$comptage['reference']?></td>
|
|
|
|
<td><?=$comptage['resultat']?></td>
|
|
|
|
<td><?=$comptage['uniteInsee']?></td>
|
|
|
|
<td>
|
|
|
|
<a href="">Actualiser</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</table>
|
|
|
|
</div>
|
2012-04-12 08:09:18 +00:00
|
|
|
</div>
|