diff --git a/index.php b/index.php index 572e2d8..9982351 100644 --- a/index.php +++ b/index.php @@ -1153,9 +1153,7 @@ echo $css_adicional;
- - +
@@ -1204,12 +1202,17 @@ echo $css_adicional;
+
+
" ; diff --git a/milfs/funciones/funciones.php b/milfs/funciones/funciones.php index b6514c7..5320eca 100644 --- a/milfs/funciones/funciones.php +++ b/milfs/funciones/funciones.php @@ -4739,21 +4739,22 @@ return $resultado; } -function mas_visto($tipo,$limite,$divider) { +function mas_visto($tipo,$limite,$divider,$form,$empresa) { $resultado= ""; $contenido= ""; if($divider =="" ) { $divider =6;} $cols = (12/$divider); $titulo[]=""; +if ($form !=""){ $w_form = "AND form_id='$form' ";}else{ $w_form="";} if($tipo =="ultimos") { $titulo="LO ĂšLTIMO"; - $consulta ="SELECT * FROM `form_datos`, form_id WHERE `form_datos`.form_id = form_id.id AND form_id.publico = '1' GROUP BY form_datos.control ORDER BY form_datos.timestamp DESC LIMIT $limite"; + $consulta ="SELECT * FROM `form_datos`, form_id WHERE `form_datos`.form_id = form_id.id AND form_id.publico = '1' $w_form GROUP BY form_datos.control ORDER BY form_datos.timestamp DESC LIMIT $limite"; } elseif($tipo =="aleatorios" ){ $tipo = "ultimos"; $titulo="TE INTERESA"; - $consulta ="SELECT * FROM `form_datos`, form_id WHERE `form_datos`.form_id = form_id.id AND form_id.publico = '1' GROUP BY form_datos.control ORDER BY RAND() LIMIT $limite"; + $consulta ="SELECT * FROM `form_datos`, form_id WHERE `form_datos`.form_id = form_id.id AND form_id.publico = '1' $w_form GROUP BY form_datos.control ORDER BY RAND() LIMIT $limite"; } else{ $consulta ="SELECT * FROM `form_parametrizacion` WHERE `opcion` LIKE '$tipo' ORDER BY CAST(descripcion AS SIGNED ) DESC LIMIT $limite"; @@ -4780,15 +4781,15 @@ $link=Conectarse(); //$impresion = mostrar_identificador("$row[campo]","","landingpage","",""); $contenido .= " "; @@ -4828,7 +4829,11 @@ $link=Conectarse(); } elseif($tipo =='ultimos') { //while( $row = mysqli_fetch_array( $sql ) ) { + while( $row = mysqli_fetch_array( $sql ) ) { + if($form ==""){ $datos_formulario ="

$row[nombre]

";} + else{$datos_formulario ="";} + //$formulario = remplacetas('form_datos','control',"$row[control]",'form_id',"") ; //$formulario_titulo = remplacetas('form_id','id',"$formulario[0]",'nombre',"") ; @@ -4853,12 +4858,12 @@ $link=Conectarse(); $contenido .= " "; } @@ -5222,8 +5227,7 @@ $acciones=" $resultado = " -

$nombre[0]

-

$descripcion[0]

+ $acciones