<?php

if(@$_GET['source']==1)
{
    
show_source($_SERVER['SCRIPT_FILENAME']);
    die();
}

require_once(
'../include/HSNUData.php');
//require_once('HSNUSchedule.php');

function printformheader($title)
{
    echo <<<FORM
<!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>$title</title>
</head>

<body>
<form method="post" action="fetchdata.php">
FORM;
}

function 
printformfooter($id$pass$item)
{
    echo <<<FORM
<input type="hidden" name="id" value="$id" />
<input type="hidden" name="pass" value="$pass" />
<input type="hidden" name="item" value="$item" />
<input type="submit" />

</form>

</body>
</html>
FORM;
}

function 
printqueryheader($title)
{
        echo <<<HDR
<!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>$title</title>
<link rel="stylesheet" href="style_data.css" type="text/css" />
</head>

<body>
HDR;
}

function 
printqueryfooter()
{
        echo <<<FTR
</body>
</html>
FTR;
}

?>