<% include("../cmsbk/dk_config.php"); if ($left) $left = (int)$left; else $left = 0; $q = "select count(*) FROM kunst WHERE destination = 3"; $res = mysql_query($q); $row = mysql_fetch_row($res); $max=$row[0]; $q = "select * from kunst where destination = 3 order by display_order"; $res = mysql_query($q); $row = mysql_fetch_row($res); for ($x = 0; $x < $left; $x++) $row = mysql_fetch_row($res); if ($max - $left < 5) $right = $max - $left; else $right = 5; %> SBK Digitale Kunstuitleen - Collectie zaal \n"); } else { $back = $left - 5; printf("
\"\"\n",$back); } printf("\n"); } else { $left += 5; printf("
>', LEFT, WIDTH, 160);\" onmouseout=\"nd();\">
\n",$left); } %>
<% $q = "select count(*) FROM kunst WHERE destination = 2"; $zres = mysql_query($q); $zrow = mysql_fetch_row($zres); $zmax = $zrow[0]; $zmax = ((int)($zmax / 5)) -1; $zmaxz = $zmax+1; $zmax = 5 * $zmax; if (($left == 0) || (($left - 5) < 0)) { printf("
\"\"
\n"); printf("$row[2]\n"); printf("\n"); printf("\n"); printf("\n"); for ($x = 0; $x < $right; $x++) { $titel = addslashes($row[3]); if($row[1]) $art_res = "Kunstwerk is gereserveerd"; printf("\n"); $art_res = ""; $row = mysql_fetch_row($res); } for ($x = $right; $x < 5; $x++) { printf(""); } printf("\n"); printf("\n"); %>
\n"); printf("$row[2]
$titel
\[$row[7]\] $art_res', CENTER, OFFSETY, 30, WRAP)\"\n"); $img = gfn("k$row[0]"); printf(" onmouseout=\"nd()\">\"\"
"); if($row[1]) { printf(""); } printf("
 
<% if ($max - $left <= 5) { $left += 5; printf("
<% $prev = $left -10; echo "
 Home 

\"  "; if ($left > 5) { echo "\" "; } else { echo " "; } echo "Collectiezalen  "; for ($x = 0; $x < ($max / 5); $x++) { $xl = $x * 5; $xz = $x + 1; if ($left == ($xl + 5)){ echo "$xz"; } else { echo "$xz"; } if ($x < ($max/5 -1)) echo " "; } if ($left < ($max -1)) { echo " \""; } else { echo " "; } echo "  \"

"; %>