Skip to content

Commit

Permalink
settings.php : affichage de la langue du site ...
Browse files Browse the repository at this point in the history
  • Loading branch information
jipexu committed Jun 18, 2024
1 parent b6c3de1 commit 582c0a6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions revolution_16/admin/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
function Configure() {
global $hlpfile, $filemanager,$f_meta_nom, $f_titre, $adminimg;
include ("config.php");
$notmodifiedlangue = $language; //ici la variable est conforme
include ("header.php");
GraphicAdmin($hlpfile);
adminhead ($f_meta_nom, $f_titre, $adminimg);
Expand Down Expand Up @@ -258,12 +259,14 @@ function Configure() {
<div class="form-floating mb-3">
<select class="form-select" id="xlanguage" name="xlanguage">';
include("manuels/list.php");
// var_dump($language);// ici la valeur de la variable est celle choisi par l'utilisateur
$languageslist = explode(' ', $languageslist);
for ($i=0; $i < sizeof($languageslist); $i++) {
$nb_language = sizeof($languageslist) ;
for ($i=0; $i < $nb_language ; $i++) {
if ($languageslist[$i]!='') {
echo '
<option value="'.$languageslist[$i].'" ';
if ($languageslist[$i]==$language) echo 'selected="selected"';
if ($languageslist[$i]==$notmodifiedlangue) echo 'selected="selected"';
echo '>'.$languageslist[$i].'</option>';
}
}
Expand Down

0 comments on commit 582c0a6

Please sign in to comment.