libellés et liste de dossiers

This commit is contained in:
Fred Tempez 2023-05-11 19:07:34 +02:00
parent faac5a6c43
commit cb909e41de
3 changed files with 5 additions and 5 deletions

View File

@ -578,7 +578,7 @@ class user extends common
self::$sharePath = $this->getSubdirectories('./site/file/source');
self::$sharePath = array_flip(self::$sharePath);
self::$sharePath = array_merge(['./site/file/source/' => 'Accès total'], self::$sharePath);
self::$sharePath = array_merge(['./site/file/source/' => 'Tous les dossiers'], self::$sharePath);
self::$sharePath = array_merge([null => 'Aucun dossier'], self::$sharePath);
// Valeurs en sortie;
@ -642,7 +642,7 @@ class user extends common
self::$sharePath = $this->getSubdirectories('./site/file/source');
self::$sharePath = array_flip(self::$sharePath);
self::$sharePath = array_merge(['./site/file/source/' => 'Accès total'], self::$sharePath);
self::$sharePath = array_merge(['./site/file/source/' => 'Tous les dossiers'], self::$sharePath);
self::$sharePath = array_merge([null => 'Aucun dossier'], self::$sharePath);
// Valeurs en sortie;
@ -1043,7 +1043,7 @@ class user extends common
// Vérifiez si c'est un répertoire
if (is_dir($path)) {
// Construisez la clé et la valeur pour le tableau associatif
$key = $basePath === '' ? $file : $basePath . '/' . $file;
$key = $basePath === '' ? ucfirst($file) : $basePath . '/' . $file;
$value = $path . '/';
// Ajouter la clé et la valeur au tableau associatif
$subdirs[$key] = $value;

View File

@ -56,7 +56,7 @@
</div>
<div class="col6">
<?php echo template::select('profilAddPath', $module::$sharePath, [
'label' => 'Racine du dossier',
'label' => 'Dossier',
'class' => 'filemanager',
]); ?>
</div>

View File

@ -58,7 +58,7 @@
</div>
<div class="col6">
<?php echo template::select('profilEditPath', $module::$sharePath, [
'label' => 'Racine du dossier',
'label' => 'Dossier',
'class' => 'filemanager',
'selected' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'folder', 'path'])
]); ?>