0) {
$id = $_REQUEST['id'];
if (! isset($_REQUEST['action'])) {
$html .= '
';
$popup .= _("Angeltypes") . ': ' . implode(', ', $angeltypes);
$popup .= '
' . _("Groups") . ': ' . implode(', ', $groups);
if (strlen($angel["Telefon"]) > 0)
$popup .= "
Tel: " . $angel["Telefon"];
if (strlen($angel["Handy"]) > 0)
$popup .= "
Handy: " . $angel["Handy"];
if (strlen($angel["DECT"]) > 0)
$popup .= "
DECT: " . $angel["DECT"];
if (strlen($angel["Hometown"]) > 0)
$popup .= "
Hometown: " . $angel["Hometown"];
if (strlen($angel["CreateDate"]) > 0)
$popup .= "
Registered: " . $angel["CreateDate"];
if (strlen($angel["Art"]) > 0)
$popup .= "
Type: " . $angel["Art"];
if (strlen($angel["ICQ"]) > 0)
$popup .= "
ICQ: " . $angel["ICQ"];
if (strlen($angel["jabber"]) > 0)
$popup .= "
Jabber: " . $angel["jabber"];
return array(
'Nick' => User_Nick_render($angel),
'Name' => htmlspecialchars($angel['Vorname'] . ' ' . $angel['Name']) . $popup,
'DECT' => htmlspecialchars($angel['DECT']),
'Gekommen' => '
',
'freeloads' => sql_select_single_cell("SELECT COUNT(*) FROM `ShiftEntry` WHERE `freeloaded` = 1 AND `UID` = " . sql_escape($angel['UID'])),
'Aktiv' => '
',
'force_active' => '
',
'Tshirt' => '
',
'Size' => $angel['Size'],
'lastLogIn' => date('d.m.&\n\b\s\p;H:i', $angel['lastLogIn']),
'edit' => img_button(page_link_to('admin_user') . '&id=' . $angel['UID'], 'pencil', _("edit"))
);
}
$angels = array_map('prepare_angel_table', $angels);
$Gekommen = sql_select_single_cell("SELECT COUNT(*) FROM `User` WHERE `Gekommen` = 1");
$Active = sql_select_single_cell("SELECT COUNT(*) FROM `User` WHERE `Aktiv` = 1");
$force_active_count = sql_select_single_cell("SELECT COUNT(*) FROM `User` WHERE `force_active` = 1");
$freeloads_count = sql_select_single_cell("SELECT COUNT(*) FROM `ShiftEntry` WHERE `freeloaded` = 1");
$Tshirt = sql_select_single_cell("SELECT COUNT(*) FROM `User` WHERE `Tshirt` = 1");
$angels[] = array(
'Nick' => '
Summe',
'Gekommen' => $Gekommen,
'Aktiv' => $Active,
'force_active' => $force_active_count,
'freeloads' => $freeloads_count,
'Tshirt' => $Tshirt ,
'edit' => '
' . count($angels) . ''
);
$html .= table(array(
'Nick' => '
Nick',
'Name' => '
Vorname Name',
'DECT' => '
DECT',
'Gekommen' => '
',
'freeloads' => '
' . _("Freeloads") . '
',
'Aktiv' => '
',
'force_active' => '
',
'Tshirt' => '
',
'Size' => '
',
'lastLogIn' => '
Last login',
'edit' => ''
), $angels);
}
return page(array(
'
',
$html,
'
'
));
}
?>