STB/foto/views/inc/carussel_body.php

36 lines
1.2 KiB
PHP
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<body>
<div class="container"><?php
for ($i = $nr; $i < $anz_images-1; $i++) { ?>
<div class="mySlides">
<div class="numbertext"><?php echo "Bild ".($i+1)." (".($anz_images-1).") - ".$themen[$m]." - ".$titel[$i+1];?></div>
<img src="<?php echo $base_ordner.$thema."/".$themen[$m]."/".$alles[$i];?>"
alt="hbc fotos" style="width:100%;">
</div><?php
if ($i+1 >= ($anz_themen[$m+1])) { // Themenzähler bginnt bei 0
$m = $m+1;
}
} ?>
<a class="prev" onclick="plusSlides(-1)"></a>
<a class="next" onclick="plusSlides(1)"></a>
<div class="caption-container">
<p id="caption"></p>
</div><?php
$i = 0; // 1. Bild
$m = $b = 0; // $m = 1. Matrix-Eintrag
$nr = $i; // 1. Bild
$row = 0; ?>
<div class="row"><?php
for ($i = $nr; $i < $anz_images-1; $i++) {
//echo $i." ".$base_ordner.$thema."/".$themen[$m]."/".$alles[$i]."</br>";?>
<div class="column">
<img class="demo cursor" src="<?php echo $base_ordner.$thema."/".$themen[$m]."/".$alles[$i];?>"
onclick="currentSlide(<?php echo $i+1;?>)" alt="hbc fotos" style="width:100%;">
</div><?php
} ?>
</div>
</div>