From c86bba1596911dbbd9cb648630e9a193e0af6ef1 Mon Sep 17 00:00:00 2001 From: Kilian Hofmann Date: Fri, 10 May 2024 13:44:58 +0200 Subject: [PATCH] Guest Book (and components, yea) --- base/icons.php | 5 ++ base/meta.php | 4 + tasks/guestBook/components/.htaccess | 2 + tasks/guestBook/components/comment.php | 16 ++++ tasks/guestBook/components/error.php | 7 ++ tasks/guestBook/components/newComment.php | 27 +++++++ tasks/guestBook/components/pagination.php | 19 +++++ tasks/guestBook/index.php | 96 +++-------------------- 8 files changed, 92 insertions(+), 84 deletions(-) create mode 100644 base/icons.php create mode 100644 base/meta.php create mode 100644 tasks/guestBook/components/.htaccess create mode 100644 tasks/guestBook/components/comment.php create mode 100644 tasks/guestBook/components/error.php create mode 100644 tasks/guestBook/components/newComment.php create mode 100644 tasks/guestBook/components/pagination.php diff --git a/base/icons.php b/base/icons.php new file mode 100644 index 0000000..fa24ada --- /dev/null +++ b/base/icons.php @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/base/meta.php b/base/meta.php new file mode 100644 index 0000000..3500810 --- /dev/null +++ b/base/meta.php @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/tasks/guestBook/components/.htaccess b/tasks/guestBook/components/.htaccess new file mode 100644 index 0000000..54aa684 --- /dev/null +++ b/tasks/guestBook/components/.htaccess @@ -0,0 +1,2 @@ +DENY FROM ALL +ALLOW FROM 127.0.0.1 \ No newline at end of file diff --git a/tasks/guestBook/components/comment.php b/tasks/guestBook/components/comment.php new file mode 100644 index 0000000..8a4c6e7 --- /dev/null +++ b/tasks/guestBook/components/comment.php @@ -0,0 +1,16 @@ +
+
+
+
title ?>
+
name ?>
+
+
+

comment ?>

+
+ +
+
\ No newline at end of file diff --git a/tasks/guestBook/components/error.php b/tasks/guestBook/components/error.php new file mode 100644 index 0000000..30a6855 --- /dev/null +++ b/tasks/guestBook/components/error.php @@ -0,0 +1,7 @@ +
+ + + + + +
\ No newline at end of file diff --git a/tasks/guestBook/components/newComment.php b/tasks/guestBook/components/newComment.php new file mode 100644 index 0000000..a2c792a --- /dev/null +++ b/tasks/guestBook/components/newComment.php @@ -0,0 +1,27 @@ +
+
+

Leave a Comment!

+
+ +
+ Please enter a title. +
+
+
+ +
+ Please enter a name. +
+
+
+ + + 0/250 + +
+ Please enter text. +
+
+ +
+
\ No newline at end of file diff --git a/tasks/guestBook/components/pagination.php b/tasks/guestBook/components/pagination.php new file mode 100644 index 0000000..ae47de8 --- /dev/null +++ b/tasks/guestBook/components/pagination.php @@ -0,0 +1,19 @@ + \ No newline at end of file diff --git a/tasks/guestBook/index.php b/tasks/guestBook/index.php index ebde3f3..28f8906 100644 --- a/tasks/guestBook/index.php +++ b/tasks/guestBook/index.php @@ -2,20 +2,19 @@ - - + Guest Book - - - - - - - - -
- -
- - - - - -
- +
- -
-
-
-
title ?>
-
name ?>
-
-
-

comment ?>

-
- -
-
- +
- +
-
-
-

Leave a Comment!

-
- -
- Please enter a title. -
-
-
- -
- Please enter a name. -
-
-
- - - 0/250 - -
- Please enter text. -
-
- -
-
+