<option <?php if ($_SESSION['aqcm_JOUR'] == "01") echo "selected"; ?> >01</option>
<option <?php if ($_SESSION['aqcm_JOUR'] == "02") echo "selected"; ?> >02</option>
<option <?php if ($_SESSION['aqcm_JOUR'] == "03") echo "selected"; ?> >03</option>
<option <?php if ($_SESSION['aqcm_JOUR'] == "04") echo "selected"; ?> >04</option>
<option <?php if ($_SESSION['aqcm_JOUR'] == "05") echo "selected"; ?> >05</option>
<option <?php if ($_SESSION['aqcm_JOUR'] == "06") echo "selected"; ?> >06</option>
<option <?php if ($_SESSION['aqcm_JOUR'] == "07") echo "selected"; ?> >07</option>
<option <?php if ($_SESSION['aqcm_JOUR'] == "08") echo "selected"; ?> >08</option>
<option <?php if ($_SESSION['aqcm_JOUR'] == "09") echo "selected"; ?> >09</option>
<option <?php if ($_SESSION['aqcm_JOUR'] == "10") echo "selected"; ?> >10</option>
<option <?php if ($_SESSION['aqcm_JOUR'] == "11") echo "selected"; ?> >11</option>
<option <?php if ($_SESSION['aqcm_JOUR'] == "12") echo "selected"; ?> >12</option>
<option <?php if ($_SESSION['aqcm_JOUR'] == "13") echo "selected"; ?> >13</option>
<option <?php if ($_SESSION['aqcm_JOUR'] == "14") echo "selected"; ?> >14</option>
<option <?php if ($_SESSION['aqcm_JOUR'] == "15") echo "selected"; ?> >15</option>
<option <?php if ($_SESSION['aqcm_JOUR'] == "16") echo "selected"; ?> >16</option>
<option <?php if ($_SESSION['aqcm_JOUR'] == "17") echo "selected"; ?> >17</option>
<option <?php if ($_SESSION['aqcm_JOUR'] == "18") echo "selected"; ?> >18</option>
<option <?php if ($_SESSION['aqcm_JOUR'] == "19") echo "selected"; ?> >19</option>
<option <?php if ($_SESSION['aqcm_JOUR'] == "20") echo "selected"; ?> >20</option>
<option <?php if ($_SESSION['aqcm_JOUR'] == "21") echo "selected"; ?> >21</option>
<option <?php if ($_SESSION['aqcm_JOUR'] == "22") echo "selected"; ?> >22</option>
<option <?php if ($_SESSION['aqcm_JOUR'] == "23") echo "selected"; ?> >23</option>
<option <?php if ($_SESSION['aqcm_JOUR'] == "24") echo "selected"; ?> >24</option>
<option <?php if ($_SESSION['aqcm_JOUR'] == "25") echo "selected"; ?> >25</option>
<option <?php if ($_SESSION['aqcm_JOUR'] == "26") echo "selected"; ?> >26</option>
<option <?php if ($_SESSION['aqcm_JOUR'] == "27") echo "selected"; ?> >27</option>
<option <?php if ($_SESSION['aqcm_JOUR'] == "28") echo "selected"; ?> >28</option>

<?php 
	if ( 
			( in_array( $mois_debut_periode, ["01","03","04","05","06","07","08","09","10","11","12"] ) ) or
			( $is_bissextile )
		) {
		echo("<option ");
		if ($_SESSION['aqcm_JOUR'] == "29") echo "selected"; 
		echo(" >29</option>");
	}

	if ( in_array( $mois_debut_periode, ["01","03","04","05","06","07","08","09","10","11","12"] ) ) {
		echo("<option ");
		if ($_SESSION['aqcm_JOUR'] == "30") echo "selected"; 
		echo(" >30</option>");
	}

	if ( in_array( $mois_debut_periode, ["01","03","05","07","08","10","12"] ) ) {
		echo("<option ");
		if ($_SESSION['aqcm_JOUR'] == "31") echo "selected"; 
		echo(" >31</option>");
	}

?>
