Champs opposition insee
This commit is contained in:
parent
e396ef3339
commit
eb74503890
@ -0,0 +1,15 @@
|
|||||||
|
<select name="frmSaisie[moisOppositionInsee]">
|
||||||
|
<?php
|
||||||
|
setlocale (LC_TIME, 'fr_FR.UTF-8', 'fra');
|
||||||
|
$month = date("m");
|
||||||
|
for($i=0;$i<12;$i++)
|
||||||
|
{
|
||||||
|
$lastmonth = mktime(0, 0, 0, $month-$i, date("d"), date("Y"));
|
||||||
|
$selected = '';
|
||||||
|
if($i==1) $selected = 'selected';
|
||||||
|
?>
|
||||||
|
<option value="<?=date('Ym',$lastmonth)?>" <?=$selected?>><?=strftime('%B',$lastmonth)?> <?=date('Y',$lastmonth)?></option>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
Loading…
x
Reference in New Issue
Block a user