<table width="160" border="0" cellpadding="0" cellspacing="0" bgcolor="<?php echo $menu_parm[2] ?>">
<tr><td colspan="3">&nbsp;</td></tr>
<?php

#############################################################################
#                              Site@School
# menu1.php: last changed 29/06/2006  , version: 2.4.02
# by Fred Stuurman  (fc.stuurman@hccnet.nl)
# LICENSE INFORMATION: see LICENCE.txt in starnet directory
#$Id: menu1.php,v 1.1 2006/10/03 11:13:14 fstuurman Exp $
#############################################################################
if (!defined('IN_SAS'))
{
	die("Hacking attempt");
}

$query1 = "SELECT id, name, module FROM $table_pages WHERE section='$section' AND invisible != 'yes' ORDER BY sort";
$result1 = mysql_query($query1) or die_script($query1, mysql_error());
while ($sectionmenu = mysql_fetch_array($result1))
{
	if ($sectionmenu[0] == $page)
	{
		print "<tr bgcolor=\"$menu_parm[5]\" onMouseOver=\"this.bgColor='$menu_parm[4]'\" onMouseOut=\"this.bgColor='$menu_parm[5]'\">
					<td height=\"25\" width=\"10%\">&nbsp;</td>";
		print "<td width=\"00%\" ><font size=\"2\">";
		print "<a href=index.php?page=$sectionmenu[0]&section=$section style=\"text-decoration:none; font-family:$menu_parm[6]; 
					font-size:$menu_parm[7]; color:$menu_parm[8]\">$sectionmenu[1]</a></font></td>";
		print "<td width=\"10%\" align=\"left\"><img border=\"0\" alt=\"$menu_parm[9]\" src=\"$menu_parm[9]\"></td></tr>";

	}
	elseif (substr($sectionmenu[2], 0, 5) == "file:")
	{
		$link = substr($sectionmenu[2], 7);
		print "<tr bgcolor=\"$menu_parm[3]\" onMouseOver=\"this.bgColor='$menu_parm[4]'\" onMouseOut=\"this.bgColor='$menu_parm[3]'\"
					<td height=\"25\" width=\"10%\">&nbsp;</td>";
		print "<td width=\"80%\"><font size=\"2\">";
		print "<a href=\"javascript:void(0)\" OnClick=\"javascript:parent.location.href='$link'; return false;\" 
					style=\"text-decoration:none; font-family:$menu_parm[6]; font-size:$menu_parm[7]; color:$menu_parm[8]\">$sectionmenu[1]</a></font></td>";
		print "<td width=\"10%\" align=\"left\"><img border=\"0\" alt=\"$menu_parm[9]\" src=\"$menu_parm[9]\"></td></tr>";
	}
	elseif (substr($sectionmenu[2], 0, 5) == "http:")
	{
		print "<tr bgcolor=\"$menu_parm[3]\" onMouseOver=\"this.bgColor='$menu_parm[4]'\" onMouseOut=\"this.bgColor='$menu_parm[3]'\">
					<td height=\"25\" width=\"10%\">&nbsp;</td>";
		print "<td width=\"80%\"><font size=\"2\">";
		print "<a href=$sectionmenu[2] target=\"_blank\" style=\"text-decoration:none; font-family:$menu_parm[6]; 
					font-size:$menu_parm[7]; color:$menu_parm[8]\">$sectionmenu[1]</a></font></td>";
		print "<td width=\"10%\" align=\"left\"><img border=\"0\" alt=\"$menu_parm[9]\" src=\"$menu_parm[9]\"></td></tr>";
	}
	else
	{
		print "<tr bgcolor=\"$menu_parm[3]\" onMouseOver=\"this.bgColor='$menu_parm[4]'\" onMouseOut=\"this.bgColor='$menu_parm[3]'\">
					<td height=\"25\" width=\"10%\">&nbsp;</td>";
		print "<td width=\"00%\" ><font size=\"2\">";
		print "<a href=index.php?page=$sectionmenu[0]&section=$section style=\"text-decoration:none; font-family:$menu_parm[6]; 
					font-size:$menu_parm[7]; color:$menu_parm[8]\">$sectionmenu[1]</a></font></td>";
		print "<td width=\"10%\" align=\"left\"><img border=\"0\" alt=\"$menu_parm[9]\" src=\"$menu_parm[9]\"></td></tr>";
	}
	print "<tr><td height=\"3\" colspan=\"3\"></td></tr>";
}
?>
<tr><td colspan="3">&nbsp;</td></tr>
</table>
