From 98909040a8dff9fb77f9e0a9acd0b9ce81236335 Mon Sep 17 00:00:00 2001 From: AndreaChirulescu Date: Sun, 5 Sep 2021 15:03:09 +0200 Subject: Fixed filter by your concerts Added CSS and extra fromatting to table --- includes/admin/views/giglog_admin_page.php | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'includes/admin/views/giglog_admin_page.php') diff --git a/includes/admin/views/giglog_admin_page.php b/includes/admin/views/giglog_admin_page.php index ce0031c..fedfa6c 100644 --- a/includes/admin/views/giglog_admin_page.php +++ b/includes/admin/views/giglog_admin_page.php @@ -110,8 +110,8 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) { } //option to select own concerts only $select .= 'user_login; + $concerts = GiglogAdmin_Concert::find_concerts($filter); $lastType = ''; @@ -223,15 +226,15 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) { $content .= ''; if ($lastType != '' && $lastType != $concert->venue()->city()) { - $content .= '' . $concert->venue()->city() . ''; + $content .= '' . $concert->venue()->city() . ''; } if ($lastType == '' ) { - $content .= '' . $concert->venue()->city() . ''; + $content .= '' . $concert->venue()->city() . ''; } // Modify these to match the database structure // $content .= '' . $row->id. ''; - $content .= ''; + $content .= '

'; $content .= '' . $concert->cname() . ''; $content .= '' . $concert->venue()->name() . ''; $fdate = strtotime($concert->cdate()); @@ -239,12 +242,12 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) { //$content .= DATE_FORMAT($fdate,'%d.%b.%Y'); $content .= '' . $newformat . ''; - $content .= '' . $this->getpublishstatus($concert) . ''; + $content .= '' . $this->getpublishstatus($concert) . ''; - $content .= '' . $this->assign_role_for_user_form('photo1', $concert) . ''; - $content .= '' . $this->assign_role_for_user_form('photo2', $concert) . ''; - $content .= '' . $this->assign_role_for_user_form('rev1', $concert) . ''; - $content .= '' . $this->assign_role_for_user_form('rev2', $concert) . ''; + $content .= '' . $this->assign_role_for_user_form('photo1', $concert) . ''; + $content .= '' . $this->assign_role_for_user_form('photo2', $concert) . ''; + $content .= '' . $this->assign_role_for_user_form('rev1', $concert) . ''; + $content .= '' . $this->assign_role_for_user_form('rev2', $concert) . ''; $content .= '' . self::STATUS_LABELS[$concert->status()] . ''; @@ -407,7 +410,7 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) { $f = '
' . ' ' . ' ' - . ' ' + . ' ' . '
'; } elseif ( $assigned_user ) { //check if slot is taken by another user -- cgit v1.2.3