Commit 00cfed05 authored by Anatole Rakotoson's avatar Anatole Rakotoson
Browse files

sommom

parent 716b22d5
......@@ -239,17 +239,7 @@
echo "<td>";
if(isset($a[$i])) {
if(is_array($a[$i])) {
if($i = "pPresence"){
echo implode("<br>", $a["pPresence"]);
}else if ($i = "pObservation") {
echo implode("<br>", $a["pObservation"]);
}
else if ($i = "dpPresence") {
echo implode("<br>", $a["dpPresence"]);
}
else if ($i = "dpObservation") {
echo implode("<br>", $a["dpObservation"]);
}
}
else {
if($a[$i] == "true"){
......
......@@ -4,7 +4,7 @@
<table class="table table-bordered table-hover directoryTable" id="<?php echo $kunik?>">
<?php
$editBtnL = ($canAnswer) ? " <a href='javascript:;' data-id='".$answer["_id"]."' data-collection='".Form::ANSWER_COLLECTION."' data-path='".$answerPath."' class='add".$kunik." btn btn-default'><i class='fa fa-plus'></i> Ajouter une ligne </a>" : "";
$editBtnL = ($canAnswer) ? " <a href='javascript:;' data-id='".$answer["_id"]."' data-collection='".Form::ANSWER_COLLECTION."' data-path='".$answerPath."' class='add".$kunik." btn btn-default'><i class='fa fa-plus'></i> Ajouter une ligne </a> <a href='javascript:;' data-id='5e5e2470681c3376298b456b' data-collection='answers' data-path='answers.sommomForm1.sommomForm122.' class='addorganismesommomForm122 btn btn-default'><i class='fa fa-plus'></i> Ajouter un organisme </a'" : "";
$editParamsBtn = ($canEdit) ? " <a href='javascript:;' data-id='".$el["_id"]."' data-collection='".Yii::app()->session["costum"]["contextType"]."' data-path='costum.form.params.".$kunik."' class='previewTpl edit".$kunik."Params btn btn-xs btn-danger'><i class='fa fa-cog'></i> </a>" : "";
......@@ -26,9 +26,11 @@
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"]);
if(is_array($v)){
foreach ($v as $key => $value) {
if(isset($value["intitule"])) {
$a += array($value["intitule"] => $value["intitule"]);
}
}
}
}
......@@ -54,8 +56,8 @@
"rules" => [ "required" => true ]
],
"Gestion" => [
"label" => "Gestion",
"placeholder" => "gestion",
"label" => "Organisme associé",
"placeholder" => "Organisme associé",
"inputType" => "selectMultiple",
"options" => $a,
"rules" => [ "required" => true ]
......
Supports Markdown
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