<?php
#
# Copyright 2003 James Seng. See LICENSE for the Software License.
#

function pong_page_header() {
    global $conf_stylesheet, $module_tree;

    print <<<_HTML_HEAD_
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>P O N G</title>

<link rel="stylesheet" href="$conf_stylesheet" type="text/css" /> 

</head>
<body>
<table cellspacing="0" width="100%">
  <tr bgcolor="#AAAAAA">
    <td width="30"></td>
    <td><font size="+3" color="#FFFFFF"><b>P o n G</b></font></td>
    <td valign="bottom" align="center"><font color="#FFFFFF">
        <a href="${_SERVER['PHP_SELF']}">Home</a> | 

_HTML_HEAD_;

    $module_tree->module_invoke_sub("function_base","print_menu","short");

    print <<<_HTML_HEAD2_
        <a href="?q=show_config">Config</a> |
        <a href="?q=logout">Logout</a>
        </font></td>
    <td width="30"></td>
  </tr>
</table>
<p>
_HTML_HEAD2_;
}

function pong_page_footer() {
    global $conf_version;
    print <<<_HTML_END_
<p>
<center>
<b><a href="http://james.seng.cc/wiki/wiki.cgi?PonG">PonG</a> version $conf_version</b> : Copyright &copy; 2003 <a href="http://james.seng.cc/">James Seng</a>. All Right Reserved.
</center>
</body>
</html>

_HTML_END_;
}

?>
