X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/46863f8e2310c275ec6d3b933d53717da711b05a..b6546c4547eb47a06f80b6d0ffa474d3929602f9:/topdf.php?ds=sidebyside diff --git a/topdf.php b/topdf.php index 4ede4cdd..7d7a7f9d 100644 --- a/topdf.php +++ b/topdf.php @@ -215,8 +215,17 @@ if ($totals_only) { if ($bean->getAttribute('chtimesheet')) $html .= ''; $html .= ''; $html .= ' '; + // TODO: page breaks on PDF reports is a rarely used feature. + // Currently without configuration capability. + // Consider adding an option to user profile instead. + if (isTrue('PDF_REPORT_PAGE_BREAKS')) { + import('ttUserConfig'); + $uc = new ttUserConfig(); + $use_breaks = $uc->getValue(SYSC_PDF_REPORT_PAGE_BREAKS); + if ($use_breaks) $html .= '
'; + } } - $first_pass = false; + $first_pass = false; } // Print a regular row.