This commit is contained in:
FlyInTheBox 2022-12-21 08:48:08 +01:00
parent 7a8b55262c
commit 85e8e68332
2 changed files with 29 additions and 2 deletions

View file

@ -16,14 +16,15 @@
th {
background-color: burlywood;
border: 1px dotted black;
border: 1px dashed black;
padding: 5px;
}
td {
border: 1px dotted black;
border: 1px dashed black;
padding: 5px;
text-align: center;
vertical-align: center;
}
</style>
</head>

View file

@ -0,0 +1,26 @@
<!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>
</head>
<body>
<table>
<tr>
<?PHP
$x = date("t");
for ($i = 1; $i < $x; $i++) {
echo "<td>" . $i . "</td>";
$z=$i%7;
if ($z=0){
echo "</tr><tr>";
}
}
?>
</tr>
</table>
</body>
</html>