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
|
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Calendrier</title>
<link rel="stylesheet" type="text/css" href="stylesheets/calendar.css" media="screen" />
<link rel="stylesheet" type="text/css" href="../eis/css/style.css" media="screen" />
</head>
<body>
<?php
/**
* Affiche le calendrier
*/
function displayCalendar($_month = false, $_year = false)
{
// Nbre de jour dans le mois courant
$_dayInMonth = date('t', mktime(0, 0, 0, $_month, 1, $_year));
$members=array("prénom1","nom1","prénom2","nom2","prénom3","nom3","prénom4","nom4","prénom5","nom5","prénom6","nom6","prénom7","nom7","prénom8","nom8");
echo '<table class="width-normal">';
$i=0;
echo '<table class="width-normal">';
for ($i=0;$i<15;$i=$i+2) {
echo '<tr class="width-normal"><td class="width-half"><div>'.$members[$i]." ".$members[$i+1].'</div></td><td>';
// Construction du calendrier
echo '<div id="calendar">'."\n";
echo ' <ul class="calendar-line">'."\n";
/**
* -- Mois courant --
*/
for ($day = 1; $day <= $_dayInMonth; $day++)
echo ' <li>'.$day.'</li>'."\n";
/**
* Fin du calendrier
*/
echo '</div>'."\n";
echo "</td></tr>";
}
echo "</table>";
}
displayCalendar(false, false);
?>
</body>
</html> |
Partager