PHP Code:
$p = 5;$xfile=file('test.txt');$countfile=count($xfile);
if($npage=="")$npage="1";
echo "Tests:".$countfile."\n";$second=($p*$npage);$first=($p*($npage-1));$npages=(int) ceil($countfile/$p);
if ($npage<=$npagesAND$npage>1)$gline_rew=".($npage-1)."\">Prev";
if ($npages > 1 AND $npage<$npages) $gline_next = ".($npage+1)."\">Next ";
for ($i = $first; $i <=*$second-1; $i++)
{ $a=explode("?",$xfile[$i]);$test = rtrim($a[0]);
echo "$test";
}
print " ".$gline_rew." ".$gline_next."
";
No comments:
Post a Comment