Olive Branch MS Chamber of Commerce (circa Oct 1999)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
<?php // html function definitions
function start($page) { header("Content-type: text/html"); print("<html>\n<head>\n<title>$page->title</title>\n"); print("<base target=\"$page->target\">\n");
print("<link rel=stylesheet href=/styles/$page->style "); print("type=text/css>\n</head>\n<body"); if($page->bgimage) print(" background=\"$page->bgimage\"");
print(">\n"); return($page->id); }
function finish($page) { $prev = $page->prev; $next = $page->next; print("<br clear=all>\n<div class=\"footer\">\n"); if($page->content == "home") print("<img src=\"counter.php3\">\n"); print("<hr>\n"); if($prev) { print("<a href=\"page.php3?content=$prev\">");
print("<img src=\"nav.php3?label=PREV\" "); print("alt=prev border=0 align=left></a>\n"); } if($next) { print("<a href=\"page.php3?content=$next\">");
print("<img src=\"nav.php3?label=NEXT\" "); print("alt=next border=0 align=right></a>\n"); } include("$page->footer"); print("</body>\n</html>"); }
function clear($item) { if($item->clear) { print("<br"); if($item->clear != "br") print(" clear=$item->clear"); print(">\n"); } }
function text($item) { if($item->class && $item->class != "float") { print("<div"); print(" class=\"$item->class\"");
print(">\n"); } print("$item->dat\n"); if($item->class == "title") print("<hr>\n"); if($item->class && $item->class != "float") print("</div>\n"); clear($item); }
function image($item) { $image = $item->dat; $size = getimagesize($image); if($item->url) { $href = "<a href=\"$item->url\">\n";
$cap = "</a>"; } if($item->class) { if($item->class == "center" || $item->class == "banner") { $div = "<div class=\"$item->class\">\n";
} else { $div = "<div>\n"; $float = "align=\"$item->class\"";
} } print("$div"); print("$href"); print("<img src=\"$image\" ");
if($size) print("$size[3]\n "); print("alt=\"$item->alt\" ");
print("$float border=0>$cap\n"); clear($item); }
function insert($item) { if($item->class) print("<div class=\"$item->class\">\n");
include($item->dat); if($item->class) print("</div>\n"); }
function lookup($item) { $result = fopen("$item->dat","r"); print("<div"); if($item->class) print(" class=\"$item->class\"");
print(">\n"); fpassthru($result); print("</div>\n"); clear($item); }
|