Files
cwsvJudo/photoalben/photoalben.2015/2015-05-31_ITAJCXIV_Aue_U13U15U18U21/view.php
marko 9ccbeb9477 Die 2015er Alben auf neuesten Stand der Technik gebracht:
geändert:       photoalben/photoalben.2015/2015-04-19_WerdaupokalXI_Werdau_U13U15U18U23/index.php
	geändert:       photoalben/photoalben.2015/2015-04-19_WerdaupokalXI_Werdau_U13U15U18U23/view.php
	geändert:       photoalben/photoalben.2015/2015-04-26_LittleOttoGoshiLiga2015-I_Halle_U9U12/index.php
	geändert:       photoalben/photoalben.2015/2015-04-26_LittleOttoGoshiLiga2015-I_Halle_U9U12/view.php
	geändert:       photoalben/photoalben.2015/2015-05-09_MixpokalXXX_Werdau_U13U15MF/index.php
	geändert:       photoalben/photoalben.2015/2015-05-09_MixpokalXXX_Werdau_U13U15MF/view.php
	geändert:       photoalben/photoalben.2015/2015-05-31_ITAJCXIV_Aue_U13U15U18U21/index.php
	geändert:       photoalben/photoalben.2015/2015-05-31_ITAJCXIV_Aue_U13U15U18U21/view.php
	geändert:       photoalben/photoalben.2015/2015-05-31_ZwergenturnierX_Aue_U9U11/index.php
	geändert:       photoalben/photoalben.2015/2015-05-31_ZwergenturnierX_Aue_U9U11/view.php
	geändert:       "photoalben/photoalben.2015/2015-06-21_LittleOttoGoshiLiga2015-II+HallCategory_Halle_U9U12U30\33430/index.php"
	geändert:       "photoalben/photoalben.2015/2015-06-21_LittleOttoGoshiLiga2015-II+HallCategory_Halle_U9U12U30\33430/view.php"
	geändert:       photoalben/photoalben.2015/2015-07-09_Sommerabschlussgrillen/index.php
	geändert:       photoalben/photoalben.2015/2015-07-09_Sommerabschlussgrillen/view.php
	geändert:       photoalben/photoalben.2015/2015-09-12_LokpokalXXXISparkassencupXXIV_U11mU13mU15mU18mM/index.php
	geändert:       photoalben/photoalben.2015/2015-09-12_LokpokalXXXISparkassencupXXIV_U11mU13mU15mU18mM/view.php
	geändert:       photoalben/photoalben.2015/2015-12-12_WeihnachtsturnierXX_Leipzig_U11U13/index.php
	geändert:       photoalben/photoalben.2015/2015-12-12_WeihnachtsturnierXX_Leipzig_U11U13/view.php
2016-12-10 15:45:28 +01:00

121 lines
4.2 KiB
PHP

<?php header("Content-Type: text/html; charset=utf-8")?>
<?php header("Cache-Control: max-age=3600")?>
<?php
$wkName = "14. Internationales Auer Judoturnier";
function getExifDate( $filename ){
if(!file_exists( $filename )){
throw new Exception(__FUNCTION__ . " :: {$filename} does not exist!");
}
$data = exif_read_data( $filename, 0, true);
if( $data === false){
return filemtime( $filename );
}
if(isset( $data['IFD0']['DateTime'])){
return strtotime( $data['IFD0']['DateTime']);
}
else{
return filemtime( $filename );
}
}
$data_directory = "./";
$imgList = glob( $data_directory . "*.jpg");
array_multisort(
array_map( 'getExifDate', $imgList ),
SORT_NUMERIC,
SORT_ASC,
$imgList
);
$imgSize = count( $imgList );
assert( $imgSize > 0, "Bilder leider nicht verfügbar!");
$currIndex = intval( $_GET["index"] );
if( $currIndex < 0 ) $currIndex = 0;
if( $currIndex >= $imgSize) $currIndex = $imgSize-1;
$imgInfos = array();
foreach( $imgList as $imgName ){
array_push( $imgInfos, getimagesize("thumbs/".str_replace(".jpg", ".png", $imgName)));
}
?>
<!DOCTYPE HTML>
<html lang="de">
<head>
<title><?php echo $wkName;?> Einzelansicht [<?php $currIndex;?>/<?php echo $imgSize;?>]</title>
<script type="text/javascript">
<!-- Leute mit aktiviertem JavaScript sollen die BlueImpGallery gezeigt bekommen -->
<?php
echo "window.location = \"index.php?index=".$currIndex."\"";
?>
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="Die Judoka des Chemnitzer WSV beim Wettkampf <?php echo $wkName;?> (Bild [<?php $currIndex;?>/<?php echo $imgSize;?>])">
<meta name="keywords" content="Judo, <?php echo $wkName;?>, Bilder, Photos, Album, Galerie, Wettkampf, CWSV, Chemnitz, ">
<link rel="icon" href="/ressourcen/graphiken/icons/cwsv.ico">
<style type="text/css" media="screen">/*<![CDATA[*/ @import "table.css"; /*]]>*/</style>
<!-- Variante für die Leute ohne JavaScript (Anfang)-->
<noscript>
<table style="margin-left:auto;margin-right:auto;">
<tr>
<td>
<a href="index.php">
<img src="nav_topb.png" id="ntop" alt="Album" title="Album">
</a>
</td>
<td>
<a href="view.php?index=0">
<img src="nav_firstb.png" id="nfirst" alt="Zum Anfang" title="Zum Anfang">
</a>
</td>
<td>
<a href=<?php echo "\"view.php?index=".( $currIndex-10 >= 0 ? $currIndex - 10 : 0)."\"";?>>
<img src="nav_prev10b.png" id="nprev10" alt="10 Bilder zurück" title="10 Bilder zurück">
</a>
</td>
<td>
<a href=<?php echo "\"view.php?index=".( $currIndex-1 >= 0 ? $currIndex - 1 : 0)."\"";?>>
<img src="nav_prevb.png" id="nprev" alt="Bild zurück" title="Bild zurück">
</a>
</td>
<td>
<a href=<?php echo "\"view.php?index=".( $currIndex+1 < $imgSize ? $currIndex + 1 : $imgSize-1)."\"";?>>
<img src="nav_nextb.png" id="nnext" alt="Bild vor" title="Bild vor">
</a>
</td>
<td>
<a href=<?php echo "\"view.php?index=".( $currIndex+10 < $imgSize ? $currIndex + 10 : $imgSize-1)."\"";?>>
<img src="nav_next10b.png" id="nnext10" alt="10 Bilder vor" title="10 Bilder vor">
</a>
</td>
<td>
<a href=<?php echo "\"view.php?index=".( $imgSize-1 )."\""?>>
<img src="nav_lastb.png" id="nlast" alt="Zum Ende" title="Zum Ende">
</a>
</td>
<td>
<span id="image_name1"><?php echo $imgList[$currIndex]?></span>(<span id="image_num1"><?php echo $currIndex+1?></span>/<?php echo $imgSize;?>)
</td>
</tr>
</table>
<a href=<?php echo "\"view.php?index=".( $currIndex+1 < $imgSize ? $currIndex + 1 : $imgSize-1)."\"";?>>
<img src=<?php echo "\"".$imgList[$currIndex]."\" alt=\"".$imgList[$currIndex]."\" id=\"main_image\" width=\"100%\""?>>
</a>
<br />
</noscript>
<!-- Ende der Variante für die Leute ohne JavaScript -->
<!--Beginn der Einbindung des Counters-->
<?php
$chCounter_page_title = "<?php echo $wkName;?> Einzelansicht [<?php $currIndex;?>/<?php echo $imgSize;?>]";
$chCounter_visible=0;
include( $_SERVER['DOCUMENT_ROOT'].'/expCounter/counter.php');?>
<!--Ende der Einbindung des Counters-->
</body>
</html>