0) { $ID=$_GET['id']; } else { $ID=1; } for ($i=50; $i<60; $i++) { if (file_exists("cosser_$i.swf")) { $file_1 = "cosser_$i.swf"; } if (file_exists("slideshow_$i.swf")) { $file_2 = "slideshow_$i.swf?menuid=$ID"; } } /************************** F L A S H **************************/ ?> '0' ORDER BY ord"); $temp_HTML = $temp_HTML."\t\t\n"; while ($record = mysql_fetch_array($sqlresult)) { $temp_HTML = $temp_HTML."\t\t\n"; if ($record["ID"]==$cur_ID) {$temp_HTML = $temp_HTML."\t\t\n";} } return $temp_HTML."\t\t
".$record["name"]."
\n".$prevsubmenu_HTML."\t\t
\n"; } // DOES SELECTED MENU HAVE SUBMENUS? $sqlresult = mysql_query("SELECT ID,name,parent_ID FROM web_menu WHERE parent_ID='".$ID."' AND ord<>'0' ORDER BY ord"); if (mysql_num_rows($sqlresult) > 0) { while ($record = mysql_fetch_array($sqlresult)) { $submenuslinks_HTML=$submenuslinks_HTML."\t\t".$record["name"]."   \n"; $parent_ID = $record["parent_ID"]; } } $current_ID = 0; // TO KEEP TRACK UNDER WHICH MENU THE SUBMENU GOES $end = 0; // JUST A FLAG FOR ENDING THE FOLLOWING "WHILE" LOOP while ($end !== 1) { $menu_HTML = getsubmenu($current_ID, $parent_ID, $menu_HTML); // IF NOT ON TOP LEVEL YET, MOVE ONE LEVEL UP TO NEXT PARENT MENU if ($parent_ID == 0) {$end=1; } else { $current_ID = $parent_ID; $record = mysql_fetch_array(mysql_query("SELECT ID,parent_ID FROM web_menu WHERE ID='".$current_ID."'")); $parent_ID = $record["parent_ID"]; } } /////////////////////////////////////////////////////////////////////// //////////////////////// M A I N T A B L E //////////////////////// /////////////////////////////////////////////////////////////////////// ?>
'; echo '   Ostukorv'; } ?>










O COSSER GRUPP ©     tel. 534 80 453     cosser@cosser.ee