2022-12-21 08:48:08 +01:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport"
|
|
|
|
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
|
|
<title>Kalendarz</title>
|
2022-12-21 12:32:26 +01:00
|
|
|
<style>
|
|
|
|
td {
|
|
|
|
border: 2px solid black;
|
|
|
|
padding: 20px;
|
|
|
|
}
|
2022-12-21 13:46:11 +01:00
|
|
|
|
2022-12-21 12:32:26 +01:00
|
|
|
table {
|
|
|
|
border-collapse: collapse;
|
2022-12-21 13:46:11 +01:00
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
.cyan:nth-child(even){
|
|
|
|
background-color: cyan;
|
2022-12-21 12:32:26 +01:00
|
|
|
}
|
|
|
|
</style>
|
2022-12-21 08:48:08 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
2022-12-21 13:46:11 +01:00
|
|
|
<h1>
|
|
|
|
<?PHP
|
|
|
|
echo (strftime("%B"));
|
|
|
|
?>
|
|
|
|
</h1>
|
2022-12-21 08:48:08 +01:00
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<?PHP
|
|
|
|
$x = date("t");
|
2022-12-21 13:46:11 +01:00
|
|
|
echo "<caption>".$x."</caption>";
|
2022-12-21 12:32:26 +01:00
|
|
|
for ($i = 1; $i <= $x; $i++) {
|
2022-12-21 13:46:11 +01:00
|
|
|
$z = $i % 7;
|
|
|
|
if ($z != 0) {
|
2022-12-21 12:32:26 +01:00
|
|
|
echo "<td>" . $i . "</td>";
|
2022-12-21 13:46:11 +01:00
|
|
|
} else {
|
2022-12-21 12:32:26 +01:00
|
|
|
echo "<td>" . $i . "</td>";
|
2022-12-21 08:48:08 +01:00
|
|
|
echo "</tr><tr>";
|
|
|
|
}
|
2022-12-21 13:46:11 +01:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<br>
|
|
|
|
<hr>
|
|
|
|
<br>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<?PHP
|
|
|
|
$array = array("pon","wto","śro","czw","pią","sob","nie");
|
|
|
|
foreach ($array as $i) {
|
|
|
|
echo "<td class='cyan'>".$i."</td>";
|
2022-12-21 08:48:08 +01:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</body>
|
|
|
|
</html>
|