<style>
.bgout {
background-image: url(<?php echo $menu_parm[3] ?>);
}
.bgover {
background-image: url(<?php echo $menu_parm[4] ?>);
}
</style>
<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
# menu4.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: menu4.php,v 1.1 2006/10/03 11:13:17 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><td height=\"25\" background=\"$menu_parm[5]\">
				<span STYLE=\"font-family: $menu_parm[6]; font-size : $menu_parm[7]; color: $menu_parm[8]\">";
		print "&nbsp;&nbsp;$sectionmenu[1]</span></td>";
	}
	elseif (substr($sectionmenu[2], 0, 5) == "file:")
	{
		$link = substr($sectionmenu[2], 7);
		print "<tr height=\"25\">";
		print "<td width=\"80%\" background=\"$menu_parm[3]\"><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]\">&nbsp;&nbsp;$sectionmenu[1]</a></font></td>";
	}
	elseif (substr($sectionmenu[2], 0, 5) == "http:")
	{
		print "<tr height=\"25\">";
		print "<td background=\"$menu_parm[3]\"><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]\">&nbsp;&nbsp;$sectionmenu[1]</a></font></td>";
	}
	else
	{
		print "<tr height=\"25\">";
		print "<td class=\"bgout\" onmouseover=\"this.className='bgover'\" onmouseout=\"this.className='bgout'\">";
		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]\">&nbsp;&nbsp;$sectionmenu[1]</a></font></td>";
	}
	print "<tr height=\"5\"><td></td></tr>";
}
?>
<tr><td colspan="3">&nbsp;</td></tr>
</table>
