$frameColor = '#aaaaaa';
for ($i = 0; $i < count($data)/3; $i++)
{
$item = $data[$i*3];
echo "";
$thumb = explode(':', $item['thumb']);
$thumbInfo = GetURLToGalleryImageAndThumb($thumb[0], $thumb[1]);
$link = "$item[url]";
$thumburl = bigthumb($thumbInfo[0]);
list($width, $height, $type, $attr) = getimagesize(PhotoPath($thumburl));
$height = round($height * 128 / $width);
echo "
$item[title] ";
echo " | ";
if ($i*3+1 < count($data))
{
$item = $data[$i*3+1];
$thumb = explode(':', $item['thumb']);
$thumbInfo = GetURLToGalleryImageAndThumb($thumb[0], $thumb[1]);
$link = "$item[url]";
$thumburl = bigthumb($thumbInfo[0]);
list($width, $height, $type, $attr) = getimagesize(PhotoPath($thumburl));
$height = round($height * 128 / $width);
echo "
$item[title] ";
}
echo " | ";
if ($i*3+2 < count($data))
{
$item = $data[$i*3+2];
$thumb = explode(':', $item['thumb']);
$thumbInfo = GetURLToGalleryImageAndThumb($thumb[0], $thumb[1]);
$link = "$item[url]";
$thumburl = bigthumb($thumbInfo[0]);
list($width, $height, $type, $attr) = getimagesize(PhotoPath($thumburl));
$height = round($height * 128 / $width);
echo "
$item[title] ";
}
echo " | ";
}
?>
$byloc = array();
$i = 0;
$byloc[$i++] = array('title' => 'Pacific Northwest', 'thumb' => 'landscape:decpass5_2.jpg', 'url' =>'pacificnorthwest.php');
//$byloc[$i++] = array('title' => 'Africa', 'thumb' => 'landscape:mor-erg.jpg', 'url' =>'/cgi-bin/photosearch.cgi?terms=africa');
$byloc[$i++] = array('title' => 'Patagonia', 'thumb' => 'patagoniatorresdelpaine:Towers-3143.jpg', 'url' =>'/galleries/patagonia?gallery');
$byloc[$i++] = array('title' => 'Rocky Mountains', 'thumb' => 'rockies:Banff_1960.jpg', 'url' =>'/galleries/rockies/');
$byloc[$i++] = array('title' => 'Alaska and Yukon', 'thumb' => 'alaska:fireweed-4723.jpg', 'url' =>'/galleries/alaska');
$byloc[$i++] = array('title' => 'California', 'thumb' => 'deathvalley:deathvalley-5607.jpg', 'url' => '/galleries/california');
$byloc[$i++] = array('title' => 'Africa', 'thumb' => 'africalandscapes:africa-1299.jpg', 'url' => '/galleries/africa/landscapes');
for ($i = 0; $i < count($byloc)/3; $i++)
{
$item = $byloc[$i*3];
echo "";
$thumb = explode(':', $item['thumb']);
$thumbInfo = GetURLToGalleryImageAndThumb($thumb[0], $thumb[1]);
$link = "$item[url]";
$thumburl = bigthumb($thumbInfo[0]);
list($width, $height, $type, $attr) = getimagesize(PhotoPath($thumburl));
$height = round($height * 128 / $width);
echo "
$item[title] ";
echo " | ";
if ($i*3+1 < count($byloc))
{
$item = $byloc[$i*3+1];
$thumb = explode(':', $item['thumb']);
$thumbInfo = GetURLToGalleryImageAndThumb($thumb[0], $thumb[1]);
$link = "$item[url]";
$thumburl = bigthumb($thumbInfo[0]);
list($width, $height, $type, $attr) = getimagesize(PhotoPath($thumburl));
$height = round($height * 128 / $width);
echo "
$item[title] ";
}
echo " | ";
if ($i*3+2 < count($byloc))
{
$item = $byloc[$i*3+2];
$thumb = explode(':', $item['thumb']);
$thumbInfo = GetURLToGalleryImageAndThumb($thumb[0], $thumb[1]);
$link = "$item[url]";
$thumburl = bigthumb($thumbInfo[0]);
list($width, $height, $type, $attr) = getimagesize(PhotoPath($thumburl));
$height = round($height * 128 / $width);
echo "
$item[title] ";
}
echo " | ";
}
?>
|