diff options
author | Philip Häusler <msquare@notrademark.de> | 2012-12-28 15:09:20 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2012-12-28 15:09:20 +0100 |
commit | e61cb06ee83cda639663d093644097ea790f2fc2 (patch) | |
tree | 1981a74ca1953abb9fe76867f1e04b0630d65ced /includes/pages/user_shifts.php | |
parent | 4c329ecbf9a2422dc8fe83977c95a3104c3ab629 (diff) |
enable deny/confirm all for restricted angeltypes
Diffstat (limited to 'includes/pages/user_shifts.php')
-rw-r--r-- | includes/pages/user_shifts.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php index 9ed566f8..4e59c2e1 100644 --- a/includes/pages/user_shifts.php +++ b/includes/pages/user_shifts.php @@ -472,7 +472,7 @@ function view_user_shifts() { if(time() > $shift['end']) { $entry_list[] = $inner_text . ' (vorbei)'; } elseif($angeltype['restricted'] == 1 && isset($angeltype['user_id']) && !isset($angeltype['confirm_user_id'])) { - $entry_list[] = $inner_text . ' <img src="pic/lock.png" alt="unconfirmed" title="Du bist für diesen Engeltyp noch nicht freigeschaltet." />'; + $entry_list[] = $inner_text . ' <img src="pic/icons/lock.png" alt="unconfirmed" title="Du bist für diesen Engeltyp noch nicht freigeschaltet." />'; } else { $entry_list[] = $inner_text . ' <a href="' . page_link_to('user_settings') . '#angel_types_anchor">(Werde ' . $angeltype['name'] .')</a>'; } @@ -588,7 +588,7 @@ function view_user_shifts() { if(time() > $shift['end']) { $entry_list[] = $inner_text . ' (vorbei)'; } elseif($angeltype['restricted'] == 1 && isset($angeltype['user_id']) && !isset($angeltype['confirm_user_id'])) { - $entry_list[] = $inner_text . ' <img src="pic/lock.png" alt="unconfirmed" title="Du bist für diesen Engeltyp noch nicht freigeschaltet." />'; + $entry_list[] = $inner_text . ' <img src="pic/icons/lock.png" alt="unconfirmed" title="Du bist für diesen Engeltyp noch nicht freigeschaltet." />'; } else { $entry_list[] = $inner_text . ' <a href="' . page_link_to('user_settings') . '#angel_types_anchor">(Werde ' . $angeltype['name'] .')</a>'; } @@ -657,7 +657,7 @@ function make_select($items, $selected, $name, $title = null) { $html_items[] = '<li class="heading">' . $title . '</li>' . "\n"; foreach ($items as $i) - $html_items[] = '<li><label><input type="checkbox" name="' . $name . '[]" value="' . $i['id'] . '"' . (in_array($i['id'], $selected) ? ' checked="checked"' : '') . '> ' . $i['name'] . '</label>' . (!isset($i['enabled']) || $i['enabled'] ? '' : ' <img src="pic/lock.png" alt="unconfirmed" title="Du bist für diesen Engeltyp noch nicht freigeschaltet." />') . '</li>'; + $html_items[] = '<li><label><input type="checkbox" name="' . $name . '[]" value="' . $i['id'] . '"' . (in_array($i['id'], $selected) ? ' checked="checked"' : '') . '> ' . $i['name'] . '</label>' . (!isset($i['enabled']) || $i['enabled'] ? '' : ' <img src="pic/icons/lock.png" alt="unconfirmed" title="Du bist für diesen Engeltyp noch nicht freigeschaltet." />') . '</li>'; $html = '<div class="selection ' . $name . '">' . "\n"; $html .= '<ul id="selection_' . $name . '">' . "\n"; $html .= implode("\n", $html_items); |