$rez=count($am);
if(!$id_f)
$predf=$rez-1;
else
$predf=$id_f-1;
if($rez>1)
{
if($max_foto==($rez-1)) $max_foto++;
//if(($max_foto+1)==$rez) $max_foto++;
?>
if($rru['sl_typ']==1)
{
?>
if($max_foto<$rez)
{
?>
|
|
}
$i=0;
foreach($am as $index=>$aa)
{
if($i<$max_foto) $st=''; else $st='none';
?>
|
$i++;
}
if($max_foto<$rez)
{
?>
|
|
}
?>
|
if($rez>1) { ?>
} ?>
if($top_vip) echo $top_vip; ?>
|
}
elseif($rru['sl_typ']==2)
{
?>
if($rez>1) { ?>
} ?>
if($top_vip) echo $top_vip; ?>
|
if($max_foto<$rez)
{
?>
|
|
}
$i=0;
foreach($am as $index=>$aa)
{
if($i<$max_foto) $st=''; else $st='none';
?>
|
$i++;
}
if($max_foto<$rez)
{
?>
|
|
}
?>
|
}
elseif($rru['sl_typ']==3)
{
?>
if($rez>1) { ?>
} ?>
if($top_vip) echo $top_vip; ?>
|
if($max_foto<$rez)
{
?>
|
|
}
$i=0;
foreach($am as $index=>$aa)
{
if($i<$max_foto) $st=''; else $st='none';
?>
|
$i++;
}
if($max_foto<$rez)
{
?>
|
|
}
?>
|
}
elseif($rru['sl_typ']==4)
{
?>
if($max_foto<$rez)
{
?>
|
|
}
$i=0;
foreach($am as $index=>$aa)
{
if($i<$max_foto) $st=''; else $st='none';
?>
|
$i++;
}
if($max_foto<$rez)
{
?>
|
|
}
?>
|
if($rez>1) { ?>
} ?>
if($top_vip) echo $top_vip; ?>
|
}
?>