diff options
author | Philip Häusler <msquare@notrademark.de> | 2015-08-13 22:57:29 +0200 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2015-08-13 22:57:29 +0200 |
commit | 1cd6a4f4f65bc4f10835af59af3ac5e454e7f8be (patch) | |
tree | d94b54eec09ee4af89ba82ce3d590e502e5684c1 /includes/pages | |
parent | f9fb12c7f1d222334cadb2c6769528e66eb8962e (diff) |
keep the show all users checkbox
Diffstat (limited to 'includes/pages')
-rw-r--r-- | includes/pages/admin_active.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/pages/admin_active.php b/includes/pages/admin_active.php index 79bb5b35..b79d1bd1 100644 --- a/includes/pages/admin_active.php +++ b/includes/pages/admin_active.php @@ -133,13 +133,13 @@ function admin_active() { $actions = array(); if ($usr['Aktiv'] == 0) - $actions[] = '<a href="' . page_link_to('admin_active') . '&active=' . $usr['UID'] . '&search=' . $search . '">' . _("set active") . '</a>'; + $actions[] = '<a href="' . page_link_to('admin_active') . '&active=' . $usr['UID'] . ($show_all_shifts ? '&show_all_shifts=' : '') . '&search=' . $search . '">' . _("set active") . '</a>'; if ($usr['Aktiv'] == 1 && $usr['Tshirt'] == 0) { - $actions[] = '<a href="' . page_link_to('admin_active') . '&not_active=' . $usr['UID'] . '&search=' . $search . '">' . _("remove active") . '</a>'; - $actions[] = '<a href="' . page_link_to('admin_active') . '&tshirt=' . $usr['UID'] . '&search=' . $search . '">' . _("got t-shirt") . '</a>'; + $actions[] = '<a href="' . page_link_to('admin_active') . '&not_active=' . $usr['UID'] . ($show_all_shifts ? '&show_all_shifts=' : '') . '&search=' . $search . '">' . _("remove active") . '</a>'; + $actions[] = '<a href="' . page_link_to('admin_active') . '&tshirt=' . $usr['UID'] . ($show_all_shifts ? '&show_all_shifts=' : '') . '&search=' . $search . '">' . _("got t-shirt") . '</a>'; } if ($usr['Tshirt'] == 1) - $actions[] = '<a href="' . page_link_to('admin_active') . '&not_tshirt=' . $usr['UID'] . '&search=' . $search . '">' . _("remove t-shirt") . '</a>'; + $actions[] = '<a href="' . page_link_to('admin_active') . '&not_tshirt=' . $usr['UID'] . ($show_all_shifts ? '&show_all_shifts=' : '') . '&search=' . $search . '">' . _("remove t-shirt") . '</a>'; $usr['actions'] = join(' ', $actions); @@ -162,7 +162,7 @@ function admin_active() { form_text('search', _("Search angel:"), $search), form_checkbox('show_all_shifts', _("Show all shifts"), $show_all_shifts), form_submit('submit', _("Search")) - )), + ), page_link_to('admin_active')), $set_active == "" ? form(array( form_text('count', _("How much angels should be active?"), $count), form_submit('set_active', _("Preview")) |