From: Joey Schulze Date: Tue, 28 Jan 2020 21:56:11 +0000 (+0100) Subject: Improve stempel status layout X-Git-Url: https://git.infodrom.org/?p=infodrom.org%2Fservice.infodrom.org;a=commitdiff_plain;h=d18d1e82bec86f5d41c83b854d004c1a7d37a4f3 Improve stempel status layout --- diff --git a/src/InfoCon/stempel/status.wml b/src/InfoCon/stempel/status.wml index 76b9ca3..6adea17 100644 --- a/src/InfoCon/stempel/status.wml +++ b/src/InfoCon/stempel/status.wml @@ -26,7 +26,7 @@ - + @@ -45,10 +45,10 @@ ''. ''; - $table_row = '' . + $table_row = '' . ''; $table_sum = '' . - ''; + ''; $query = "SELECT stempel.oid,stempel.id,stempel.status,start,customer,time,task,kurz FROM stempel JOIN stempel_status ON (stempel.status = stempel_status.id) WHERE time IS NOT NULL "; if (isset($month) && strlen($month)) @@ -93,7 +93,7 @@ $form); $dt = new Datetime($d[0]); $date = sprintf('%s, %s', $form, $wdays[$dt->format('w')], $d[0]); - printf($table_row, $color, $row['status'], $check.$date, $form, min2hour($row['time']), $form, $row['kurz'], + printf($table_row, $color, $row['status'], $check, $date, $form, min2hour($row['time']), $form, $row['kurz'], $row['id'], htmlspecialchars($row['task'], ENT_COMPAT | ENT_HTML401, 'ISO-8859-1')); $color = !$color; @@ -226,7 +226,7 @@ function add_sum(form, checkbox) var hours = $('#time_'+form); var rate = $('#rate_'+form); var sum = $('#sum_'+form); - var time = strtime($(checkbox).parents('tr:first').find('td:nth-child(2)').text()); + var time = strtime($(checkbox).parents('tr:first').find('td:nth-child(3)').text()); var newval; if ($(checkbox).prop('checked')) {
DatumDatum Dauer St. Arbeitsbeschreibung
%s%s
%s%s%s%s%s
 %s Summe
 %s Summe