Artikelindex

x

<?php

echo "<div id=\"fotorama\" class=\"fotorama\" data-direction=\"ltr\" data-max-width=\"100%\" data-fit=\"scaledown\" data-shuffle=\"false\" data-swipe=\"true\" data-click=\"true\" data-keyboard=\"true\" data-loop=\"true\" data-thumbheight=\"\" data-thumbwidth=\"\" data-ratio=\"4/3\" data-width=\"100%\" data-arrows=\"true\" data-autoplay=\"true\" data-nav=\"thumbs\" data-navposition=\"bottom\" data-transition=\"crossfade\" data-height=\"\" data-thumbmargin=\"2\" data-thumbborderwidth=\"1\" data-allowfullscreen=\"1\" data-stopautoplayontouch=\"true\" data-transitionduration=\"400\" data-thumbfit=\"cover\">";

$folder = "../httpdocs/images/fotoalbum/2013/knd-viering-100jaar/";
$dir = $folder . "*";
foreach(glob($dir) as $file)
{
    if(!is_dir($file)) {
$info = pathinfo($file);
$file_name = $info['filename'];
echo "<img src='" . substr($file,11) . "' alt='' style='margin=0;padding:0;' />\n";
}
}
echo "</div>";
?>