From 8254a79c58ab5f80bfd5549f6141fda8039599ab Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Tue, 3 Jan 2017 15:32:12 +0100 Subject: Bugfixes & improvements --- includes/pages/admin_rooms.php | 8 ++++++-- includes/pages/admin_user.php | 40 +++++++++++++++++++++------------------- includes/pages/user_ical.php | 1 + 3 files changed, 28 insertions(+), 21 deletions(-) (limited to 'includes/pages') diff --git a/includes/pages/admin_rooms.php b/includes/pages/admin_rooms.php index 9738f888..61923689 100644 --- a/includes/pages/admin_rooms.php +++ b/includes/pages/admin_rooms.php @@ -45,7 +45,7 @@ function admin_rooms() } if (test_request_int('id')) { - $room = Room($_REQUEST['id']); + $room = Room($_REQUEST['id'], false); if ($room === false) { engelsystem_error('Unable to load room.'); } @@ -209,7 +209,11 @@ function admin_rooms() ]), sprintf(_('Do you want to delete room %s?'), $name), buttons([ - button(page_link_to('admin_rooms') . '&show=delete&id=' . $room_id . '&ack', _('Delete'), 'delete') + button( + page_link_to('admin_rooms') . '&show=delete&id=' . $room_id . '&ack', + _('Delete'), + 'delete btn-danger' + ) ]) ]); } diff --git a/includes/pages/admin_user.php b/includes/pages/admin_user.php index ef0c9df8..8e11c5f3 100644 --- a/includes/pages/admin_user.php +++ b/includes/pages/admin_user.php @@ -41,18 +41,20 @@ function admin_user() $html .= '' . "\n"; $html .= '' . "\n"; $html .= '' . "\n"; - $html .= ' ' . "\n"; - $html .= ' ' . "\n"; - $html .= ' ' . "\n"; - $html .= ' ' . "\n"; - $html .= ' ' . "\n"; - $html .= ' ' . "\n"; - $html .= ' ' . "\n"; - $html .= ' ' . "\n"; + $html .= ' ' . "\n"; + $html .= ' ' . "\n"; + $html .= ' ' . "\n"; + $html .= ' ' . "\n"; + $html .= ' ' . "\n"; + $html .= ' ' . "\n"; + $html .= ' ' . "\n"; + $html .= ' ' . "\n"; if ($user_source['email_by_human_allowed']) { - $html .= " ' . "\n"; + $html .= " ' . "\n"; } - $html .= " ' . "\n"; + $html .= " ' . "\n"; $html .= ' ' . "\n"; @@ -79,13 +81,13 @@ function admin_user() $html .= ' ' . "\n"; - $html .= ' ' . "\n"; + $html .= ' ' . "\n"; $html .= '
Nick' . '
lastLogIn' . date('Y-m-d H:i', $user_source['lastLogIn']) . '
Name' . '
Vorname' . '
Alter' . '
Telefon' . '
Handy' . '
DECT' . '
Nick' . '
Last login

' + . date('Y-m-d H:i', $user_source['lastLogIn']) + . '

Name' . '
Vorname' . '
Alter' . '
Telefon' . '
Handy' . '
DECT' . '
email" . '
email" . '
jabber" . '
jabber" . '
Size' . html_select_key('size', 'eSize', $tshirt_sizes, $user_source['Size']) . '
T-Shirt' . "\n"; $html .= html_options('eTshirt', $options, $user_source['Tshirt']) . '
Hometown' . '
Hometown' . '
' . "\n" . ''; $html .= '' . "\n"; $html .= '' . "\n" . '
' . "\n"; - $html .= ''; + $html .= ''; $html .= ''; $html .= '
'; @@ -95,11 +97,11 @@ function admin_user() $html .= 'Hier kannst Du das Passwort dieses Engels neu setzen:
' . "\n"; $html .= '' . "\n"; - $html .= ' ' . "\n"; - $html .= ' ' . "\n"; + $html .= ' ' . "\n"; + $html .= ' ' . "\n"; - $html .= '
Passwort' . '
Wiederholung' . '
Passwort' . '
Wiederholung' . '
'; - $html .= '' . "\n"; + $html .= '' . "\n" . '
' . "\n"; + $html .= '' . "\n"; $html .= '
'; $html .= '
'; @@ -135,9 +137,9 @@ function admin_user() . ' />' . $group['Name'] . ''; } - $html .= ''; + $html .= '
'; - $html .= '' . "\n"; + $html .= '' . "\n"; $html .= ''; $html .= '
'; @@ -229,7 +231,7 @@ function admin_user() . ', active: ' . $_POST['eAktiv'] . ', tshirt: ' . $_POST['eTshirt'] ); - $html .= success('Änderung wurde gespeichert...' . '\n', true); + $html .= success('Änderung wurde gespeichert...' . "\n", true); break; case 'change_pw': diff --git a/includes/pages/user_ical.php b/includes/pages/user_ical.php index 0c4bd49a..f9c364e6 100644 --- a/includes/pages/user_ical.php +++ b/includes/pages/user_ical.php @@ -34,6 +34,7 @@ function user_ical() function send_ical_from_shifts($shifts) { header('Content-Type: text/calendar; charset=utf-8'); + header('Content-Disposition: attachment; filename=shifts.ics'); $output = "BEGIN:VCALENDAR\r\nVERSION:2.0\r\nPRODID:-//-//Engelsystem//DE\r\nCALSCALE:GREGORIAN\r\n"; foreach ($shifts as $shift) { $output .= make_ical_entry_from_shift($shift); -- cgit v1.3.1