diff options
author | AndreaChirulescu <andrea.chirulescu@gmail.com> | 2021-04-09 16:53:04 +0200 |
---|---|---|
committer | AndreaChirulescu <andrea.chirulescu@gmail.com> | 2021-04-09 16:53:04 +0200 |
commit | eb7e2ac02d652ac1ec9c842b14e1efbc27e852fc (patch) | |
tree | f1cb187d07f00f2ebbf12c7d900fb3d7a4c91157 /includes/admin | |
parent | 7dfafd9381435df08b1467b18f27fb4b2e7251e0 (diff) | |
download | gigologadmin-eb7e2ac02d652ac1ec9c842b14e1efbc27e852fc.tar.gz gigologadmin-eb7e2ac02d652ac1ec9c842b14e1efbc27e852fc.tar.bz2 gigologadmin-eb7e2ac02d652ac1ec9c842b14e1efbc27e852fc.zip |
Beuatified files after using editconfig with notepad++
Diffstat (limited to 'includes/admin')
-rw-r--r-- | includes/admin/views/giglog_admin_page.php | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/includes/admin/views/giglog_admin_page.php b/includes/admin/views/giglog_admin_page.php index 89e92fd..c00284b 100644 --- a/includes/admin/views/giglog_admin_page.php +++ b/includes/admin/views/giglog_admin_page.php @@ -42,21 +42,22 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) { <p><?php echo GiglogAdmin_AdminPage::get_filters() ?></p> <p><?php echo GiglogAdmin_AdminPage::get_concerts() ?></p> </div> - - <form method="POST" action="" class="concedit" > Here Be Dragons <br> - <label for="band">Band:</label><?php echo GiglogAdmin_AdminPage::get_allbands() ?><br> - <label for="venue">Venue:</label><?php echo GiglogAdmin_AdminPage::get_allvenues() ?><br> - <label for="cdate">Date:</label><input type="date" id="cdate" name="cdate"><br> - <label for="ticket">Tickets:</label><input type="text" id="ticket" name="ticket"><br> - <label for="eventurl">Event link:</label><input type="text" id="eventurl" name="eventurl"><br> - - <p><button>Submit</button></p> - </form> - <?php + + + <form method="POST" action="" class="concedit" > Here Be Dragons <br> + <label for="band">Band:</label><?php echo GiglogAdmin_AdminPage::get_allbands() ?><br> + <label for="venue">Venue:</label><?php echo GiglogAdmin_AdminPage::get_allvenues() ?><br> + <label for="cdate">Date:</label><input type="date" id="cdate" name="cdate"><br> + <label for="ticket">Tickets:</label><input type="text" id="ticket" name="ticket"><br> + <label for="eventurl">Event link:</label><input type="text" id="eventurl" name="eventurl"><br> + + <p><button>Submit</button></p> + </form> + <?php //currnet comment and above form can be removed once we decide how to...form. The form is meant to allow adding single concerts or editing one in the table. } static function get_allvenues() - { $select .= '<select name="selectvenue">'; - foreach ( GiglogAdmin_Venue::all_venues() AS $venue ) + { $select .= '<select name="selectvenue">'; + foreach ( GiglogAdmin_Venue::all_venues() AS $venue ) { $select .= '<option value="' . $venue -> id. '">'.$venue->vname; $select .='</option>'; @@ -67,12 +68,13 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) { } static function get_allbands() - { + { $select .= '<select name="selectband">'; + foreach ( GiglogAdmin_Band::all_bands() AS $band ) { $select .= '<option value="' . $band -> id. '">'.$band->vname; - $select .='</option>'; + $select .='</option>'; } $select .= '</select>'; return($select); @@ -144,7 +146,7 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) { return $select; } - + //function to calculate if the concert has been added in the past 10 days or before that and show a green NEW for the newest rows static function getpublishstatus($concert_id) { @@ -158,7 +160,7 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) { $date2 = new DateTime($x, new DateTimeZone('Europe/London')); $dd = $date2 -> diff($date1) ->format("%a"); } - + if ($dd <= 10) return ('<span style="color:green">NEW</span>'); } |