示例#1
0
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;
}
示例#2
0
function set_page_footer($txt)
{
    global $PAGE_STYLE;
    $txt = str_replace("&", "&amp;", $txt);
    $txt = str_replace("<", "&lt;", $txt);
    $txt = str_replace(">", "&gt;", $txt);
    $txt = str_replace('"', "&quot;", $txt);
    $txt = str_replace("'", "&apos;", $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;
}