View file demon_load/downloads/pages.php

File size: 894B
<?
if ($num=="0"){}
else {
$v_pages_okr=$num/$fnp%100;
$v_pages_tochn=$num/$fnp;
if ($v_pages_okr==$v_pages_tochn)
{
$v_pages=$v_pages_okr;
}
else
{
$v_pages=$v_pages_okr+1;
}
if ($page>1){
$p_page=$page-1;
echo "<a href=\"index.php?downloads&f=$f";if(isset($jp)){echo "&jpg=$jp";}echo"&page=$p_page&l_wid=$l1&l_hei=$l2\">
<img src=\"downloads/img/pre.gif\" height=\"16\" width=\"16\"></a>";
}
else {
echo "<img src=\"downloads/img/pre2.gif\" height=\"16\" width=\"16\">";}
echo " $page";
echo "/";
echo "$v_pages";
echo " стр ";
if ($page<$v_pages)
{
$n_page=$page+1;
echo "<a href=\"index.php?downloads&f=$f";if(isset($jp)){echo "&jpg=$jp";}echo"&page=$n_page&l_wid=$l1&l_hei=$l2\">
<img src=\"downloads/img/next.gif\" height=\"16\" width=\"16\"></a>";
}
else {
echo "<img src=\"downloads/img/next2.gif\" height=\"16\" width=\"16\">";}
echo "<br>";
}
?>