Subversion Repository Public Repository

location-sisco

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<div id="fond_gris">
	<div id="zone_infos">
		<?php
			if(isset($_GET['photos']) and isset($_GET['num']) and isset($_GET['from'])){
				$dossier_photos = $_GET['photos'];
				$num = $_GET['num'];
				$from = $_GET['from'];
				//$photos = glob("{Images/".$dossier_photos."/".$num.".jpg,Images/".$dossier_photos."/".$num.".JPG,Images/".$dossier_photos."/".$num.".png,Images/".$dossier_photos."/".$num.".PNG,Images/".$dossier_photos."/".$num.".bmp,Images/".$dossier_photos."/".$num.".BMP}",GLOB_BRACE);
				$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.
					echo '<div id="zone_diaporama"><center><table><tr><td style="width:100px;">';
					if($num > 1){
						  echo '<a class="lien_diaporama" href=index.php?page=diaporama&photos='.$dossier_photos.'&num='.($num-1).'&from='.$from.'><< Précédente</a>';
					}
					echo '</td><td style="max-width:540px;">';
					echo '<center><img style="max-height:400px; max-width=520px;"  border="0" alt="" src="'.$photos[$num-1].'" /></td><td style="width:100px;"></center>';
					if($num < count($photos)){
						echo '<a href=index.php?page=diaporama&photos='.$dossier_photos.'&num='.($num+1).'&from='.$from.'>Suivante >></a>';
					}
					echo '</td></tr></table>';
					echo '<br/><a href=index.php?page='.$from.'>Quitter le diaporama </a></center>';
					echo '</center></div>';
				}
			}
		?>
	</div>
</div>

Commits for location-sisco/trunk/diaporama.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 thanoc picture thanoc Sun 11 Sep, 2011 18:50:17 +0000

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