Commit 3be782b4 authored by Anatole Rakotoson's avatar Anatole Rakotoson
Browse files

sommmom

parent 6e07f22f
......@@ -204,7 +204,7 @@
$ccnt ++;
} ?>
<th colspan="4">Observation Saisonnière</th>
<th colspan="2">Observation Saisonnière</th>
<?php
$ccnt1 = 1;
foreach ($properties as $i => $inp) {
......@@ -219,8 +219,17 @@
<?php
$ccnt2 = 1;
foreach ($properties as $i => $inp) {
if($ccnt2 > 3 and $ccnt2 < 8){
echo "<th >".$inp["placeholder"]."</th>";
// if($ccnt2 > 3 and $ccnt2 < 8){
// echo "<th >".$inp["placeholder"]."</th>";
// }
if($ccnt2 == 4){
echo " <th> Période de présence </th>";
} else if($ccnt2 == 5){
}else if($ccnt2 == 6){
echo "<th> Période d'observation </th>";
}else if($ccnt2 == 7){
}
$ccnt2 ++;
} }?>
......@@ -232,10 +241,94 @@
$ct = 0;
if(isset($answers)){
foreach ($answers as $q => $a) {
echo "<tr id='".$kunik.$q."' class='".$kunik."Line'>";
$mycounter = 0;
foreach ($properties as $i => $inp) {
if($mycounter == 3){
echo "<td>";
if(isset($a[$i])) {
if(is_array($a[$i])) {
}
else {
if($a[$i] == "Annuelle"){
echo "Annuelle";
} else {
echo "<b>De </b>".$a[$i];
}
}
}
} else if($mycounter == 4){
if(isset($a[$i])) {
if(is_array($a[$i])) {
}
else {
if($a[$i] == "Annuelle "){
echo "Annuelle";
} else {
echo " <b> à </b>".$a[$i];
}
}
}
echo "</td>";
} else if ($mycounter == 5){
echo "<td>";
if(isset($a[$i])) {
if(is_array($a[$i])) {
}
else {
if($a[$i] === "Annuelle "){
echo "Annuelle";
} else {
echo "<b>De </b>".$a[$i];
}
}
}
} else if ($mycounter == 6){
if(isset($a[$i])) {
if(is_array($a[$i])) {
}
else {
if($a[$i] == "Annuelle "){
echo "Annuelle";
} else {
echo " <b> à </b>".$a[$i];
}
}
}
echo "</td>";
}
else{
echo "<td>";
if(isset($a[$i])) {
if(is_array($a[$i])) {
......@@ -266,6 +359,8 @@
}
}
echo "</td>";
}
$mycounter++;
}
?>
<td style="white-space: normal;">
......
......@@ -44,8 +44,8 @@
$properties = [
"organisme" => [
"label" => "Organisme référent ",
"placeholder" => "Organisme référent ",
"label" => "Nom de l’organisme",
"placeholder" => "Sélectionner l’organisme",
"inputType" => "selectMultiple",
"options" => $a,
"rules" => [ "required" => false ]
......@@ -101,7 +101,7 @@
<?php
foreach ($properties as $i => $inp) {
echo "<th>".$inp["placeholder"]."</th>";
echo "<th>".$inp["label"]."</th>";
} ?>
<th></th>
</tr>
......
......@@ -78,8 +78,8 @@
$properties = [
"organisme" => [
"label" => "Organisme référent ",
"placeholder" => "Organisme référent ",
"label" => "Nom de l’organisme",
"placeholder" => "Sélectionner l’organisme",
"inputType" => "selectMultiple",
"options" => $a,
"rules" => [ "required" => 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