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

sommom

parent abbd1be9
......@@ -38,9 +38,9 @@
$paramsData = [
"frequenceOb" => [
"fréquent" => "fréquent",
"occasionnel" => "occasionnel",
"rare" => "rare"
"Fréquent" => "Fréquent",
"Occasionnel" => "Occasionnel",
"Rare" => "Rare"
],
"statut" => [
"Espèce disparue (EX)" => "Espèce disparue (EX)",
......@@ -400,7 +400,7 @@
sectionDyf.<?php echo $kunik ?> = {
"jsonSchema" : {
"title" : "Espèce obsérvée",
"title" : "Espèce observée",
"icon" : "fa-money",
"text" : "",
"properties" : <?php echo json_encode( $properties ); ?>,
......
......@@ -63,7 +63,7 @@
],
"role" => [
"label" => "Rôles",
"placeholder" => "Choisir parmis les rôles de la liste",
"placeholder" => "Choisir parmi les rôles de la liste",
"inputType" => "selectMultiple",
"noOrder" => true,
"options" => $paramsData["role"],
......
......@@ -164,33 +164,30 @@
<tbody class="directoryLines">
<?php
$ct = 0;
$actualNbr2 = 0;
if(isset($answers)){
foreach ($answers as $q => $a) {
echo "<tr id='".$kunik.$q."' class='".$kunik."Line'>";
foreach ($properties as $i => $inp) {
if($actualNbr2 < 6){
echo "<td>";
if(isset($a[$i])) {
if(is_array($a[$i])){
$j = 0;
foreach ($a[$i] as $value) {
foreach ($l['list'] as $il => $inp) {
if($value == $il){
echo $inp["nomVernaculaire"];
if($j < count($a[$i]) - 1){
echo ',';
}
}
}
$j++;
}
}
else {
if($a[$i] == "true"){
foreach ($properties as $i => $inp) {
if($i == "location"){
} else {
echo "<td>";
if(isset($a[$i])) {
if($i == "coord"){
//$nameM = $a["localisation"];
$lat = $a["coord"]["latitude"];
$lon = $a["coord"]["longitude"];
echo $a["coord"]["latitude"]." / ".$a["coord"]["longitude"];
//echo implode(",", $a["coord"]);
echo '<span class="pull-right" style= "margin-right : 5px;"><a id="showActeurLocation" href="javascript:;" onclick=""><i class="fa fa-map-o" aria-hidden="true"></i></a></span>';
}
else if(is_array($a[$i])){
echo implode(",", $a[$i]);
}
else{
if($a[$i] == "true"){
echo "oui";
}else if($a[$i] == "false"){
echo "non";
......@@ -198,12 +195,11 @@
else {
echo $a[$i];
}
}
}
echo "</td>";
}
$actualNbr2++;
echo "</td>";
}
}
?>
<td style="white-space: normal;">
<?php
......@@ -224,73 +220,6 @@
}
}
?>
<?php if(isset($answers)){ ?>
<tr>
</th>
<?php
$actualNbr3 = 0;
foreach ($properties as $i => $inp) {
if($actualNbr3 > 5){
echo "<th>".$inp["placeholder"]."</th>";
}
$actualNbr3++;
}
?>
<th></th><th></th>
</tr>
<?php } ?>
<?php
$ct = 0;
$actualNbr4 = 0;
if(isset($answers)){
foreach ($answers as $q => $a) {
//var_dump($actualNbr4);
//if($actualNbr4 > 4){
echo "<tr id='".$kunik.$q."' class='".$kunik."Line'>";
foreach ($properties as $i => $inp) {
if($actualNbr4 > 5){
echo "<td>";
if(isset($a[$i])) {
if(is_array($a[$i])){
echo implode(",", $a[$i]);
}
else {
if($i == "site")
{
echo "<a href='".$a[$i]."'>".$a[$i]."</a>";
}
else
{
if ($i == "siteP")
{
echo "<a href='".$a[$i]."'>".$a[$i]."</a>";
}
else
{
echo $a[$i];
}
}
}
}
echo "</td>";
}
$actualNbr4++;
}
?>
<td></td><td></td>
<?php
$ct++;
echo "</tr>";
//}
}
}
?>
</tbody>
......
......@@ -43,8 +43,8 @@
$properties = [
"organisme" => [
"label" => "Exploitant du site",
"placeholder" => "Exploitant du site",
"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