From 3357da83390f9ffc295e72333798a581a9d8d203 Mon Sep 17 00:00:00 2001 From: themohooks <81331307+themohooks@users.noreply.github.com> Date: Mon, 8 Jul 2024 23:01:54 +0300 Subject: [PATCH] init search --- app/Controllers/SearchController.php | 18 ++++++++ app/Core/Routes.php | 4 ++ views/pages/Profile/Index.php | 2 +- views/pages/Search.php | 64 ++++++++++++++++++++++++++++ 4 files changed, 87 insertions(+), 1 deletion(-) create mode 100644 app/Controllers/SearchController.php create mode 100644 views/pages/Search.php diff --git a/app/Controllers/SearchController.php b/app/Controllers/SearchController.php new file mode 100644 index 0000000..fcf1dcb --- /dev/null +++ b/app/Controllers/SearchController.php @@ -0,0 +1,18 @@ + - +
Найти все фотографии, сделанные этим пользователем
diff --git a/views/pages/Search.php b/views/pages/Search.php new file mode 100644 index 0000000..973ae20 --- /dev/null +++ b/views/pages/Search.php @@ -0,0 +1,64 @@ + + + + + + + + + + + + +
+ + + + +
+

Результаты поиска

+
Найдено изображений: 12  ·  Новый поиск

+ $_GET['id'])); + foreach ($photos as $p) { + echo '
+ + + + + + + +
+ + + +

'.$p['place'].'

+ '.$p['postbody'].' +

'.Date::zmdate($p['timeupload']).'
Автор: mohooks

+
+
'; + } + ?> + +
+ + + + + + + + + + + + + + + + + \ No newline at end of file