use glyph_bool in admin_active view

This commit is contained in:
Felix Favre 2014-12-06 17:30:35 +01:00
parent 67bca99571
commit 2654fcf228
1 changed files with 25 additions and 25 deletions

View File

@ -107,9 +107,9 @@ function admin_active() {
$usr['nick'] = User_Nick_render($usr); $usr['nick'] = User_Nick_render($usr);
$usr['shirt_size'] = $tshirt_sizes[$usr['Size']]; $usr['shirt_size'] = $tshirt_sizes[$usr['Size']];
$usr['work_time'] = round($usr['shift_length'] / 60) . ' min (' . round($usr['shift_length'] / 3600) . ' h)'; $usr['work_time'] = round($usr['shift_length'] / 60) . ' min (' . round($usr['shift_length'] / 3600) . ' h)';
$usr['active'] = '<img src="pic/icons/' . ($usr['Aktiv'] == 1 ? 'tick' : 'cross') . '.png" alt="' . $usr['Aktiv'] . '">'; $usr['active'] = glyph_bool($usr['Aktiv'] == 1);
$usr['force_active'] = '<img src="pic/icons/' . ($usr['force_active'] == 1 ? 'tick' : 'cross') . '.png" alt="' . $usr['force_active'] . '">'; $usr['force_active'] = glyph_bool($usr['force_active'] == 1);
$usr['tshirt'] = '<img src="pic/icons/' . ($usr['Tshirt'] == 1 ? 'tick' : 'cross') . '.png" alt="' . $usr['Tshirt'] . '">'; $usr['tshirt'] = glyph_bool($usr['Tshirt'] == 1);
$actions = array(); $actions = array();
if ($usr['Aktiv'] == 0) if ($usr['Aktiv'] == 0)