| " . $galMap . " | \n" : "There are no images in the gallery at the moment
\n");
switch($_GET['action'])
{
case 'viewcat': // we always want to show this (if we are viewing an image or cat)
echo "$ImageGalCatName
\n";
$sql = "SELECT * FROM imagegal
WHERE ImageGalImageGalCatID=$catid
ORDER BY ImageGalDispOrder
";
$res = it_query($sql);
if (it_num_rows($res) > 0)
{
$tbl = new itTable(4, "genImageThumb");
$tbl->setTDAttrib("valign='top'");
$tbl->stepThrough($res, $catid);
echo "" . $tbl->getTable() . " |
\n";
}
break;
default:
echo "\n";
break;
}
function &genImageThumb(&$res,$catid)
{
$row = it_fetch($res);
if ($row != false)
{
extract($row);
$dim = getimagesize(FS_HOME . "files/imagegal/$ImageGalImage");
$width = $dim[0] + 15;
$height = $dim[1] + 15;
// $retval = "