brought back hour sum on my shifts
This commit is contained in:
parent
a573b4e325
commit
98aac2a429
|
@ -101,8 +101,8 @@ function user_myshifts() {
|
||||||
$timesum += $shift['end'] - $shift['start'];
|
$timesum += $shift['end'] - $shift['start'];
|
||||||
$myshifts_table[] = $myshift;
|
$myshifts_table[] = $myshift;
|
||||||
}
|
}
|
||||||
if (count($shifts) == 0)
|
if(count($myshifts_table) > 0)
|
||||||
$html = '<tr><td>' . ucfirst(Get_Text('none')) . '...</td><td></td><td></td><td></td><td></td><td>' . sprintf(Get_Text('pub_myshifts_goto_shifts'), page_link_to('user_shifts')) . '</td></tr>';
|
$myshifts_table[] = array('date' => "<b>Summe:</b>", 'time' => "<b>" . round($timesum / (60*60), 1) . " h</b>", 'room' => "", 'shift_info' => "", 'comment' => "", 'actions' => "");
|
||||||
|
|
||||||
return page(array(
|
return page(array(
|
||||||
msg(),
|
msg(),
|
||||||
|
|
|
@ -432,3 +432,7 @@ tr:hover .hidden {
|
||||||
td .entries img {
|
td .entries img {
|
||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
td.time {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue