projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some cleanup in nl, no, pl, pt translation files
[timetracker.git]
/
topdf.php
diff --git
a/topdf.php
b/topdf.php
index
7aed32d
..
3f0a6dc
100644
(file)
--- a/
topdf.php
+++ b/
topdf.php
@@
-309,6
+309,11
@@
if ($totals_only) {
$html .= '</tr>';
$html .= '</table>';
}
$html .= '</tr>';
$html .= '</table>';
}
+
+// Output footer.
+if (!defined('REPORT_FOOTER') || !(REPORT_FOOTER == false)) // By default we print it unless explicitely defined as false.
+ $html .= '<p style="text-align: center;">'.$i18n->getKey('form.mail.footer').'</p>';
+
// By this time we have html ready.
// Determine title for report.
// By this time we have html ready.
// Determine title for report.
@@
-328,7
+333,7
@@
header('Content-Disposition: attachment; filename="timesheet.pdf"');
// Beginning of TCPDF code here.
// Extend TCPDF class so that we can use custom header and footer.
// Beginning of TCPDF code here.
// Extend TCPDF class so that we can use custom header and footer.
-class
Myy
PDF extends TCPDF {
+class
tt
PDF extends TCPDF {
public $image_file = 'images/tt_logo.png'; // Image file for the logo in header.
public $page_word = 'Page'; // Localized "Page" word in footer, ex: Page 1/2.
public $image_file = 'images/tt_logo.png'; // Image file for the logo in header.
public $page_word = 'Page'; // Localized "Page" word in footer, ex: Page 1/2.
@@
-361,7
+366,7
@@
class MyyPDF extends TCPDF {
}
// Create new PDF document.
}
// Create new PDF document.
-$pdf = new
Myy
PDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
+$pdf = new
tt
PDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
// If custom logo file exists - set it.
if (file_exists('images/'.$user->team_id.'.png'))
// If custom logo file exists - set it.
if (file_exists('images/'.$user->team_id.'.png'))
@@
-402,4
+407,3
@@
$pdf->writeHTML($html, true, false, false, false, '');
$pdf->Output('timesheet.pdf', 'D'); // D is for downloads.
// End of of TCPDF code.
$pdf->Output('timesheet.pdf', 'D'); // D is for downloads.
// End of of TCPDF code.
-?>
\ No newline at end of file