diff --git a/milfs/css/images/buttons.gif b/milfs/css/images/buttons.gif new file mode 100644 index 0000000..2e464d0 Binary files /dev/null and b/milfs/css/images/buttons.gif differ diff --git a/milfs/css/images/toolbar.gif b/milfs/css/images/toolbar.gif new file mode 100644 index 0000000..e6eb2da Binary files /dev/null and b/milfs/css/images/toolbar.gif differ diff --git a/milfs/css/jquery.cleditor.css b/milfs/css/jquery.cleditor.css new file mode 100644 index 0000000..fa4481d --- /dev/null +++ b/milfs/css/jquery.cleditor.css @@ -0,0 +1,26 @@ +.cleditorMain {border:1px solid #999; padding:0 1px 1px; background-color:white} +.cleditorMain, +.cleditorPopup, +.cleditorMain * {-moz-box-sizing:content-box; -webkit-box-sizing:content-box; box-sizing:content-box} +.cleditorMain iframe {border:none; margin:0; padding:0} +.cleditorMain textarea {overflow-y:scroll; font:10pt Arial,Verdana; resize:none; outline:none} +.cleditorToolbar {background: url('images/toolbar.gif') repeat} +.cleditorGroup {float:left; height:26px} +.cleditorButton {float:left; width:24px; height:24px; margin:1px 0 1px 0; background: url('images/buttons.gif')} +.cleditorDisabled {opacity:0.3; filter:alpha(opacity=30)} +.cleditorDivider {float:left; width:1px; height:23px; margin:1px 0 1px 0; background:#CCC} +.cleditorPopup {border:solid 1px #999; background-color:white; color:#333333; position:absolute; font:10pt Arial,Verdana; cursor:default; z-index:10000} +.cleditorList div {padding:2px 4px 2px 4px} +.cleditorList p, +.cleditorList h1, +.cleditorList h2, +.cleditorList h3, +.cleditorList h4, +.cleditorList h5, +.cleditorList h6, +.cleditorList font {padding:0; margin:0; background-color:Transparent} +.cleditorColor {width:150px; padding:1px 0 0 1px} +.cleditorColor div {float:left; width:14px; height:14px; margin:0 1px 1px 0} +.cleditorPrompt {background-color:#F6F7F9; padding:8px; font-size:8.5pt} +.cleditorPrompt label {padding-bottom:8px} +.cleditorMsg {background-color:#FDFCEE; width:150px; padding:4px; font-size:8.5pt} \ No newline at end of file diff --git a/milfs/css/style.css b/milfs/css/style.css new file mode 100644 index 0000000..5d39f70 --- /dev/null +++ b/milfs/css/style.css @@ -0,0 +1,172 @@ + * { + margin: 0; + padding: 0; +} + +body { + background: #222; + font-family: Georgia, serif; + color: #fff; + font-size: 14px; +} + +#dates a { + color: gray; + text-decoration: none; + -webkit-transition: 0.5s; + -moz-transition: 0.5s; + -o-transition: 0.5s; + -ms-transition: 0.5s; + transition: 0.5s; + font-size: 12px; +} +#dates a:hover, +#dates a.selected { + color: red; + font-size: 18px; + } +/* +h1,h2,h4,h5,h6 { + text-align: center; + color: #ccc; + text-shadow: #000 1px 1px 2px; + margin-bottom: 5px; +} + h1 { + font-size: 18px; + } + h2 { + font-size: 14px; + } +.sociales { + text-align: center; + margin-bottom: 20px; +} +*/ + #timeline { + width: 95%; + height: 500px; + overflow: hidden; + margin: 100px auto; + position: relative; + + } + #dates { + width: 800px; + height: 60px; + overflow: hidden; + background: url('timeline/dot.gif') left 45px repeat-x; + } + #dates li { + list-style: none; + float: left; + width: 100px; + height: 50px; + font-size: 24px; + text-align: center; + background: url('timeline/biggerdot.png') center bottom no-repeat; + } + #dates a { + line-height: 18px; + padding-bottom: 10px; + } + #dates .selected { + font-size: 18px; + } + + #issues { + width: 800px; + height: 500px; + overflow: hidden; + } + #issues li { + width: 900px; + height: 500px; + list-style: none; + float: left; + } + #issues li.selected img { + -webkit-transform: scale(1.1,1.1); + -moz-transform: scale(1.1,1.1); + -o-transform: scale(1.1,1.1); + -ms-transform: scale(1.1,1.1); + transform: scale(1.1,1.1); + } + #issues li img { + float: left; + margin: 10px 30px 10px 50px; + background: transparent; + -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)"; /* IE 8 */ + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF);/* IE 6 & 7 */ + zoom: 1; + -webkit-transition: all 2s ease-in-out; + -moz-transition: all 2s ease-in-out; + -o-transition: all 2s ease-in-out; + -ms-transition: all 2s ease-in-out; + transition: all 2s ease-in-out; + -webkit-transform: scale(0.7,0.7); + -moz-transform: scale(0.7,0.7); + -o-transform: scale(0.7,0.7); + -ms-transform: scale(0.7,0.7); + transform: scale(0.7,0.7); + } + #issues li h1 { + + font-size: 48px; + margin: 20px 0; + color: red; + /*text-shadow: #000 1px 1px 2px;*/ + } + #issues li p { + font-size: 14px; + margin-right: 70px; + font-weight: normal; + line-height: 22px; + /* text-shadow: #000 1px 1px 2px;*/ + } + + #grad_left, + #grad_right { + width: 100px; + height: 500px; + position: absolute; + top: 0; + } + #grad_left { + left: 0; + /* background: url('timeline/grad_left.png') repeat-y;*/ + } + #grad_right { + right: 0; + /* background: url('timeline/grad_right.png') repeat-y;*/ + } + + #next, + #prev { + position: absolute; + top: 0; + font-size: 70px; + top: 170px; + width: 22px; + height: 38px; + background-position: 0 0; + background-repeat: no-repeat; + text-indent: -9999px; + overflow: hidden; + } + #next:hover, + #prev:hover { + background-position: 0 -76px; + } + #next { + right: 0; + background-image: url('timeline/next.png'); + } + #prev { + left: 0; + background-image: url('timeline/prev.png'); + } + #next.disabled, + #prev.disabled { + opacity: 0.2; + } \ No newline at end of file diff --git a/milfs/css/styletimeline.css b/milfs/css/styletimeline.css new file mode 100644 index 0000000..fdacf72 --- /dev/null +++ b/milfs/css/styletimeline.css @@ -0,0 +1,157 @@ +/* +h1,h2,h4,h5,h6 { + text-align: center; + color: #ccc; + + margin-bottom: 5px; +} + h1 { + font-size: 18px; + } + h2 { + font-size: 14px; + } + +.sociales { + text-align: center; + margin-bottom: 20px; +} +*/ + #timeline { + width: 95%; + height: 500px; + overflow: auto; + margin: 100px auto; + position: relative; + + } + #dates { + width: 100%; + height: 60px; + overflow: hidden; + background: url('timeline/dot.gif') left 45px repeat-x; + } + #dates li { + list-style: none; + float: left; + width: 100px; + height: 50px; + font-size: 24px; + text-align: center; + background: url('timeline/biggerdot.png') center bottom no-repeat; + } + #dates a { + line-height: 10px !important; + font-size: 14px !important; + padding-bottom: 10px; + color: gray !important; + text-decoration: none; + -webkit-transition: 0.5s; + -moz-transition: 0.5s; + -o-transition: 0.5s; + -ms-transition: 0.5s; + transition: 0.5s; +} + #dates a:hover, + #dates a.selected { + color: black !important; + } + #dates .selected { + font-size: 18px !important; + } + + #issues { + width: 100%; + height: 500px;*/ + overflow: hidden; + } + #issues li { + width: 100%; + height: 500px; + list-style: none; + float: left; + } + #issues li.selected img { + -webkit-transform: scale(1.1,1.1); + -moz-transform: scale(1.1,1.1); + -o-transform: scale(1.1,1.1); + -ms-transform: scale(1.1,1.1); + transform: scale(1.1,1.1); + } + #issues li img { + float: left; + margin: 10px 30px 10px 50px; + background: transparent; + -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)"; /* IE 8 */ + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF);/* IE 6 & 7 */ + zoom: 1; + -webkit-transition: all 2s ease-in-out; + -moz-transition: all 2s ease-in-out; + -o-transition: all 2s ease-in-out; + -ms-transition: all 2s ease-in-out; + transition: all 2s ease-in-out; + -webkit-transform: scale(0.7,0.7); + -moz-transform: scale(0.7,0.7); + -o-transform: scale(0.7,0.7); + -ms-transform: scale(0.7,0.7); + transform: scale(0.7,0.7); + } + #issues li h1 { + color: red; + font-size: 60px !important; + margin: 20px 0; + //text-shadow: #000 1px 1px 2px; + } + #issues li p { + font-size: 14px; + margin-right: 70px; + font-weight: normal; + line-height: 22px; + //text-shadow: #000 1px 1px 2px; + } + + #grad_left, + #grad_right { + width: 100px; + height: 500px; + position: absolute; + top: 0; + } + #grad_left { + left: 0; + /* background: url('timeline/grad_left.png') repeat-y;*/ + } + #grad_right { + right: 0; + /* background: url('timeline/grad_right.png') repeat-y; */ + } + + #next, + #prev { + position: absolute; + top: 0; + font-size: 70px; + top: 170px; + width: 22px; + height: 38px; + background-position: 0 0; + background-repeat: no-repeat; + text-indent: -9999px; + overflow: hidden; + } + #next:hover, + #prev:hover { + background-position: 0 -76px; + } + #next { + right: 0; + background-image: url('timeline/next.png'); + } + #prev { + left: 0; + background-image: url('timeline/prev.png'); + } + #next.disabled, + #prev.disabled { + opacity: 0.2; + } \ No newline at end of file diff --git a/milfs/css/timeline/biggerdot.png b/milfs/css/timeline/biggerdot.png new file mode 100644 index 0000000..66324b6 Binary files /dev/null and b/milfs/css/timeline/biggerdot.png differ diff --git a/milfs/css/timeline/buttons.gif b/milfs/css/timeline/buttons.gif new file mode 100644 index 0000000..2e464d0 Binary files /dev/null and b/milfs/css/timeline/buttons.gif differ diff --git a/milfs/css/timeline/dot.gif b/milfs/css/timeline/dot.gif new file mode 100644 index 0000000..609bda0 Binary files /dev/null and b/milfs/css/timeline/dot.gif differ diff --git a/milfs/css/timeline/grad_bottom.png b/milfs/css/timeline/grad_bottom.png new file mode 100644 index 0000000..cd2295b Binary files /dev/null and b/milfs/css/timeline/grad_bottom.png differ diff --git a/milfs/css/timeline/grad_left.png b/milfs/css/timeline/grad_left.png new file mode 100644 index 0000000..e7e3653 Binary files /dev/null and b/milfs/css/timeline/grad_left.png differ diff --git a/milfs/css/timeline/grad_right.png b/milfs/css/timeline/grad_right.png new file mode 100644 index 0000000..031dcab Binary files /dev/null and b/milfs/css/timeline/grad_right.png differ diff --git a/milfs/css/timeline/grad_top.png b/milfs/css/timeline/grad_top.png new file mode 100644 index 0000000..4e0a5da Binary files /dev/null and b/milfs/css/timeline/grad_top.png differ diff --git a/milfs/css/timeline/next.png b/milfs/css/timeline/next.png new file mode 100644 index 0000000..a5639fa Binary files /dev/null and b/milfs/css/timeline/next.png differ diff --git a/milfs/css/timeline/next_v.png b/milfs/css/timeline/next_v.png new file mode 100644 index 0000000..05e84ff Binary files /dev/null and b/milfs/css/timeline/next_v.png differ diff --git a/milfs/css/timeline/prev.png b/milfs/css/timeline/prev.png new file mode 100644 index 0000000..b4bd42d Binary files /dev/null and b/milfs/css/timeline/prev.png differ diff --git a/milfs/css/timeline/prev_v.png b/milfs/css/timeline/prev_v.png new file mode 100644 index 0000000..95b6ff8 Binary files /dev/null and b/milfs/css/timeline/prev_v.png differ diff --git a/milfs/css/timeline/toolbar.gif b/milfs/css/timeline/toolbar.gif new file mode 100644 index 0000000..e6eb2da Binary files /dev/null and b/milfs/css/timeline/toolbar.gif differ diff --git a/milfs/funciones.php b/milfs/funciones.php new file mode 100755 index 0000000..0c383f1 --- /dev/null +++ b/milfs/funciones.php @@ -0,0 +1,3648 @@ +$formulario"; + $propiedades[sounds] =""; + $propiedades[url] =''; + //$propiedades[title] ='Hola mundo'; + //$propiedades[icon][iconUrl] = "images/pin.png"; + $geometria .= "{\"type\":\"Feature\",\"geometry\":".json_encode($marcador,JSON_NUMERIC_CHECK|JSON_PRETTY_PRINT).",\"properties\":".json_encode($propiedades,JSON_NUMERIC_CHECK|JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP | JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT)."},"; + $features[] = $marcador; + + $id++; + } + */ + +} +//-75.58295 6.25578 16 + +//encode and output jsonObject +header('Content-Type: text/plain'); +//echo $consulta; + +$resultado = json_encode($features,JSON_NUMERIC_CHECK|JSON_PRETTY_PRINT); + +return $resultado; +} + + + +function mapa_ficha($id) { + + $descripcion = remplacetas('form_id','id',$id,'descripcion') ; + $nombre = remplacetas('form_id','id',$id,'nombre') ; + $id_empresa = remplacetas('form_id','id',$id,'id_empresa') ; + $id_empresa = $id_empresa[0]; + $direccion = remplacetas("empresa","id",$id_empresa,"direccion",""); + $telefono = remplacetas("empresa","id",$id_empresa,"telefono",""); + $web = remplacetas("empresa","id",$id_empresa,"web",""); + $email = remplacetas("empresa","id",$id_empresa,"email",""); + $imagen = remplacetas("empresa","id",$id_empresa,"imagen",""); + $razon_social = remplacetas("empresa","id",$id_empresa,"razon_social",""); + $slogan = remplacetas("empresa","id",$id_empresa,"slogan",""); + $imagen = ""; + $datos ="

$nombre[0]

$descripcion[0] "; + $empresa = "
$razon_social[0] | $web[0] | $direccion[0] | $email[0]
"; + + //$prueba = json_decode($prueba); + + $resultado =" +
+
$imagen
+
+
+
+

$nombre[0]

+
$descripcion[0]
+ MILFS
+$prueba +
"; + return $resultado; +} + +function formulario_parametrizacion($perfil,$accion,$div,$form){ + $respuesta = new xajaxResponse('utf-8'); +$nombre = remplacetas('form_id','id',$perfil,'nombre') ; +if($accion =='categorias') { + $resultado = " +

Categorización

$nombre[0]

+
+ + +
+ +
+ + http:// + +
+
+
+
Grabar
+
+ "; + $respuesta->addAssign($div,"innerHTML",$resultado); + $respuesta -> addScript("xajax_formulario_campos_select('$perfil','parametrizacion')"); + return $respuesta; + } + elseif($accion =='grabar'){ + if($form[tipo] =='categoria') { + $url_icon = "http://$form[icon]"; + $es_imagen = es_imagen("$url_icon"); + $altura = GetImageSize($url_icon); + $altura= $altura[1]; + if($form[id_campo] =='') { $error = "Seleccione un campo";} + elseif($form[campo_filtro] =='') { $error = "Seleccione Filtro";} + elseif(!$es_imagen ) { $error = " [ $url_icon ] no es una imagen válida para el ícono";} + elseif($altura > 150 ) { $error = " El ícono no debe tener mas de 150 pixeles de alto.";} + elseif($form[icon] =='') { + $error = "Escriba la dirección del ícono"; + } + else {$error='';} + if( $error !='') { + $respuesta -> addAlert("$error $revisar_url "); + return $respuesta; + }else{ + $categoria_icono[tabla] = "form_id"; + $categoria_icono[campo] = "$form[perfil]"; + $categoria_icono[opcion] = "$form[tipo]:icon:$form[campo_filtro]"; + $categoria_icono[descripcion] = "$url_icon"; + $categoria_icono[visible] = "1"; + $categoria_icono[accion] = "grabar"; + $grabar_icono = parametrizacion($categoria_icono); + + $categoria_campo[tabla] = "form_id"; + $categoria_campo[campo] = "$form[perfil]"; + $categoria_campo[opcion] = "$form[tipo]:campo"; + $categoria_campo[descripcion] = "$form[id_campo]"; + $categoria_campo[visible] = "1"; + $categoria_campo[accion] = "grabar"; + $grabar_campo = parametrizacion($categoria_campo); + + $categoria_filtro[tabla] = "form_id"; + $categoria_filtro[campo] = "$form[perfil]"; + $categoria_filtro[opcion] = "$form[tipo]:filtro:$form[id_campo]"; + $categoria_filtro[descripcion] = "$form[campo_filtro]"; + $categoria_filtro[visible] = "1"; + $categoria_filtro[accion] = "grabar"; + $grabar_filtro = parametrizacion($categoria_filtro); + + + $resultado =" $form[campo_filtro] $form[id_campo] ($altura ) [$grabar_icono]"; + $respuesta->addAssign($div,"innerHTML",$resultado); + return $respuesta; + } + + }/// fin de parametrizacion categorias + } + else { + $listado ="

Listado de parametrizaciones

$nombre[0]

+ + "; + $respuesta->addAssign($div,"innerHTML",$listado); + return $respuesta; + } + +$link=Conectarse(); +mysql_query("SET NAMES 'utf8'"); +$consulta = " + SELECT md5(binary contenido) as md5_contenido, contenido FROM form_datos + WHERE form_id = '$perfil' + AND id_campo = '$campo' + GROUP BY contenido + ORDER BY contenido asc"; +$sql=mysql_query($consulta,$link); +if (mysql_num_rows($sql)!='0'){ +$resultado = " + "; + } +else{$resultado = 'nada';} + +if($div !="") { +$respuesta->addAssign($div,"innerHTML",$resultado); +return $respuesta; + }else{return $resultado;} + + } +$xajax->registerFunction("formulario_parametrizacion"); + +function lista_categorias($perfil,$categoria,$tipo) { + +$link=Conectarse(); +mysql_query("SET NAMES 'utf8'"); + $categoria_campo = remplacetas('parametrizacion','campo',$perfil,'descripcion'," tabla='form_id' and opcion = 'categoria:campo'") ; + $categoria_campo = $categoria_campo[0]; +$consulta = " + SELECT md5(binary contenido) as md5_contenido, contenido FROM form_datos + WHERE form_id = '$perfil' + AND id_campo = '$categoria_campo' + GROUP BY contenido + ORDER BY contenido asc"; +/* + $consulta = " + SELECT opcion, GROUP_CONCAT(descripcion ORDER by id desc ) as data FROM `parametrizacion` WHERE `tabla` LIKE 'form_id' AND `campo` LIKE '$perfil' AND `opcion` LIKE 'categoria:icon:%%' group by descripcion + "; + */ + /* + $categoria_filtro = remplacetas('parametrizacion','campo',$id,'descripcion',"tabla='form_id' and opcion = 'categoria:filtro:$row[id_campo]'") ; + $filtro = $categoria_filtro; + $categoria_filtro = $categoria_filtro[0]; + $icono = remplacetas('parametrizacion','campo',$id,'descripcion'," tabla='form_id' and opcion = 'categoria:icon:$md5_contenido'") ; + if($icono[0] =='') { + $icon = "http://$_SERVER[HTTP_HOST]/milfs/images/pin.png "; + }else{ + + $icon = $icono[0]; + } + $icono = "$icon"; + */ +$sql=mysql_query($consulta,$link); +if (mysql_num_rows($sql)!='0'){ +$resultado = ""; + } +else{$resultado = 'nada';} + +return $resultado; +} + +function imprime_geojson($id,$id2){ + $id_form = mysql_seguridad($id); + $id_form2 = mysql_seguridad($id2); + $campo = buscar_campo_tipo($id_form,"14"); + $campo2 = buscar_campo_tipo($id_form2,"14"); + $id_campo = $campo[0]; + $id_campo2 = $campo2[0]; + if($id_form2 !=""){$w_id2 =" OR form_id = '$id_form2'"; $or_2 ="or id_campo = '$id_campo2'";} + +$link=Conectarse(); + + $consulta = "SELECT form_id as id, control, GROUP_CONCAT(contenido ORDER by timestamp desc ) as data + FROM `form_datos` + WHERE (form_id = '$id_form' $w_id2 ) + AND ( id_campo ='$id_campo' $or_2 ) + group by control + ORDER BY orden desc"; + + + mysql_query("SET NAMES 'UTF8'"); + $sql = mysql_query($consulta,$link) or die("error al ejecutar consulta "); + if (mysql_num_rows($sql)!='0'){ + $id = 1; + $features = array(); + +while( $row = mysql_fetch_array( $sql ) ) { + $marcador = array(); + $propiedades = array(); + $identificador = explode(',',$row[data]); + $identificador = $identificador[0]; + $campos = explode(" ",$identificador); + $lat = $campos[0]; + $lon = $campos[1]; + $zoom = $campos[2]; + $formulario = formulario_imprimir($row[id],$row[control],'full'); + + $marcador["type"] = "Point"; + $marcador["coordinates"] = array($lat,$lon); + $propiedades = formulario_imprimir_linea($row[id],$row[control],"array");// + //$propiedades[description] ="HOLA MUNDO"; + $propiedades[description] ="
$formulario
"; + $propiedades[sounds] =""; + $propiedades[url] =''; + //$propiedades[title] ='Hola mundo'; + //$propiedades[icon][iconUrl] = "images/pin.png"; + $geometria .= "{\"type\":\"Feature\",\"geometry\":".json_encode($marcador,JSON_NUMERIC_CHECK|JSON_PRETTY_PRINT).",\"properties\":".json_encode($propiedades,JSON_NUMERIC_CHECK|JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP | JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT)."},"; + $features[] = $marcador; + + $id++; + } + +} +//-75.58295 6.25578 16 + +//encode and output jsonObject +header('Content-Type: text/plain'); +//echo $consulta; +$resultado = " { \"type\": \"FeatureCollection\", + \"features\": "; +$resultado .= json_encode($features,JSON_NUMERIC_CHECK|JSON_PRETTY_PRINT); +$resultado .= "}"; +//echo $resultado; +$geometria = substr("$geometria",0,-1); +$geometria = "{ + \"type\": \"FeatureCollection\", + \"features\": [$geometria ]}"; +return $geometria; +} + + +function aplicacion_presentacion($id,$div,$timeout){ + if($timeout < '1000') {$timeout =5000;}; + $respuesta = new xajaxResponse('utf-8'); +$consulta ="SELECT * FROM form_datos WHERE form_id = '$id' ORDER BY rand() limit 1 "; +$link=Conectarse(); +$sql=mysql_query($consulta,$link); +if (mysql_num_rows($sql)!='0'){ +$control = mysql_result($sql,0,control); +$impresion = formulario_imprimir("$id","$control",""); + + } +$siguiente = "SIGUIENTE"; +if($div ==''){ + $presentacion = "
$siguiente $impresion
"; + }else{ + //$respuesta->addAlert("$consulta"); + $respuesta->addScript("setTimeout(function(){xajax_aplicacion_presentacion('$id','presentacion_$id','$timeout')},$timeout)"); + $respuesta->addAssign("$div","innerHTML","$siguiente $impresion"); + return $respuesta; + } +return " $presentacion"; + + +} +$xajax->registerFunction("aplicacion_presentacion"); + +function aplicaciones_listado($id_form,$tipo){ + +// if($id_empresa !=''){ $_empresa = " ";} + //if($tipo =='publico'){ $w_publico =" publico ='0'";}else {$w_publico =" publico ='1'";} + if($id_form !="") {$w_form = " AND id = '$id_form'";} + $w_publico =" publico ='1'"; +$link=Conectarse(); +mysql_query("SET NAMES 'utf8'"); +$consulta = "SELECT * FROM form_id WHERE $w_publico $w_form ORDER BY orden asc "; +mysql_real_escape_string($consulta); +$sql=mysql_query($consulta,$link); + + +if (mysql_num_rows($sql)!='0'){ + mysql_data_seek($sql, 0); + $resultado_li .= "