From 7c7b2d3b54084319ed0d6392f9ea13e00173f011 Mon Sep 17 00:00:00 2001 From: Jan-Philipp Litza Date: Sat, 29 Dec 2012 13:58:59 +0100 Subject: polished code and display of shiftview and used more icons --- includes/pages/user_myshifts.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/pages/user_myshifts.php') diff --git a/includes/pages/user_myshifts.php b/includes/pages/user_myshifts.php index 353eac56..007a1681 100644 --- a/includes/pages/user_myshifts.php +++ b/includes/pages/user_myshifts.php @@ -97,9 +97,9 @@ function user_myshifts() { $html .= '' . $shift['Comment'] . ''; $html .= ''; if ($id == $user['UID']) - $html .= '' . Get_Text('edit') . ''; + $html .= img_button(page_link_to('user_myshifts') . '&edit=' . $shift['id'], 'pencil', 'edit'); if (($shift['start'] - time() > $LETZTES_AUSTRAGEN * 3600) || in_array('user_shifts_admin', $privileges)) - $html .= ' | ' . Get_Text('sign_off') . ''; + $html .= img_button(page_link_to('user_myshifts') . (($id != $user['UID'])? '&id=' . $id : '') . '&cancel=' . $shift['id'], 'cross', 'sign_off'); $html .= ''; $html .= ''; } -- cgit v1.3.1