Subversion Repository Public Repository

location-sisco

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
	$photos = glob("{Images/".$dossier_photos."/*.jpg,Images/".$dossier_photos."/*.JPG,Images/".$dossier_photos."/*.png,Images/".$dossier_photos."/*.PNG,Images/".$dossier_photos."/*.bmp,Images/".$dossier_photos."/*.BMP}",GLOB_BRACE);
	if($photos)
		sort($photos, SORT_STRING); //tri des éléments du tableau en les comparant comme des chaines de caractères.
	for($cpt=1; $cpt<=count($photos); $cpt++){
		/*echo '<a class="lien_image" target="_blank" href="'.$photos[$cpt-1].'">
				<img width="160" height="120" border="0" alt="" src="'.$photos[$cpt-1].'" />
			  </a>';*/
		echo '<a class="lien_image" href="index.php?page=diaporama&photos='.$dossier_photos.'&num='.($cpt).'&from='.$from.'">
				<img width="160" height="120" border="0" alt="" src="'.$photos[$cpt-1].'" />
			  </a>';
		if($cpt%$nb_photos_par_ligne==0)
			echo '<br/>';
	}
	if(count(glob("Images/".$dossier_photos."/".$dossier_photos.".rar")) > 0) 
		echo '<br/><br/> <a href="Images/'.$dossier_photos.'/'.$dossier_photos.'.rar"> Télécharger ces photos </a> <br/>';
?>

Commits for location-sisco/trunk/script_photos.inc

Diff revisions: vs.
Revision Author Commited Message
20 Diff Diff thanoc picture thanoc Thu 02 Jul, 2015 08:51:24 +0000

Conversion de toutes les pages en UTF-8

7 Diff Diff thanoc picture thanoc Sun 11 Sep, 2011 18:50:17 +0000

Ajout du script de diaporama ;
Modification des textes de différentes pages

2 thanoc picture thanoc Sat 09 Jul, 2011 11:24:53 +0000

Import initial