From 847ebb32bebf882cd626e21779900e0bafc5fd4c Mon Sep 17 00:00:00 2001 From: themohooks <81331307+themohooks@users.noreply.github.com> Date: Mon, 17 Feb 2025 22:33:04 +0300 Subject: [PATCH] Update VotingWaiting.php --- views/pages/Contests/VotingWaiting.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/views/pages/Contests/VotingWaiting.php b/views/pages/Contests/VotingWaiting.php index 156c7e0..f8e0128 100644 --- a/views/pages/Contests/VotingWaiting.php +++ b/views/pages/Contests/VotingWaiting.php @@ -1,7 +1,7 @@ @@ -40,12 +40,17 @@ ORDER BY rates_count DESC; ', array(':id'=>$contest['id'])); foreach ($photos_contest as $pc) { $user = new User($pc['user_id']); + if (VoteContest::photo(Auth::userid(), $pc['id'], $contest['id']) === 1) { + $classp = 'voted'; + } else if (VoteContest::photo(Auth::userid(), $pc['id'], $contest['id']) === 0) { + $classm = 'voted'; + } echo '
- Красиво, на конкурс! + Красиво, на конкурс! @@ -55,7 +60,7 @@ ORDER BY rates_count DESC;
- Неконкурсное фото + Неконкурсное фото
597 КБ