|
|
@ -133,13 +133,13 @@ function admin_active() {
|
|
|
|
|
|
|
|
|
|
|
|
$actions = array();
|
|
|
|
$actions = array();
|
|
|
|
if ($usr['Aktiv'] == 0)
|
|
|
|
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) {
|
|
|
|
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') . '&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'] . '&search=' . $search . '">' . _("got t-shirt") . '</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)
|
|
|
|
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);
|
|
|
|
$usr['actions'] = join(' ', $actions);
|
|
|
|
|
|
|
|
|
|
|
@ -162,7 +162,7 @@ function admin_active() {
|
|
|
|
form_text('search', _("Search angel:"), $search),
|
|
|
|
form_text('search', _("Search angel:"), $search),
|
|
|
|
form_checkbox('show_all_shifts', _("Show all shifts"), $show_all_shifts),
|
|
|
|
form_checkbox('show_all_shifts', _("Show all shifts"), $show_all_shifts),
|
|
|
|
form_submit('submit', _("Search"))
|
|
|
|
form_submit('submit', _("Search"))
|
|
|
|
)),
|
|
|
|
), page_link_to('admin_active')),
|
|
|
|
$set_active == "" ? form(array(
|
|
|
|
$set_active == "" ? form(array(
|
|
|
|
form_text('count', _("How much angels should be active?"), $count),
|
|
|
|
form_text('count', _("How much angels should be active?"), $count),
|
|
|
|
form_submit('set_active', _("Preview"))
|
|
|
|
form_submit('set_active', _("Preview"))
|
|
|
|