Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ALGLAVE Ivan
Drinkpedia
Commits
825a10de
Commit
825a10de
authored
Dec 03, 2020
by
SCHNEIDER Remi
Browse files
correction du déplacement dans la hiérarchie
parent
1621ad92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Hierarchy.php
View file @
825a10de
...
...
@@ -19,7 +19,7 @@
include
"Donnees.inc.php"
;
$res
=
null
;
if
(
isset
(
$Hierarchie
[
$aliment
][
'sous-categorie'
]))
{
$res
=
$Hierarchie
[
$aliment
][
'sous-categorie'
];
$res
=
$Hierarchie
[
$aliment
][
'sous-categorie'
];
}
return
$res
;
}
...
...
@@ -45,16 +45,16 @@
return
null
;
// A FAIRE
}
// DEBUT DES ACTIONS SUR LA PAGE :
if
(
!
isset
(
$_GET
[
'element'
]))
{
// Si on ouvre la Hiérachie pour la première fois, on part de '
Alim
ent'
$aliment
=
'
Vin effervesc
ent'
;
// Si on ouvre la Hiérachie pour la première fois, on part de '
Vin effervesc
ent'
$aliment
=
'
Alim
ent'
;
}
else
{
// Sinon on récupère l'aliment en cours
$aliment
=
$_GET
[
'element'
];
$aliment
=
trim
(
$aliment
,
'"'
);
}
echo
'<script>alert('
.
"'"
.
$aliment
.
"'"
.
');</script>'
;
$sup_cat
=
get_super_categories
(
$aliment
);
$sous_cat
=
get_sous_categories
(
$aliment
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment