2012-12-21 10:52:17 +00:00
|
|
|
<?php
|
|
|
|
$YearBegin = 2012;
|
2013-01-09 11:13:44 +00:00
|
|
|
$Years = date('Y') - $YearBegin;
|
2012-12-21 10:52:17 +00:00
|
|
|
?>
|
2012-04-12 08:09:18 +00:00
|
|
|
<div id="dashboard">
|
2012-12-21 10:52:17 +00:00
|
|
|
<form method="post" action="">
|
|
|
|
<select name="year">
|
2013-01-09 11:13:44 +00:00
|
|
|
<?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>
|
2012-12-21 10:52:17 +00:00
|
|
|
<?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>
|
2012-05-22 06:10:32 +00:00
|
|
|
<h2>Liste des commandes</h2>
|
2012-04-12 08:09:18 +00:00
|
|
|
<div>
|
|
|
|
<table>
|
|
|
|
<tr>
|
2012-05-22 06:10:32 +00:00
|
|
|
<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>login</b></th>
|
|
|
|
<th><b>Reférence ciblage</b></th>
|
2012-04-12 08:09:18 +00:00
|
|
|
<th><b>Fichier</b></th>
|
|
|
|
</tr>
|
2012-05-22 06:10:32 +00:00
|
|
|
<?php foreach($this->commandes as $item): ?>
|
2012-04-12 08:09:18 +00:00
|
|
|
<tr>
|
2012-05-22 06:10:32 +00:00
|
|
|
<td><?=$item['dateAdded']?></td>
|
|
|
|
<td><?=$item['commandeReference']?></td>
|
|
|
|
<td><?=$item['nbLigneTotales']?></td>
|
|
|
|
<td><?=$item['uniteInsee']?></td>
|
|
|
|
<td><?=$item['login']?></td>
|
|
|
|
<td><?=$item['critereReference']?></td>
|
2012-06-19 14:59:34 +00:00
|
|
|
<td><?=$item['fichier']?></td>
|
2012-05-22 06:10:32 +00:00
|
|
|
</tr>
|
2012-04-12 08:09:18 +00:00
|
|
|
<?php endforeach; ?>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|