diff --git a/module/folder/folder.php b/module/folder/folder.php
index 38874056..f79022bf 100644
--- a/module/folder/folder.php
+++ b/module/folder/folder.php
@@ -81,7 +81,7 @@ private function getFolderContent($chemin)
if (is_dir($chemin)) {
// Ouvrir le dossier
if ($dh = opendir($chemin)) {
- $items = isset($items) ? $items . '
' : '';
+ $items = isset($items) ? $items : '';
// Parcourir les éléments du dossier
while (($element = readdir($dh)) !== false) {
// Exclure les éléments spéciaux
@@ -92,10 +92,10 @@ private function getFolderContent($chemin)
// Vérifier si c'est un dossier
if (is_dir($cheminComplet)) {
// Afficher le nom du dossier avec un élément details
- $items .= "- $element
";
+ $items .= "- $element";
// Appeler récursivement la fonction pour ce sous-dossier
$items .= $this->getFolderContent($cheminComplet);
- $items .= '
';
+ $items .= '';
} else {
// Afficher le nom du fichier comme un lien
$items .= "- $element
";
diff --git a/module/folder/view/index/index.css b/module/folder/view/index/index.css
index cd23dace..ac52c9db 100644
--- a/module/folder/view/index/index.css
+++ b/module/folder/view/index/index.css
@@ -1,40 +1,45 @@
+#dirindex article {
+ display: block;
+ margin: 0 auto;
+ width: 480px;
+}
- #dirindex article{
- display: block;
- margin: 0 auto;
- width: 480px;
- }
+#dirindex a {
+ color: #004466;
+ text-decoration: none;
+}
- #dirindex a {
- color: #004466;
- text-decoration: none;
- }
- #dirindex a:hover {
- text-decoration: underline;
- }
- #dirindex a:visited {
- color: #666666;
- }
+#dirindex a:hover {
+ text-decoration: underline;
+}
- #dirindex details summary, #dirindex details summary::-webkit-details-marker {
- list-style: none;
- cursor: pointer;
- }
+#dirindex a:visited {
+ color: #666666;
+}
- #dirindex {
- list-style: none;
- }
-
- #dirindex .directory {
- list-style-type: "\1F4C1";
- }
+#dirindex details summary,
+#dirindex details summary::-webkit-details-marker {
+ list-style: none;
+ cursor: pointer;
+}
- #dirindex .file {
- list-style-type: "\1F4C4";
- }
+#dirindex {
+ list-style: none;
+}
- #dirindex ul li {
- margin-top: 5px;
- }
+#dirindex .directory {
+ list-style-type: "\1F4C1";
+}
+#dirindex .file {
+ list-style-type: "\1F4C4";
+}
+#dirindex ul li {
+ margin-top: 10px;
+}
+
+#dirindex li {
+ padding-left: 5px;
+ list-style-position : outside;
+}
\ No newline at end of file