From: Nik Okuntseff Date: Mon, 19 Mar 2018 14:34:14 +0000 (+0000) Subject: Work in progress on including IP in emailed reports. X-Git-Tag: timetracker_1.19-1~998 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=f81ad45ed1f9178834ff56f4a3a2ee0839a43dd9;p=timetracker.git Work in progress on including IP in emailed reports. --- diff --git a/WEB-INF/lib/ttReportHelper.class.php b/WEB-INF/lib/ttReportHelper.class.php index ca7c83bd..129d975b 100644 --- a/WEB-INF/lib/ttReportHelper.class.php +++ b/WEB-INF/lib/ttReportHelper.class.php @@ -1254,6 +1254,8 @@ class ttReportHelper { $body .= ''.$i18n->getKey('label.cost').''; if ($bean->getAttribute('chpaid')) $body .= ''.$i18n->getKey('label.paid').''; + if ($bean->getAttribute('chip')) + $body .= ''.$i18n->getKey('label.ip').''; if ($bean->getAttribute('chinvoice')) $body .= ''.$i18n->getKey('label.invoice').''; $body .= ''; @@ -1296,6 +1298,7 @@ class ttReportHelper { $body .= ''; } if ($bean->getAttribute('chpaid')) $body .= ''; + if ($bean->getAttribute('chip')) $body .= ''; if ($bean->getAttribute('chinvoice')) $body .= ''; $body .= ''; $body .= ' '; @@ -1333,6 +1336,11 @@ class ttReportHelper { $body .= $record['paid'] == 1 ? $i18n->getKey('label.yes') : $i18n->getKey('label.no'); $body .= ''; } + if ($bean->getAttribute('chip')) { + $body .= ''; + $body .= $record['modified'] ? $record['modified_ip'].' '.$record['modified'] : $$record['created_ip'].' '.$record['created']; + $body .= ''; + } if ($bean->getAttribute('chinvoice')) $body .= ''.htmlspecialchars($record['invoice']).''; $body .= ''; @@ -1363,6 +1371,7 @@ class ttReportHelper { $body .= ''; } if ($bean->getAttribute('chpaid')) $body .= ''; + if ($bean->getAttribute('chip')) $body .= ''; if ($bean->getAttribute('chinvoice')) $body .= ''; $body .= ''; } @@ -1386,6 +1395,7 @@ class ttReportHelper { $body .= ''; } if ($bean->getAttribute('chpaid')) $body .= ''; + if ($bean->getAttribute('chip')) $body .= ''; if ($bean->getAttribute('chinvoice')) $body .= ''; $body .= ''; diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index d2e11736..6fa31d44 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.17.61.4113 | Copyright © Anuko | +  Anuko Time Tracker 1.17.61.4114 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve}