Viewing File: /people/testlab/www/testlab.com.pl/menu.php
<div id=menu>
<div id=menutop>menu</div>
<div id=menubottom></div>
<div id=menuoptions>
<?
$sql= "select * from `pages` where jezyk=".$_SESSION['language']." and widoczna=1 and menu=0 and sidemenu=1 order by pozycja desc;";
$result = $db ->query($sql);
echo "<ul id=sddm>";
//echo "<li ><a href='http://".$_SERVER['SERVER_NAME']."'>STRONA GŁÓWNA</a></li>";
while ($row=$db->fetchrow())
{
echo "<li ";
if ($_GET['page']==$row['id']) echo " class=menu_current";
else
if (($current==$row['id'])&&($_GET['searchfield']=='')) echo " class=menu_current";
if ($row['zachowanie']==0) echo"><a href='".$row['link'].".html'";
if ($row['zachowanie']==1) echo"><a href=\"javascript:mopen('m".$row['id']."')\" onmouseout=\"mclosetime()\"";
if ($row['zachowanie']==2) echo"><a href='".$row['link'].".html'";
$sql= "select * from `pages` where jezyk=".$_SESSION['language']." and widoczna=1 and menu=".$row['id']." order by pozycja;";
$db2 ->query($sql);
if ($db2->numrows()>0)
{
if ($row['zachowanie']==0) echo " onmouseover=\"mopen('m".$row['id']."')\" onmouseout=\"mclosetime()\" ";
}
echo ">".$row['nazwa']."</a>";
if ($db2->numrows()>0)
{
echo "
<div id=m".$row['id']." onmouseover='mcancelclosetime()' onmouseout='mclosetime()'>";
while ($row2=$db2->fetchrow()) echo "<a href='".$row2['link'].".html'>".$row2['nazwa']."</a>";
echo "</div>";
}
echo "</li>";
}
echo "<li></li></ul>";
?>
</div>
</div>
Back to Directory
File Manager