function set_page_footer($txt) { global $PAGE_STYLE; $txt = parse_special_fields($txt); $txt = TAB2 . '<style:footer>' . NL . TAB3 . '<text:p text:style-name="Footer">' . $txt . '</text:p>' . NL . TAB2 . '</style:footer>'; return $txt; }
function set_page_footer($txt) { global $PAGE_STYLE; $txt = str_replace("&", "&", $txt); $txt = str_replace("<", "<", $txt); $txt = str_replace(">", ">", $txt); $txt = str_replace('"', """, $txt); $txt = str_replace("'", "'", $txt); $txt = str_replace("\n", '<text:line-break/>', $txt); $txt = str_replace("\t", '<text:tab-stop/>', $txt); $txt = parse_special_fields($txt); $txt = TAB2 . '<style:footer>' . NL . TAB3 . '<text:p text:style-name="Footer">' . $txt . '</text:p>' . NL . TAB2 . '</style:footer>'; return $txt; }