Commit d477a341 authored by Anatole Rakotoson's avatar Anatole Rakotoson
Browse files

sommom

parent 279ae2c7
......@@ -150,6 +150,14 @@
if($i == "site") {
echo "<a href='".$a[$i]."'>".$a[$i]."</a>";
}
else if($i == "type" && isset($paramsData[$i][$a[$i]])){
echo $paramsData[$i][$a[$i]];
}
else if($i == "nature" && isset($paramsData[$i][$a[$i]])){
echo $paramsData[$i][$a[$i]];
}
else {
echo $a[$i];
}
......
......@@ -52,13 +52,13 @@
"date" => [
"label" => "Date de création",
"placeholder" => "Date de création",
"inputType" => "date",
"inputType" => "text",
"rules" => [ "required" => false ]
],
"maj" => [
"label" => "dernière mise à jour ",
"placeholder" => "dernière mise à jour ",
"inputType" => "date",
"inputType" => "text",
"rules" => [ "required" => false ]
],
......@@ -138,7 +138,7 @@
foreach ($properties as $i => $inp) {
echo "<th>".$inp["placeholder"]."</th>";
echo "<th>".$inp["label"]."</th>";
}
?>
......
......@@ -17,9 +17,10 @@
"labelText" => "Concerne les cétacés"
],
"statut" => [
"Marque Collective simple " => "Marque Collective simple ",
"Marque Collective simple " => "Marque ollective simple ",
"Marque collective de certification" => "Marque collective de certification",
"Label Officiel ministériel" => "Label Officiel ministériel"
"Label Officiel ministériel" => "Label officiel ministériel",
"autre" => "Autre"
]
];
......@@ -151,10 +152,9 @@ $actualNbr1 = 0;
<?php
foreach ($properties as $i => $inp) {
if($actualNbr1 < 6){
echo "<th>".$inp["placeholder"]."</th>";
}
$actualNbr1++;
echo "<th>".$inp["label"]."</th>";
}
?>
<th></th>
......@@ -171,7 +171,7 @@ $actualNbr1 = 0;
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])){
......@@ -181,6 +181,10 @@ $actualNbr1 = 0;
if($i == "site")
{
echo "<a href='".$a[$i]."'>".$a[$i]."</a>";
}
else if($i == "type" && isset($paramsData[$i][$a[$i]])){
echo $paramsData[$i][$a[$i]];
}
else {
if($a[$i] == "true"){
......@@ -194,8 +198,7 @@ $actualNbr1 = 0;
}
}
echo "</td>";
}
$actualNbr2++;
}
?>
<td style="white-space: normal;">
......@@ -216,71 +219,7 @@ $actualNbr1 = 0;
echo "</tr>";
}
}
if(isset($answers)){
?>
<tr>
</th>
<?php
$actualNbr3 = 0;
foreach ($properties as $i => $inp) {
if($actualNbr3 > 5){
echo "<th>".$inp["placeholder"]."</th>";
}
$actualNbr3++;
}
?>
<th></th>
</tr>
<?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
{
echo $a[$i];
}
}
}
echo "</td>";
}
$actualNbr4++;
}
?>
<td></td>
<?php
$ct++;
echo "</tr>";
//}
}
}
?>
?>
</tbody>
</table>
</div>
......
......@@ -127,7 +127,7 @@
echo "<td>";
if(isset($a[$i])) {
if(is_array($a[$i])){
echo implode(",", $a["organisme"]);
echo implode(",", $a[$i]);
}
else {
......@@ -136,6 +136,10 @@
{
echo "<a href='".$a[$i]."'>".$a[$i]."</a>";
}
else if($i == "type" && isset($paramsData[$i][$a[$i]])){
echo $paramsData[$i][$a[$i]];
}
else
{
echo $a[$i];
......
......@@ -107,15 +107,15 @@
"placeholder" => "Site de référence pour consultation",
"inputType" => "text",
"rules" => [ "required" => false ]
],
"natureP" => [
"label" => "Nature",
"placeholder" => "Nature",
"inputType" => "select",
"noOrder" => true,
"options" => $paramsData["nature"],
"rules" => [ "required" => false ]
]
// "natureP" => [
// "label" => "Nature",
// "placeholder" => "Nature",
// "inputType" => "select",
// "noOrder" => true,
// "options" => $paramsData["nature"],
// "rules" => [ "required" => false ]
// ]
];
......@@ -185,6 +185,10 @@
echo "<a href='".$a[$i]."'>".$a[$i]."</a>";
}
else if($i == "nature" && isset($paramsData["natureP"][$a[$i]])){
echo $paramsData[$i][$a[$i]];
}
else {
if($a[$i] == "true"){
......
......@@ -12,7 +12,7 @@
"type" => [
"Transport de passagers" => "Transport de passagers",
"Club de plongée" => "Club de plongée",
"Location de Navire" => "Location de Navire",
"Location" => "Location de navires",
"Autre" => "Autre"
],
......@@ -29,7 +29,8 @@
],
"pratique" => [
"Embarquée" => "Embarquée",
"Nage avec" => "Nage avec"
"Nage avec" => "Nage avec",
"deux" => "Les deux"
],
"paramsP" => [
"onText" => "oui",
......@@ -92,14 +93,14 @@
"options" => $paramsData["type"],
"rules" => [ "required" => false ]
],
"statut" => [
"label" => "Statut",
"placeholder" => "Statut",
"inputType" => "select",
"noOrder" => true,
"options" => $paramsData["statut"],
"rules" => [ "required" => false ]
],
// "statut" => [
// "label" => "Statut",
// "placeholder" => "Statut",
// "inputType" => "select",
// "noOrder" => true,
// "options" => $paramsData["statut"],
// "rules" => [ "required" => false ]
// ],
"nbrNav" => [
"label" => "Nombre de navires ou appareils",
"placeholder" => "Nombre de navires ou appareils",
......@@ -198,6 +199,13 @@
echo "oui";
}else if($a[$i] == "false"){
echo "non";
}else if($i == "pratique" && isset($paramsData[$i][$a[$i]])){
echo $paramsData[$i][$a[$i]];
}
else if($i == "typeStruct" && isset($paramsData["type"][$a[$i]])){
echo $paramsData["type"][$a[$i]];
}
else {
echo $a[$i];
......
......@@ -51,7 +51,7 @@ $initAnswerFiles=Document::getListDocumentsWhere(array(
</div>
<div class="col-xs-12 margin-bottom-10 text-center">
<div class="qq-upload-button-selector btn btn-primary">
<div>Selectionner un document</div>
<div>Séléctionner un document</div>
</div>
</div>
......
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