-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathressource.php
More file actions
84 lines (54 loc) · 1.97 KB
/
ressource.php
File metadata and controls
84 lines (54 loc) · 1.97 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php include "app/app.php"; navbar(7); ?>
<main>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index.php?logout=true">Connexion</a></li>
<li class="breadcrumb-item"><a href="home.php">Accueil</a></li>
<li class="breadcrumb-item active" aria-current="page">Ressource</li>
</ol>
</nav>
<?php
if (empty($_SESSION['userIdLog'])){
header("location: index.php");
}
if (!empty($_GET['del'])){
$idContact = $_GET['del'];
delContact($idContact);
}
?>
<div class="container py-5">
<h4 class="container">Page Ressource</h4>
<br>
</div>
<ul id="albumfotos">
<?php
$path = "https://tyrolium.fr/Contenu/Image/";
$scandir = scandir("../Contenu/Image/");
$i = 0;
foreach($scandir as $fichier){
$size = 0;
$i = $i + 1;
echo '<li id="foto'. $i .'"><a href="' . $path . $fichier .'">'. $fichier .'</a></li>';
$size = getimagesize($path . $fichier);
?>
<style>
ul#albumfotos li#foto<?= $i ?>{
background-image:url(<?= $path . $fichier ?>);
background-position:50% 50%;
background-size:400px 400px;
background-color: #ffffff;
}
ul#albumfotos li#foto<?= $i ?>:hover{
background-position:0px 0px;
background-size: unset;
width: <?= $size[0] ?>px;
height: <?= $size[1] ?>px;
}
</style>
<?php
}
?>
</ul>
<br>
</main>
</body> </html>