From db5df03ca93b422675e97f65041dec39adac2f23 Mon Sep 17 00:00:00 2001 From: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com> Date: Fri, 17 May 2024 19:20:22 +0200 Subject: [PATCH] Changed worked/confirmed to badges instead --- application/views/dxcalendar/index.php | 48 ++++++++++++++------------ 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/application/views/dxcalendar/index.php b/application/views/dxcalendar/index.php index c006fe315..d116717de 100644 --- a/application/views/dxcalendar/index.php +++ b/application/views/dxcalendar/index.php @@ -22,29 +22,36 @@ foreach($rss as $item) { echo "" . $item->dates[0] ?? '' . ""; echo "" . $item->dates[1] ?? '' . ""; echo ""; - if ($item->dxcc_adif >= 1) { + if ($item->dxcc_adif >= 1) { echo ''; } - if ($item->dxcc_cnfmd) { - echo ''; - } elseif ($item->dxcc_wked) { - echo ''; - } elseif ($item->no_dxcc) { - echo ''; - } else { - echo ''; + + if ($item->dxcc_cnfmd) { + echo ''; + } elseif ($item->dxcc_wked) { + echo ''; + } elseif ($item->no_dxcc) { + echo ''; + } else { + echo ''; } + echo $item->dxcc.""; - if ($item->dxcc_adif >= 1) { echo ""; } - echo "call_cnfmd) { - echo ' class"text-success">'; - } elseif ($item->call_wked) { - echo ' class="text-warning">'; - } else { - echo ' class="text-danger">'; - } - echo $item->call.""; + + if ($item->dxcc_adif >= 1) { + echo ""; + } + echo "call_cnfmd) { + echo ' class"badge bg-success">'; + } elseif ($item->call_wked) { + echo ' class="badge bg-warning">'; + } else { + echo ' class="badge bg-danger">'; + + } + echo $item->call.""; echo "$item->qslinfo"; echo "$item->source"; echo "$item->info"; @@ -57,6 +64,3 @@ foreach($rss as $item) { -