|
|
|
@ -290,10 +290,9 @@ function view_user_shifts() {
|
|
|
|
|
$info[] = date("H:i", $shift['start']) . ' - ' . date("H:i", $shift['end']);
|
|
|
|
|
if (count($_SESSION['user_shifts']['rooms']) > 1)
|
|
|
|
|
$info[] = $shift['room_name'];
|
|
|
|
|
|
|
|
|
|
$shift_row = '<tr><td>' . join('<br />', $info) . '</td>';
|
|
|
|
|
$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))
|
|
|
|
|
$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 />';
|
|
|
|
|