Commit 716b22d5 authored by Anatole Rakotoson's avatar Anatole Rakotoson
Browse files

sommom

parent bbd6e972
......@@ -22,29 +22,42 @@
$i++;
}
$a=[];
if(isset($answer["answers"]["sommomForm1"])){
foreach ($answer["answers"]["sommomForm1"] as $k => $v) {
foreach ($v as $key => $value) {
if(isset($value["intitule"])) {
$a += array($value["intitule"] => $value["intitule"]);
}
}
}
}
$properties = [
"plan" => [
"label" => "intitlé du plan",
"placeholder" => "gestion",
"placeholder" => "Nom du plan de conservation",
"inputType" => "text",
"rules" => [ "required" => true ]
],
"startDate" => [
"label" => "Date de début",
"placeholder" => "Date de début",
"label" => "Année de creation",
"placeholder" => "Année de creation",
"inputType" => "date",
"rules" => [ "required" => true ]
],
"endDate" => [
"label" => "Date de fin",
"placeholder" => "Date de fin",
"label" => "Année de fin",
"placeholder" => "Année de fin",
"inputType" => "date",
"rules" => [ "required" => true ]
],
"Gestion" => [
"label" => "Gestion",
"placeholder" => "Nom de la structure",
"inputType" => "text",
"placeholder" => "gestion",
"inputType" => "selectMultiple",
"options" => $a,
"rules" => [ "required" => true ]
],
"especeCible" => [
......@@ -53,13 +66,13 @@
"inputType" => "selectMultiple",
"info" => "Appuyer sur contrôle pour sélectionner",
"options" => $cetacesArray,
"rules" => [ "required" => true ]
"rules" => [ "required" => false ]
],
"site" => [
"label" => "Site internet de référence",
"placeholder" => "Site internet de référence",
"inputType" => "text",
"rules" => [ "required" => true ]
"rules" => [ "required" => false ]
]
];
......@@ -98,7 +111,7 @@
<?php
foreach ($properties as $i => $inp) {
echo "<th>".$inp["placeholder"]."</th>";
echo "<th>".$inp["label"]."</th>";
} ?>
<th></th>
</tr>
......
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