include "../main.php";
include "../functions.php";
$lan=0;
if (!(isset($lan))) {$lan=0;}
$tmpLan = ( $lan==0 ? 0 : 1 ) ;
//$lan=0; // 0-ua, 3-en
if (!(isset($mm))) {$mm=0;}
if (!(isset($sm))) {$sm=1;}//1
if (!(isset($p))) {$p=0;}
$row1 = 0;
$fp = fopen ("../gallery/gallery.csv","r");
while (!feof ($fp)) {
$buffer = fgets($fp, 4096);
// echo $buffer;
$data1[$row1] = explode(";", $buffer);
$row1++;
}
$row1--;
fclose ($fp);
$row1=0;
$row=1; //1
$countCol = 0;
$countPage = 0;
$countRow =1;
$cTmp = $c ;
$rTmp = $r ;
$xTmp = 0 ;
$countPic = 0 ;
$polyaMy = 12; // pozicia polya v *.csv s kotorogo mojno vyvodit slujebnie polya
while (isset($data1[$row1])){
if (($data1[$row1][1] == $mm) and ($data1[$row1][2] == $sm)){
$row1++;
$startRow = $row1 ;
while ($data1[$row1] [0] <> "#"){// main cycle start +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
$x = $data1[$row1][$polyaMy];
$y = $data1[$row1][$polyaMy+1];
if ( $y != 0 ) { // y != 0 start +++,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
$countCol = 0 ;
$countRow = 1 ;
$countPage++ ;
// }
$rTmp = $y ;
$yTmp = $y ;
settype($yTmp, "integer");
} // y != 0 end +++,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
if ( $x != 0 ) { // x != 0 start +++..................................................
$countCol = 0 ;
$cTmp = $x ;
$xTmp = $x ;
settype($xTmp, "integer");
if ( $y == 0 ) {
$countRow++ ;
}
} // y != 0 end +++..................................................................................
$countPic++;
if ( $countCol == $cTmp ) {
$countCol = 1 ;
$countRow++ ;
if ( $yTmp > 0 ) { // counter row to default start -------------
$yTmp-- ;
if ( $yTmp == 0 ) {
$cTmp = $c ;
$rTmp = $r ;
}
} // counter row to default end -----------------------------------
} else {
$countCol++;
} // colCounter end
if ( $countRow > $rTmp ) {
$countRow = 1 ;
$countPage++ ;
} // rowCounter end
if ( $xTmp > 0 ) { // counter col to default start -------------
$xTmp-- ;
if ( $xTmp < 0 ) {
$cTmp = $c ;
$countCol = 1 ;
$countRow++ ;
}
} // counter row to default end -----------------------------------
$currentArray[ $countPage ][ $countRow ][ $countCol ] = $row1 ;
$npTmp = ereg_replace(".jpg","",$data1[$row1][0]);
if ( ($np == $npTmp) AND isset($np) ) {
$p = $countPage;
}
$row1++;
} // main cycle end +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
} else {$row1++;}
}
//echo( $countPage." / ".$countPic." ");
$row--;
$cp="";
for ($k=0; $k<=$countPage; $k++) {
$cp .=" ";
if ($k==$p) { $cp .= ""."".($k+1)." ";} else {$cp .="".($k+1)." ";}
}
?>
Современное искусство. Живопись. Абстракция, акварель, масло, графика. Картины художника | Художник Темо Свирели
include "title_manager.php"; ?>
echo $page[$lan]." ".$cp;
?>
//start modTable
// start table ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
///////////////////////////////////////////////////////////////////////11111111111111111111111122 START
reset ( $currentArray );
$tmpcurPage = $currentArray["$p"] ;
while ( list ( $key ) = each ( $tmpcurPage )) {
$curRow = $key;
$tmpcurRow = $tmpcurPage["$curRow"] ;
// row +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++start
$idData1Row = $currentArray["$p"]["$curRow"]["1"] ;
$schem = $data1["$idData1Row"][$polyaMy+2];
if ( $schem != 0 ) {
$varGallery = "gallery".$schem ;
} else {
$varGallery = "gallery" ;
}
$vyvodRow = $varGallery( $currentArray["$p"]["$curRow"] ) ;
echo( $vyvodRow." " );
// row +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ end
} // end while
// end table ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
//////////////////// FUNCTIONS ///////////////// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ START
function gallery( $tempArray ) { // ***************************************************************start
reset( $tempArray ) ;
$col = count( $tempArray );
$TDwidth = ( 100/$col );
global $data1, $lan, $d1, $n1, $isize1, $w1, $h1, $isize1, $w11, $h11, $js1, $tabStart, $tabEnd, $tmpLan, $menur, $mm, $cm;
$picTD = "";
$txtTD = "";
while ( list ( $key ) = each ( $tempArray )) {
$curCol = $key;
$id = $tempArray["$curCol"] ;
$js1=imageInfo($id);
$np=ereg_replace(".jpg","",$data1[$id][0]);
$picTD = $picTD." ";
}
$vyvod = "".$picTD." \r\n";
return $vyvod;
} // ************************************************************************************************ end
function imageInfo ( $i ) { // *******************************************************************start
global $data1, $lan, $d1, $n1, $isize1, $w1, $h1, $isize1, $w11, $h11, $js1, $mm, $sm, $menup, $ptitle;
$d1=$data1[$i][0];
$n1=$data1[$i][$lan+3];
$isize1 = getimagesize("../gallery/$d1");
$w1=$isize1[0];
$h1=$isize1[1];
$isize1 = getimagesize("../gallery/thumb_$d1");
$w11[$i]=$isize1[0];
$h11[$i]=$isize1[1];
// $js1="JustSoPicWindow('../gallery/$d1','$w1','$h1',' :: $n1','#FFFFFF','hug image','10','w1$i');return document.MM_returnValue";
//echo $lan." : ".$mm." : ".$sm." : ".$menup[$lan][$mm][$sm]." ";
$js1="JustSoPicWindow('../gallery/$d1','$w1','$h1',' ".$menup[$lan][$mm][$sm]." // ".$data1[$i][$lan+3]."','#FFFFFF','hug image','10','w1$i','');return document.MM_returnValue";
return $js1;
} // ************************************************************************************************ end
//////////////////// FUNCTIONS ///////////////// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ END
///////////////////////////////////////////////////////////////////////111111111111111111111111
?>
if ($sm==3) include("t3.php");
if ($sm==4) include("t4.php");
if ($sm==11) include("t11.php");
if ($sm==12) include("t12.php");
if ($sm==13) include("t13.php");
?>