1
0
Fork 0

Manejo de control de versiones en formularios anidados

This commit is contained in:
humano 2017-12-24 14:00:24 -05:00
parent aa0fbcd9cd
commit 953344647a
1 changed files with 3 additions and 3 deletions

View File

@ -4762,7 +4762,7 @@ function respuestas_formulario($id,$identificador,$plantilla) {
$id = mysql_seguridad($id);
$formulario_respuesta = formulario_respuesta("$id","$identificador");
$consulta = "SELECT form_id , timestamp FROM form_datos
WHERE control = '$identificador' AND form_id != '$id' GROUP BY form_id , timestamp
WHERE control = '$identificador' AND form_id != '$id' GROUP BY form_id , timestamp ORDER by timestamp DESC limit 1
";
$link=Conectarse();
@ -4781,7 +4781,7 @@ if (mysqli_num_rows($sql)!='0'){
}
$resultado .="";
}else{$resultado ="";}
$resultado = "<div class='respuestas'>$resultado $formulario_respuesta</div>";
$resultado = "<div class='respuestas'>$resultado $formulario_respuesta</div> $consulta";
return $resultado;
}
@ -5325,7 +5325,7 @@ function landingpage_contenido_identificador($identificador,$form,$plantilla,$ti
</a>";
}
if($tipo =="simple") { $manejadores="$post_anterior $post_siguiente";}else { $manejadores="";}
$respuestas = respuestas_formulario($form,$identificador,$plantilla);
$respuestas = respuestas_formulario($form,$identificador,$plantilla);
$imagen = buscar_imagen($form[0],$identificador,"","$id_empresa[0]");