Commit 086bb278 authored by Anatole Rakotoson's avatar Anatole Rakotoson
Browse files

sommom

parent 733134a0
......@@ -147,7 +147,11 @@
foreach ($properties as $i => $inp) {
if($i == "location"){
} else {
} else if($i == "file"){
}
else {
echo "<td>";
if(isset($a[$i])) {
if($i == "pointGPS"){
......@@ -158,8 +162,19 @@
//echo implode(",", $a["pointGPS"]);
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($i == "file"){
$initAnswerFiles=Document::getListDocumentsWhere(array(
else if(is_array($a[$i])){
echo implode(",", $a[$i]);
}
else{
echo $a[$i];
}
}
echo "</td>";
}
}
echo "<td>";
$initAnswerFiles=Document::getListDocumentsWhere(array(
"id"=>(string)$answer["_id"],
"type"=>'answers',
"subKey"=>$answerPath.$q), "file");
......@@ -187,18 +202,9 @@
<?php
}
}
else if(is_array($a[$i])){
echo implode(",", $a[$i]);
}
else{
echo $a[$i];
}
}
echo "</td>";
}
}
echo "</td>";
?>
<td style="white-space: normal;">
<?php
$this->renderPartial( "survey.views.tpls.forms.cplx.editDeleteLineBtn" , [
......@@ -265,11 +271,11 @@
dataHelper.path2Value( tplCtx, function(params) {
// $("#ajax-modal").html("<div class='text-center'><i class='fa fa-spin fa-spinner'></i></div>");//$("#ajax-modal").modal('hide');
dyFObj.commonAfterSave(null, function(){
alert('yes');
// tplCtx.path = tplCtx.path + ".img";
// tplCtx.value = "answers/"+answerObj._id.$id+ ;
// dataHelper.path2Value( tplCtx, function(params) {
// // location.reload();
location.reload();
// } );
});
......
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