Commit 552d1eb1 authored by Anatole Rakotoson's avatar Anatole Rakotoson
Browse files

sommom

parent 3f2bacfc
......@@ -9,8 +9,11 @@ $paramsData = [ "options" => [ ] ];
if( isset(Yii::app()->session["costum"]["form"]["params"][$key]) )
$paramsData = Yii::app()->session["costum"]["form"]["params"][$key];
if(!isset($options))
$options = Yii::app()->session["costum"]["form"]["params"][$key]['options'];
if(!isset($options)){
if(isset(Yii::app()->session["costum"]["form"]["params"][$key]['options'])){
$options = Yii::app()->session["costum"]["form"]["params"][$key]['options'];
}
}
if($mode == "r"){ ?>
<div class="col-xs-12" id="<?php echo $kunik ?>">
......
......@@ -13,7 +13,7 @@
"Parc national" => "Parc national",
"Parc naturel régional" => "Parc naturel régional",
"Réserve naturelle" => "Réserve naturelle",
"Aires de protection de biotope" => "Aires de protection de biotope",
"Aires de protection de biotope" => "Aire de protection de biotope",
"Site Natura 2000" => "Site Natura 2000",
"Parc naturel marin" => "Parc naturel marin",
"Autre" => "Autre"
......
......@@ -228,16 +228,18 @@
if(isset($a[$i])) {
if(is_array($a[$i])) {
echo implode(",", $a[$i]);
echo implode(",", $a[$i]);
} else if($contr == 0){
foreach ($l['list'] as $k => $inp) {
}
else {
if (ctype_digit($a[$i]) && $contr == 0) {
foreach ($l['list'] as $k => $inp) {
if($k == $a[$i]){
echo $inp["nomScientifique"];
}
}
}
else {
} else
if($a[$i] == "true"){
echo "oui";
}else if($a[$i] == "false"){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment