include("../main.php"); $lan=0; // 0-ru, 3-en, 6-ua $r=3; $c=2; $page[0]="Страница:"; $page[3]="Page:"; if (!(isset($p))) {$p="0";} $row = 0; $fp = fopen ("../gallery/gallery.csv","r"); //while ($d = fgetcsv ($fp, 1000, ";")) { // $data[$row] = $d; // $row++; //} while (!feof ($fp)) { $buffer = fgets($fp, 4096); // echo $buffer; $data[$row] = explode(";", $buffer); $row++; } $row--; fclose ($fp); $rc=$r*$c; $prc=$rc*$p; $cpage = count($data)/$rc; $cp=""; for ($k=0; $k<$cpage; $k++) { $cp .=" "; if ($k==$p) { $cp .= ($k+1);} else {$cp .="".($k+1)."";} } ?>
|
|||||||||
© 2002, echo $ptitle[$lan]; ?>. | |||||||||
Programming by KSF :: Software Development Company Offshore Custom Development : Outsourcing and IT services |