|   | 
    
      
      
      // Titel:
      echo('Foto\'s: '.trim($ccatTitel[$c-1])."\n");
      // alle categorie:
      echo '';
      for ($i=0; $i<$cMax; $i++)
      {
        if ($i==$c-1)
          echo trim($ccatTitel[$i]);
        else
        {
          $ii = $i+1;
          echo "".trim($ccatTitel[$i])."";
        }
        if ($i!=$cMax-1)
          echo " - ";
      }
//      echo "Akkerbouw -";
//      echo " Veehouderij -";
//      echo " Duitsland -";
//      echo "Trekkers & Werktuigen";
      echo '';
      $fotos_per_page = $faHCells * $faFCells;
      if ($fotos_per_page<$lastfile ) {
        if ($p>0)
          echo 'vorige ';
        else
          echo 'vorige ';
        for ($i=0; $i<$lastfile/$fotos_per_page; $i++)
        {
          if ($i!=$p)
            echo ''.($i+1).' ';
          else
            echo ($i+1).' ';
        }
        if ($p<($lastfile/$fotos_per_page)-1)
          echo 'volgende';
        else
          echo 'volgende';
        echo " \n";
      }
      ?>
      
        
        
          
          
          if ($c==0)
          {
            echo 'Er is geen categorie gekozen.';
          }
          $i = 0;
          if ($p!=0)
            $i = $fotos_per_page*$p;
          for ($f=0; $f<$faFCells; $f++)
          {
            echo "\n";
            for($h=0; $h<$faHCells; $h++)
            {
              if ($i<$lastfile)
              {
                $handle = file($beschrijvingmap.$bbestanden[$i].$beschrijvingExt);
                $omschrijving = trim($handle[0]);
                echo "  | \n";
              }
              else
                echo "  | \n";
              $i++;
            }
            echo " \n";
          }
          ?>
          
         
        
     |