| Select by first letter: All – | |||||
|
= 0) { $prevpoint = ($startpoint - $howmany); $href1a = ''; $href1b = ''; } else { $prevpoint = 0; $href1a = ''; $href1b = ''; } if (($startpoint + $howmany) >= $number_of_restaurants) { $nextpoint = $number_of_restaurants; $href2a = ''; $href2b = ''; } else { $nextpoint = ($startpoint + $howmany); $href2a = ''; $href2b = ''; } $nav = '
';
$str .= ' ' . "\n";
echo $str;
}
}
}
echo "' . $listing . ' ' . "\n"; $str .= '' . $name . ' ' . "\n"; foreach ($loc_arr[$id] as $location) { list ($loc_id, $address, $address_descr, $city, $zip, $phone) = $location; $address_display = ($address_descr) ? $address_descr : $address; $url = 'http://www.mapquest.com/maps?city=' . urlencode($city) . '&state=OR&address=' . urlencode($address) . '&zipcode=' . urlencode($zip); $str .= '' . $address_display . ', ' . $city . ' Menu'; // if ($has_coupon) { $str .= ' | coupon'; } if ($has_ad) { list ($adWidth, $adHeight, $adChannels, $adSize, $adBits, $adMime) = getimagesize('images/ads/' . $short_name . '.' . $has_ad); $str .= ' | View ad'; } if ($has_coupon) { list ($couponWidth, $couponHeight, $couponChannels, $couponSize, $couponBits, $couponMime) = getimagesize('images/coupons/' . $short_name . '.' . $has_coupon); $str .= ' | View coupon'; } if ($has_video) { $str .= ' | video'; } $str .= ' ' . "\n"; $str .= '' . "\n"; $str .= '";
echo $nav;
echo " \n"; #echo ' ' . $href1a . '<< PREVIOUS ' . $howmany . $href1b . ' — ' . $href2a . 'NEXT ' . $howmany . ' >>' . $href2b . ' '; ?> |