<?php
// ----------------------------------------------------------------------
// GeBlog - Weblogging system
// Copyright (C) 2003 by the GeBlog Development Team.
// https://sourceforge.net/projects/geblog/
// ----------------------------------------------------------------------
// LICENSE
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// To read the license please visit http://www.gnu.org/copyleft/gpl.html
// ----------------------------------------------------------------------
// Original Author of file: Jay Talbot
// Purpose of file: To provide the html template functions.
// ----------------------------------------------------------------------
if (eregi("html.func.inc.php", $_SERVER['PHP_SELF']))
{
die ("You can't access this file directly...");
}
function tpl_header()
{
extract($GLOBALS);
$msstyle = "tpl/".$tplname."/styles/ms-style.css";
$nnstyle = "tpl/".$tplname."/styles/ns-style.css";
echo "<!doctype html public \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n"
."<html>\n"
."<head>\n"
."<title>".$title."</title>\n"
."<LINK REL=\"StyleSheet\" HREF=\"".$msstyle."\" TYPE=\"text/css\">\n"
."<style type=\"text/css\">\n"
."<!--\n"
."@import url(\"".$msstyle."\")\n"
."-->\n"
."</style>\n";
echo "</head>\n"
."<body>\n"
."\n";
}
function start_table_main()
{
echo "<TABLE WIDTH=\"90%\" BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\" HEIGHT=\"100%\">\n";
}
function end_table()
{
echo "</TABLE>\n";
}
function tpl_head_td()
{
extract($GLOBALS);
echo "<TR>\n"
."<TD BGCOLOR=\"#000000\" ALIGN=\"center\" VALIGN=\"middle\" HEIGHT=\"120\" colspan=\"2\">\n"
."<CENTER><H1><b>".$webname."</b></H1></CENTER>\n"
."<br><hr></TD></TR>\n"
// ."<TR><TD ALIGN=\"left\" VALIGN=\"bottom\" WIDTH=14%></td>"//<a href=\"index.php?mod=Login\">Login</a></TD>"
."<TR><TD colspan=2 ALIGN=\"left\" VALIGN=\"bottom\"> ".$time2."</TD></TR>";
}
function tpl_extra()
{
echo "<TR>\n"
."<TD WIDTH=\"15%\" VALIGN=\"left\">\n";
echo "</TD></TR>\n";
}
function tpl_menu()
{
extract($GLOBALS);
extract($_GET);
echo "<TR>\n"
."<TD BGCOLOR=\"black\" WIDTH=\"100\" HEIGHT=\"100%\" VALIGN=\"top\">\n"
."<TABLE WIDTH=\"150px\">\n"
."<TR><TD WIDTH=\"100%\" ALIGN=\"center\">\n"
."<HR>\n"
."<FONT SIZE=\"3\" COLOR=\"#8080FF\"><b>Main Menu</b></FONT><br>\n"
."<HR>\n"
."</TD></TR>\n";
make_menu($mod);
echo "<TR><TD WIDTH=\"100%\" ALIGN=\"center\">\n"
."<HR>\n"
."</TD></TR>\n"
."</TABLE>\n";
}
function tpl_cont()
{
extract($_GET);
echo "<TD WIDTH=\"80%\" HEIGHT=\"100%\" VALIGN=\"top\" ALIGN=\"left\">\n"
."<FONT COLOR=\"Aqua\">\n";
content($sub,$cmd,$mod);
echo "</FONT>\n"
."</TD>\n"
."</TR>\n";
}
function tpl_footer()
{
extract($GLOBALS);
echo "<TR><TD colspan=2>\n"
."<center>".$copyright."</center>"
."</TD></TR>\n"
."</TABLE>\n"
."</body>\n"
."</html>\n";
}
?>