This commit is contained in:
FlyInTheBox 2022-12-21 12:32:26 +01:00
parent 85e8e68332
commit d135580aff

View file

@ -6,18 +6,32 @@
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> 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"> <meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Kalendarz</title> <title>Kalendarz</title>
<style>
td {
border: 2px solid black;
padding: 20px;
}
table {
border-collapse: collapse;
}
</style>
</head> </head>
<body> <body>
<table> <table>
<tr> <tr>
<?PHP <?PHP
$x = date("t"); $x = date("t");
for ($i = 1; $i < $x; $i++) { for ($i = 1; $i <= $x; $i++) {
echo "<td>" . $i . "</td>";
$z=$i%7; $z=$i%7;
if ($z=0){ if ($z!=0){
echo "<td>" . $i . "</td>";
}
else {
echo "<td>" . $i . "</td>";
echo "</tr><tr>"; echo "</tr><tr>";
} }
} }
?> ?>
</tr> </tr>