'$id' and gid='$gid' limit 1"); list($width, $height, $type, $attr) = getimagesize("$full_path_root$path_horrors$filename"); include "../inc/header_$lang.inc"; if($min) $minlimit="min=$min"; echo(""); echo(""); echo("
\n\n"); echo("$nav[0] / $nav[1]"); if(mysql_num_rows($pquery)) { echo("← ".mysql_result($pquery,0,1)." "); } if(mysql_num_rows($nquery)) { echo(" ".mysql_result($nquery,0,1)." →"); } echo("

$title 

"); echo("
\"$title\"
\n"); echo("

".$ptext); echo("

"); } // else { include "../inc/header_$lang.inc"; if($min) $minlimit="&min=$min"; else $min=0; if(!isset($gid)) { echo("

$title

"); echo(""); } else { $title=$gname; echo("$nav[0] / $nav[1]"); echo("

$title

"); echo(""); $query=mysql_query("select id,name_$lang,filename from photo_horrors where gid='$gid' order by ord limit $min,$count_photo"); $num=mysql_num_rows($query); $j=1; echo(""); for ($i=0;$i<$num;$i++) { echo("'); $usl=($i==$num-1?$i-$j+1:$i-$colspan+1); for($k=$usl; $k<=$i; $k++) { echo("\n"); $j=0; }//if $j++; }//for echo("
"); $id=mysql_result($query,$i,0); $image_link=mysql_result($query,$i,2); echo("
\n"); if($j==$colspan||$i==$num-1) { echo('
".mysql_result($query,$k,1)); }//for echo("
 
"); // echo(""); echo("
 "); if($min>0) { $min1=$min-$count_photo; echo("←  "); } echo("
"); $min2=$min+$count_photo; $nq=mysql_query("select id from photo_horrors where gid=$gid order by id desc limit $min2,$count_photo"); if(mysql_num_rows($nq)) echo("  →"); echo("
"); }//else } echo("

Please send the photos for the Horrors of Sport gallery to the Email: horrors@hauteecole.ru. It would be very nice if you point out the authors name, the place and the time the photo was taken, and the name of the sportsman tormenting the horse. Unfortunately we dont have a chance to check the authorship, but we will indicate all the copyrights as soon as we receive the information."); include "../inc/footer_$lang.inc"; ?>