Client_LogStats (); header("Content-Type: text/html; charset=utf-8;"); echo''; ?> :: BIBLIOTEKA Kościoła Pokoju :: DB_Result($result,0,"parent_id"); //echo $jeden; if ($jeden!=0) {$result = mysql_query("select * from ".TABLE_DOCS." where id = '".$jeden."' limit 1"); $dwa=$IW->DB_Result($result,0,"parent_id"); //echo "
".$dwa; if ($dwa!=0) {$result = mysql_query("select * from ".TABLE_DOCS." where id = '".$dwa."' limit 1"); $trzy=$IW->DB_Result($result,0,"parent_id"); //echo "
".$trzy; if ($trzy!=0) {$result = mysql_query("select * from ".TABLE_DOCS." where id = '".$trzy."' limit 1"); $cztery=$IW->DB_Result($result,0,"parent_id"); //echo "
".$cztery; if ($cztery!=0) {$result = mysql_query("select * from ".TABLE_DOCS." where id = '".$cztery."' limit 1"); $piec=$IW->DB_Result($result,0,"parent_id"); //echo "
".$piec; $zma=$cztery; $zmb=$trzy; $zmc=$dwa; $zmd=$jeden; } else { $zma=$trzy; $zmb=$dwa; $zmc=$jeden; } } else { $zma=$dwa; $zmb=$jeden; } } else { $zma=$jeden; $zmb=0; $zmc=0; $zmd=0; } } } function Glownemenu ($zma) {global $IW; global $zmb; global $D; if ($zma!=0) { $result = mysql_query("select * from ".TABLE_DOCS." where parent_id = '".$zma."' and is_active='1' order by nav_order"); $licz = mysql_num_rows($result); for ($i=0; $i<$licz; $i++) {$ids=$IW->DB_Result($result,$i,"id"); $link_text=$IW->DB_Result($result,$i,"link_text"); if ($D==$ids||$ids==$zmb) {echo "".$link_text."";} else {echo "".$link_text."";} if ($zmb==$ids||$ids==$D){ drugiemenu($ids);} } } else { $result = mysql_query("select * from ".TABLE_DOCS." where parent_id = '".$D."' and is_active='1' order by nav_order"); $licz = mysql_num_rows($result); for ($i=0; $i<$licz; $i++) {$ids=$IW->DB_Result($result,$i,"id"); $link_text=$IW->DB_Result($result,$i,"link_text"); echo "".$link_text.""; if ($zmb==$ids||$ids==$D){ drugiemenu($ids);} } } } function drugiemenu ($ids) {global $IW; global $zmc; global $zmb; global $D; $resultb = mysql_query("select * from ".TABLE_DOCS." where parent_id = '".$ids."' and is_active='1' order by nav_order"); $liczb = mysql_num_rows($resultb); for ($j=0; $j<$liczb; $j++) {$idss=$IW->DB_Result($resultb,$j,"id"); $link_text=$IW->DB_Result($resultb,$j,"link_text"); if ($D==$idss||$idss==$zmc) {echo "".$link_text."";} else {echo "".$link_text."";} } } ?>

"; echo $IW->ShowContent(32); } if($D==25) {echo"
"; echo $IW->ShowContent(25); } if($D==33) {echo"
"; include"php/gene.php"; } if($D==34) {echo"
"; include"php/gene_sz.php"; } if($D==35) {echo"
"; include"php/gene_zaaw.php"; } if($D==36) {echo"
"; include"php/gene_szw.php"; } ?>

"; include "php/zobacz.php"; echo "
"; } ?>

"; include "php/buttony.php"; echo"";} ?>