diff --git a/index.php b/index.php
index 093d970..f2bb5da 100755
--- a/index.php
+++ b/index.php
@@ -63,8 +63,9 @@ $cantidad_registros ="10";
/// h=ADDON *
/// j=ADDON EMBEBIDO *
/// a= Aplicacion
-/// p= Aplicacion
+/// p= Planilla
/// l= Listado
+
//$destacados = mas_visto("ultimos","6","6");
//$aleatorios = mas_visto("aleatorios","6","6");
//if (isset($_GET['v'])) {$variable = $_GET['v'];}else {$variable = "";}
@@ -196,17 +197,11 @@ if ($variable !=''){
}
elseif($v[0] =='p') {
- $identificador =$v[1];
- if(strlen($identificador) > 32) {
- $identificador_original= $identificador;
- $key = substr($identificador, 32, $length = 40);
- $identificador = substr($identificador, 0, $length = 32);
- } else {$identificador_original = $identificador;}
- $primer = formulario_uso("","$identificador",'primer') ;
- $id_form="$primer[3]";
+ $set =$v[1];
+ /// s= SET DE DATOS
$embebido = "1";
- //$onload = mostrar_identificador("$identificador","$id_form","landingpage",'simple');
- $onload = landingpage_contenido_identificador("$identificador_original","$id_form","remplazo",'simple');
+ if(isset($_REQUEST['print'])) { $print = "window.print()";}
+ $onload = "".planilla("$set","$planilla")." ";
}
elseif($v[0] =='i') {
diff --git a/milfs/funciones/funciones.php b/milfs/funciones/funciones.php
index c84f7e8..1695a2f 100644
--- a/milfs/funciones/funciones.php
+++ b/milfs/funciones/funciones.php
@@ -1,6 +1,28 @@
$linea";
+ //formulario_imprimir_linea("$row[form_id]","$row[control]")
+}
+ $titulo = formulario_imprimir_linea("$id",$row[control],'titulos');
+$tabla= "
";
+return "$tabla";
+}
+
+
+
function equipos($clave,$proyecto,$name,$div)
{
$resultado="";
@@ -196,9 +218,11 @@ $campos = "$tipo,$contenido";
$datos = json_decode($contenido, true);
if ($tipo == "html"){
foreach ($datos as $id_campo => $valor) {
+ // $linea .= "$id_campo $valor |
";
$campo_nombre = remplacetas('form_campos','id',"$id_campo",'campo_nombre',"") ;
$campo_descripcion = remplacetas('form_campos','id',"$id_campo",'campo_descripcion',"") ;
foreach ($valor as $c => $v) {
+ // $linea .= "$c $v |
";
foreach ($v as $c1 => $v1) {
$linea .= "$v1 |
";
}
@@ -3291,6 +3315,7 @@ $linea .= landingpage_contenido_identificador("$row[control]","$id_form","$plant
//$linea .= mostrar_identificador("$row[control]","$id_form","landingpage",'simple');;
//$linea .= "
$row[control]";
$linea_listado .= landingpage_contenido_identificador("$row[control]","$id_form","$plantilla",'listado');
+$linea_planilla .= landingpage_contenido_identificador("$row[control]","$id_form","$plantilla",'planilla');
}
$buscador = buscar_datos("*formato*","$form","grid","mostrar_resultado");
//$filtro = portal_filtro_campos_select($form,"$campo_filtro","mostrar_resultado","landingpage");
@@ -3377,6 +3402,10 @@ return $respuesta;
// unset($_SESSION['proceso']);
return "$linea_listado";
}
+ elseif($tipo =="planilla") {
+// unset($_SESSION['proceso']);
+ return "$linea_planilla";
+ }
else {}
}
$xajax->registerFunction("consultar_contenido_formulario");
@@ -7875,7 +7904,7 @@ $link = "Ver referencia
return " $valor_actual $link";
$div ="div_relacion_$name";
-$consulta = "SELECT contenido, control FROM form_datos WHERE form_id ='$formulario' and id_campo ='$key' GROUP BY control $limit ";
+$consulta = "SELECT DISTINCT contenido, control FROM form_datos WHERE form_id ='$formulario' and id_campo ='$key' GROUP BY control $limit ";
if($name =="") {
//return "$valor_actual";
}
@@ -7886,7 +7915,7 @@ $sql=mysqli_query($link,$consulta);
if (mysqli_num_rows($sql)!='0'){
$onchange = " xajax_contenido_mostrar('$formulario',(this.value),'$div','relacion')";
-$resultado="