include("menu.inc"); ?> |
|
|
if ($id == 18){ // Живопись
$path_prefix = "painting/";
if ($subid == 1 ) $path_prefix = $path_prefix."7days/";
if ($subid == 2 ) $path_prefix = $path_prefix."zoo/";
if ($subid == 3 ) $path_prefix = $path_prefix."bible/";
if ($subid == 4 ) $path_prefix = $path_prefix."comet/";
if ($subid == 5 ) $path_prefix = $path_prefix."gate/";
if ($subid == 6 ) $path_prefix = $path_prefix."desert/";
if ($subid == 7 ) $path_prefix = $path_prefix."kings/";
if ($subid == 8 ) $path_prefix = $path_prefix."dances/";
if ($subid == 9 ) $path_prefix = $path_prefix."others/";
if ($subid == 10 ) $path_prefix = $path_prefix."roads/";
if ($subid == 11 ) $path_prefix = $path_prefix."queen/";
if ($subid == 12 ) $path_prefix = $path_prefix."wap/";
} else if ($id == 19){
$path_prefix = "graphic/";
if ($subid == 1 ) $path_prefix = $path_prefix."army/";
if ($subid == 2 ) $path_prefix = $path_prefix."ortega/";
if ($subid == 3 ) $path_prefix = $path_prefix."flood/";
if ($subid == 5 ) $path_prefix = $path_prefix."job/";
if ($subid == 7 ) $path_prefix = $path_prefix."dances/";
if ($subid == 6 ) $path_prefix = $path_prefix."walk/";
if ($subid == 4 ) $path_prefix = $path_prefix."other/";
} else if ($id == 20){
$path_prefix = "sculpture/";
}
?>
|
|
|
if (isset($id) and isset($subid)){
$current_query = "SELECT * FROM photo where id='".$id."' and subid='".$subid."' order by photoid asc";
$R=mysql_query($current_query, $sock);
$total_images = mysql_num_rows($R);
//$current_query = "SELECT * FROM photo where id='".$id."' and subid='".$subid."' and photoid >'".($cpage-1)*$photos_to_show."' order by photoid limit ".$photos_to_show;
if ($subid <> 1) $current_query = "SELECT * FROM photo where id='".$id."' and subid='".$subid."' order by year desc, photoid asc limit ".($cpage-1)*$photos_to_show.", ".$photos_to_show;
}else{echo "ID=$id and SUBID=$subid does not exist."; exit;}
$R=mysql_query($current_query, $sock);
$T=mysql_fetch_array($R);
?>
if ($cpage == "1") include ("intro.php");?>
|
while (is_array($T)) { ?>
height= echo $thumb_size+$thumb_border+20; ?> bgcolor= echo $thumb_border_color; ?>> |
} else {
// Making thumbnails
echo " | ";
}?>
$T=mysql_fetch_array($R); if ($T[thumbnail]) { ?>
height= echo $thumb_size+$thumb_border+20; ?> bgcolor= echo $thumb_border_color; ?>> |
} else {
// Making thumbnails
echo " | ";
}?>
$T=mysql_fetch_array($R); if ($T[thumbnail]) { ?>
height= echo $thumb_size+$thumb_border+20; ?> bgcolor= echo $thumb_border_color; ?>> |
} else {
// Making thumbnails
echo " | ";
}?>
$T=mysql_fetch_array($R);
}
?>
|
|
|
|