$row->CIS_TYP,"TS"=>$row->TEM_SKUP,"POCET"=>$row->POCET); } //print_r($pole_ts); db_free_result($statistika); $dotaz = "SELECT xfond, count(distinct(cis_zaz4)) as pocet from kat1_4 where status4 <9 and cis_zaz4 != 0 group by xfond"; $statistika = ibase_query($dbh,$dotaz) or die(ibase_errmsg()); while ($row = ibase_fetch_object($statistika)) { $pole_tit[]=array("FOND"=>$row->XFOND,"POCET"=>$row->POCET); } db_close(); $mon=0;$monb=0;$monm=0;$monmn=0;$monn=0;$per=0;$zvd=0;$er=0; $montit=0;$pertit=0;$zvdtit=0;$ertit=0; foreach ($pole_ts as $key => $value) { //echo $pole_ts[$key]["FOND"]." ".$pole_ts[$key]["TS"]." ".$pole_ts[$key]["POCET"]."
"; //print_r($pole_ts[$key]); $fond=$pole_ts[$key]["FOND"]; $ts=$pole_ts[$key]["TS"]; $pocet=$pole_ts[$key]["POCET"]; echo $fond." - ".$ts." - ".$pocet."\n **"; switch ($fond) { case 1: $mon=$mon+$pocet; break; case 3: $per=$per+$pocet; break; case 8: $zvd=$zvd+$pocet; $break; case 18: $er=$er+$pocet; $break; } if ($fond==1) { switch ($ts) { case "B" : $monb=$monb+$pocet; break; case "M" : case "M I": $monm=$monm+$pocet; break; case "MN" : case "MN I": case "MN P": $monmn=$monmn+$pocet; break; case "N" : case "N I": case "N PK": $monn=$monn+$pocet; break; } } } echo $mon." - ".$per." - ".$zvd." - ".$er; echo $monb." - ".$monn." - ".$monm." - ".$monmn; */ ?>

Informace o fondu knihovny

Celkový přehled
Monografie celkem 20 717  
  z toho beletrie 9 550  
  z toho naučná 6 896  
  z toho beletrie pro mládež 3 310  
  z toho naučná pro mládež 861  
Zvukové dokumenty celkem 100  
Periodika celkem 41  

"") {$arrper[] = $line;} } fclose($fh); //print_r($arrper); echo round(count($arrper)/3,0); exit; $lines=round(count($arrper)/3,0); if (count($arrper) % 3 <> 0) { $lines=$lines+1; } for ($ind=0;$ind<$lines;$ind++) { echo ""; echo '"; echo '"; echo '"; echo ""; } ?>
Seznam odebíraných periodik
'.$arrper[$ind]."'.$arrper[$lines + $ind]."'.$arrper[2*$lines + $ind]."