fixed merge fail - reconstructed new shift view
This commit is contained in:
parent
9270b54eb1
commit
ff99dd5b71
|
@ -408,7 +408,6 @@ function view_user_shifts() {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
$shifts_table="<table id=\"shifts\"><thead><tr><th>-</th>";
|
||||
foreach($myrooms as $room) {
|
||||
$rid=$room["id"];
|
||||
|
@ -496,7 +495,7 @@ function view_user_shifts() {
|
|||
if(time() > $shift['start']) {
|
||||
$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/icons/lock.png" alt="unconfirmed" title="Du bist für diesen Engeltyp noch nicht freigeschaltet." />';
|
||||
$entry_list[] = $inner_text . ' <img src="pic/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>';
|
||||
}
|
||||
|
@ -605,7 +604,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/icons/lock.png" alt="unconfirmed" title="Du bist für diesen Engeltyp noch nicht freigeschaltet." />';
|
||||
$entry_list[] = $inner_text . ' <img src="pic/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>';
|
||||
}
|
||||
|
@ -674,7 +673,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/icons/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/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);
|
||||
|
|
Loading…
Reference in New Issue