1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
| <?php
include("header.php");
?>
<div id="centre">
<div id="centre-bis">
<div id="navigation">
</div><!-- #navigation -->
<div id="secondaire">
<h3>Exécution des diverses<br/>requêtes : </h3>
<ul>
</br><li><a href="mailing.php">Mailing</a></li></br>
<li><a href="requete_parrain.php">Liste parrains/parrainés</a></li></br>
<li><a href="absence_commandes.php">Absences de commandes</a></li></br>
<li><a href="commandes_mensuelles.php">Commandes mensuelles</a></li></br>
<li><a href="requete_nombre_achats.php">Nombre d'achats et statut d'abonnement</a></li>
</ul>
</div><!-- #secondaire -->
<div id="principal">
<h3>Paramètres de la requête de l'affichage des commandes mensuelles :</h3></br>
<p>Veuillez sélectionner l'année ainsi que le mois pour lesquels vous souhaitez afficher les clients ayant commandé.</p></br></br>
<form method="post" action="requete_commandes_mensuelles.php">
<table>
<tr>
<td>Année : </td>
<td>
<select name="year" required="required">
<option selected>Année</option>
<?php
for ($year = 2012; $year <= date("Y"); $year++)
print("<option>" . $year . "</option>");
?>
</select>
</td>
</tr>
</table>
</br></br>
<table>
<tr>
<td>Mois :</td>
<td>
<select name="month" required="required">
<option selected>Mois</option>
<?php
if ($year == '2012') {
for ($month = 11; $month <= 12; $month++)
print("<option>" . sprintf("%02s", $month) . "</option>");
}
elseif ($year == date("Y")) {
for ($month = 01; $month <= date("m"); $month++)
print("<option>" . sprintf("%02s", $month) . "</option>");
}
else {
for ($month = 01; $month <= 12; $month++)
print("<option>" . sprintf("%02s", $month) . "</option>");
}
?>
</select>
</td>
</tr>
</table>
</br>
<input type="submit" value="Exécuter" class="executer">
</br>
</form>
</div><!-- #principal -->
</div><!-- #centre-bis -->
</div><!-- #centre -->
</div><!-- #global -->
</body>
</html> |
Partager