cleanup old unused files, display tshirt size in admin_active

main
Philip Häusler 13 years ago
parent 8968763ff3
commit b864f2c5b1

@ -1,5 +1,7 @@
<?php <?php
function admin_active() { function admin_active() {
global $tshirt_sizes;
$msg = ""; $msg = "";
$search = ""; $search = "";
$count = 0; $count = 0;
@ -75,6 +77,7 @@ function admin_active() {
} }
$table .= '<tr>'; $table .= '<tr>';
$table .= '<td>' . $usr['Nick'] . '</td>'; $table .= '<td>' . $usr['Nick'] . '</td>';
$table .= '<td>' . $tshirt_sizes[$usr['Size']] . '</td>';
$table .= '<td>' . $usr['shift_count'] . '</td>'; $table .= '<td>' . $usr['shift_count'] . '</td>';
if ($usr['shift_count'] == 0) if ($usr['shift_count'] == 0)

@ -290,10 +290,9 @@ function view_user_shifts() {
$info[] = date("H:i", $shift['start']) . ' - ' . date("H:i", $shift['end']); $info[] = date("H:i", $shift['start']) . ' - ' . date("H:i", $shift['end']);
if (count($_SESSION['user_shifts']['rooms']) > 1) if (count($_SESSION['user_shifts']['rooms']) > 1)
$info[] = $shift['room_name']; $info[] = $shift['room_name'];
$shift_row = '<tr><td>' . join('<br />', $info) . '</td>'; $shift_row = '<tr><td>' . join('<br />', $info) . '</td>';
$shift_row .= '<td>' . $shift['name']; $shift_row .= '<td>' . $shift['name'];
//$shift_row = '<tr><td>' . date(($_SESSION['user_shifts']['id'] == 0 ? "Y-m-d " : "") . "H:i", $shift['start']) . ' - ' . date("H:i", $shift['end']) . '</td><td>' . $shift['name'];
if (in_array('admin_shifts', $privileges)) if (in_array('admin_shifts', $privileges))
$shift_row .= ' <a href="?p=user_shifts&edit_shift=' . $shift['SID'] . '">[edit]</a> <a href="?p=user_shifts&delete_shift=' . $shift['SID'] . '">[x]</a>'; $shift_row .= ' <a href="?p=user_shifts&edit_shift=' . $shift['SID'] . '">[edit]</a> <a href="?p=user_shifts&delete_shift=' . $shift['SID'] . '">[x]</a>';
$shift_row .= '<br />'; $shift_row .= '<br />';

@ -16,6 +16,9 @@
<th> <th>
Nickname Nickname
</th> </th>
<th>
Size
</th>
<th> <th>
Shifts Shifts
</th> </th>

Loading…
Cancel
Save