From dc2d080cdb0ffd314009a2ecbddc19bd12d96697 Mon Sep 17 00:00:00 2001 From: themohooks <81331307+themohooks@users.noreply.github.com> Date: Wed, 17 Jul 2024 05:10:14 +0300 Subject: [PATCH] add admin pages --- views/pages/Admin/Photo.php | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/views/pages/Admin/Photo.php b/views/pages/Admin/Photo.php index da25ff9..487d179 100644 --- a/views/pages/Admin/Photo.php +++ b/views/pages/Admin/Photo.php @@ -27,7 +27,7 @@ use \App\Models\User; Изображение Информация - + Действия Покинуло очередь @@ -54,9 +54,20 @@ use \App\Models\User;

'.Date::zmdate($p['posted_at']).'
Автор: '.htmlspecialchars($author->i('username')).'

- - - '.Date::zmdate($p['timeupload']).'
Оценка
И+ К+
+ + '; + if ($p['moderated'] === 0) { + echo '
'; + } + echo ' + '; + if ($p['endmoderation'] === -1) { + $endm = 'На модерации'; + } else { + $endm = Date::zmdate($p['endmoderation']).'
Оценка
И+ К+
'; + } + echo ' + '.$endm.' ';