"; print_r($_REQUEST); if($_REQUEST['loc']!='') { $newobjrs = new zing_eatery_locationsclass; $newobjrs->Reporttype="Fetch_Single_Records_By_Location_ID"; $newobjrs->loc_id = $_REQUEST['loc']; $locresult = $newobjrs->FetchRecords(); $res=mysql_fetch_object($locresult); if($res->menu_style == 'simple') { header("location:ourmenu.php?loc=".$_REQUEST['loc']); exit; } $objrs = new zing_menucatsclass; $objrs->Reporttype="allrecord"; $objrs->condition = " WHERE menucat_loc_id=".$_REQUEST['loc'] . " AND menucat_active=1 " ; $catresult = $objrs->FetchRecords(); $menuitemObj = new zing_menuitemsclass; $menuitemObj->Reporttype="locationwiserecord"; $spice = ""; $number = ""; $list1= ""; $list2= ""; $table1 = ""; $table2 =""; ?> <? echo $res->loc_name;?>
Reporttype="Fetch_Special_By_Location_ID"; $specialItemObj->special_loc_id = $_REQUEST['loc']; $specailResult = $specialItemObj->FetchRecords(); if(mysql_num_rows($specailResult) > 0) { $tblSpecial = "
Our Menu
"; $tblSpecial .=""; while($specialRow = mysql_fetch_object($specailResult)) { $items = explode(",",$specialRow->special_menuitem_id); $item_name =""; for($i=0;$i0) $item_name .= ","; $itemObj = new zing_menuitemsclass; $itemObj->Reporttype="allrecord"; $itemObj->condition=" WHERE menuitem_id=".$items[$i]; $itemRes = $itemObj->FetchRecords(); $itemrecord=mysql_fetch_object($itemRes); $item_name .= $itemrecord->menuitem_name; } $tblSpecial .= ""; } $tblSpecial .= "
Special
 special_id&loc=".$_REQUEST['loc']."\">$item_name".$specialRow->special_desc."$".$specialRow->special_price."
"; } ?>