Source of: php3/newsformat.inc

<?

if(!isset($imgpath)) $imgpath "/Images";

if(isset(
$protectmultiincnwsfmt)) return;
$protectmultiincnwsfmt 1;

function 
writeHeader($ofile$title$url$rdf)
{
    global 
$imgpath;

    
fputs($ofile"<table cellpadding=0 cellspacing=0 border=0 bgcolor=\"#000000\" width=\"100%\"><tr><td>\n");
    
fputs($ofile"<table cellpadding=4 cellspacing=1 border=0 width=\"100%\">\n");
    
fputs($ofile"<tr><td bgcolor=\"#000000\" background=\"$imgpath/news_title_background.gif\"><p>\n");
    
fputs($ofile"<A HREF=\"$rdf\"><IMG SRC=\"$imgpath/icons/file-text2.gif\" width=10 height=14 BORDER=0 ALT=\"[ Dowload RDF ]\" align=\"right\"></A>");
    
fputs($ofile"<A class=\"NBT\" HREF=\"$url\"><font size=\"3\">$title</font></A></p></td>");
    
fputs($ofile"<tr><td bgcolor=\"#cccccc\">\n");
}


function 
writeItem($ofile$item$url)
{
    global 
$imgpath;

    if(
$item != "") {
        
$str ereg_replace("&*#37;""'"$item);
        
$str ereg_replace("&*#38;"""$str);
        
$str ereg_replace("&*#34;""\""$str);
        
$str ereg_replace("&apos;""'"$str);
        if(
$url == ""fputs($ofile"<DIV class=\"NBI\"><font size=\"2\"><IMG SRC=\"$imgpath/icons/bullet1.gif\" width=8 height=8 border=0 hspace=3 vspace=0>$str</font></DIV>\n");
        else 
fputs($ofile"<DIV class=\"NBI\"><A HREF=\"$url\"><font size=\"2\"><IMG SRC=\"$imgpath/icons/bullet1.gif\" width=8 height=8 border=0 hspace=3 vspace=0>$str</font></A></DIV>\n");
    }
}


function 
writeTextInput($ofile$title$name$url)
{
    
fputs($ofile"</td></tr><tr><FORM method=\"GET\" action=\"$url\">");
    
fputs($ofile"<td bgcolor=\"#cccccc\" align=\"center\">");
    
fputs($ofile"<font size=2>$title&nbsp;<input type=\"text\" size=10 name=\"$name\"></font>");
}


function 
finishNews($ofile$filedate$gotti)
{
    if(
$gotti == "") {
        
fputs($ofile"</td></tr>");
    } else {
        
fputs($ofile"</td></form></tr>");
    }
    
fputs($ofile"<tr><td class=\"NBC\"><font size=\"1\">Update:&nbsp;$filedate");
}


function 
writeFooter($comment)
{
    echo 
" $comment</font></td></tr>\n</table></td></tr></table>\n";
}


?>

The syntax highlighted source is automatically generated by PHP from the plaintext script.
If you want to see the source of this page, have a look here.