16 lines
424 B
PHTML
16 lines
424 B
PHTML
<select name="frmSaisie[moisRefusRCS]">
|
|
<option value="">-</option>
|
|
<?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>
|