Lekcja 5, planer
This commit is contained in:
1 parent
ff62de50d2
commit
b83f3cba5f
7 files changed
+285
No files matched your search
@@ -0,0 +1,40 @@
|
||||
<!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>
|
||||
Reference in new issue
Block a user