40 lines
975 B
PHP
40 lines
975 B
PHP
<!DOCTYPE html>
|
|
<html lang="pl">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Planer</title>
|
|
<link rel="stylesheet" href="style.css">
|
|
</head>
|
|
<body>
|
|
<?php
|
|
if(!isset($_GET['date'])) {
|
|
header("Location: ./");
|
|
exit();
|
|
}
|
|
|
|
$date = $_GET['date'];
|
|
$year = substr($date, 0, 4);
|
|
$month = substr($date, 5, 2);
|
|
$day = substr($date, 8, 2);
|
|
?>
|
|
|
|
<div class="container">
|
|
<form action="update.php" method="post">
|
|
<p>Na <?=$date?> zaplanowałem:</p>
|
|
|
|
<br>
|
|
|
|
<textarea name="plans" id="plans">
|
|
|
|
</textarea>
|
|
|
|
<br>
|
|
|
|
<button onclick="event.preventDefault(); window.location='./?year=<?=$year?>&month=<?=$month?>';">Anuluj</button>
|
|
<button formaction="delete.php">Skasuj</button>
|
|
<input type="submit" value="OK">
|
|
</form>
|
|
</div>
|
|
</body>
|
|
</html>
|