From 14a79cb75b5ed7e309c1fd758245c97db381a90f Mon Sep 17 00:00:00 2001 From: h4ckypurpl3 Date: Sat, 13 Oct 2018 23:25:33 -0500 Subject: [PATCH] organizando media qweryes color de la imagen de los proyectos submodulo --- css/style.css | 517 +++++++++++++++++++++------------------- funciones/funciones.php | 248 +++++++++++++++++-- index.php | 217 +++++++---------- 3 files changed, 581 insertions(+), 401 deletions(-) diff --git a/css/style.css b/css/style.css index 15e27b5..ccb85ff 100644 --- a/css/style.css +++ b/css/style.css @@ -1,5 +1,5 @@ body { - overflow-x:hidden !important; + overflow-x: hidden !important; font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.42857143; @@ -13,48 +13,67 @@ h1, h2, h3, h4, h5, h6 { font-weight: 500; line-height: 1.1; } -#toc{ + +#toc { font-size: 1em; padding-top: 50px; - max-height:95% !important; - overflow:auto !important; - + max-height: 95% !important; + overflow: auto !important; } .top { opacity: 1; } + .navbar-inverse { - background-color: #222; - border-color: #090909; + background-color: #222; + border-color: #090909; } -.navbar-inverse .navbar-nav > li > a { - color: #9d9d9d; + +.navbar-inverse .navbar-nav>li>a { + color: #9d9d9d; } + .navbar-inverse .navbar-nav>li>a:hover, .navbar-inverse .navbar-nav>li>a:focus { - background: #fb4f59; + background: #fb4f59; } + .navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form { - border-color: #101010; + border-color: #101010; } - - -#contenedor_cabecera{ - padding-top: 17em; - +#contenedor_cabecera { + padding-top: 0em; } -#titulo_cabecera a{ +#logo_cabecera { + max-width: 80% !important; + margin: 0 auto; +} + +#titulo_cabecera a { color: lightgrey !important; text-transform: uppercase; } + +#slogan_cabecera { + font-size: 2em; + text-shadow: 0px 2px 3px rgba(0, 0, 0, 0.4); + margin-left: 5em; + margin-right: 5em; +} + #menu_tupale { - height: 500px; - overflow: auto; + height: 500px; + overflow: auto; +} + +#div_panel_aplicaciones { + padding-top: 21em; } /*NAVBAR BRAND*/ + .navbar-brand { transform: translateX(-50%); left: 50%; @@ -65,110 +84,101 @@ h1, h2, h3, h4, h5, h6 { display: block; } -.image_mobile{ +.image_mobile { display: none !important; } /*logo barra navegacion*/ -.navbar-brand img{ -width: 15em; -height: auto; -margin-top: 100px; -transition: all 1.3s ease; +.navbar-brand img { + width: 15em; + height: auto; + margin-top: 100px; + transition: all 1.3s ease; } /* textos menú*/ -#navbar-principal { - font-size: 18px; - padding-bottom: 2em !important; - padding-top: 2em !important; - transition: all 0.3s ease; - } - +#navbar-principal { + font-size: 18px; + padding-bottom: 2em !important; + padding-top: 2em !important; + transition: all 0.3s ease; +} .navbar.shrink { min-height: 35px; } +#navbar-principal.shrink { + font-size: 18px; + padding-bottom: 1em !important; + padding-top: 1em !important; +} -#navbar-principal.shrink { - font-size: 18px; - padding-bottom: 1em !important; - padding-top: 1em !important; - } - - .navbar.shrink img { - width: 5em; - height: auto; - transition: all 1.3s ease; - margin: 0px; - } +.navbar.shrink img { + width: 5em; + height: auto; + transition: all 1.3s ease; + margin: 0px; +} .navbar.shrink .navbar-toggle { - margin: 8px 15px 8px 0; - padding: 7px 8px; - } + margin: 8px 15px 8px 0; + padding: 7px 8px; +} .navbar-toggle { margin: 13px 15px 13px 0; padding: 4px 5px; - } .btn-botonera-admin { - margin-left: 20px; - margin-right: 20px; + margin-left: 20px; + margin-right: 20px; } - -#botonera-admin, -#botonera-admin>a { - color: white !important; +#botonera-admin, #botonera-admin>a { + color: white !important; } .btn-botonera-admin { - /* margin-left: 20px; */ - /* margin-right: 20px; */ - float: left; + /* margin-left: 20px; */ + /* margin-right: 20px; */ + float: left; } .btn-botonera-admin:hover { - background-color: black; + background-color: black; } .btn.btn-botonera-admin:hover { - color: white !important; + color: white !important; } .intro-social-buttons { - padding-top: 10px !important; + padding-top: 10px !important; } #botonera_landing { - display: inline-flex; + display: inline-flex; } .boton_land { - margin-left: 3px !important; + margin-left: 3px !important; } .cabecera { - padding-bottom: 30px; - padding-left: 80px !important; + padding-bottom: 30px; + padding-left: 80px !important; } -#logo_cabecera { - max-width: 80% !important; - margin: 0 auto; -} + #encabezado_proyecto { - padding-top: 30px; + padding-top: 30px; } - /*PROYECTOS*/ /* @media (max-width: 767px){ @@ -181,8 +191,7 @@ transition: all 1.3s ease; background-color: #d4d4d4; } - -.div_proyecto{ +.div_proyecto { display: inline-block; position: relative; margin: 10px; @@ -192,32 +201,36 @@ transition: all 1.3s ease; width: 14em; } -.img-gris{ +.img-gris { position: absolute; top: 50%; - left: 50%; - transform: translate(-50%, -50%); - -webkit-filter: grayscale(100%) blur(3px) ; + left: 50%; + transform: translate(-50%, -50%); + -webkit-filter: grayscale(100%) blur(3px); max-height: 14em; max-width: 14em; - z-index:10; - transition:filter 0.2s; - -webkit-transition:-webkit-filter 1s; -} -.img-gris:hover{ -filter: grayscale(0); - z-index: 11; --webkit-filter: grayscale(0); + z-index: 10; + transition: filter 0.2s; + -webkit-transition: -webkit-filter 1s; } -.proyecto_titulo{ - position: absolute; - top:100px; - color:#fff; - background-color:#000; - padding:2px ; - opacity:0.5; - font-weight:bold; width:190px; z-index:20; word-wrap: break-word; +.img-gris:hover { + filter: grayscale(0); + z-index: 11; + -webkit-filter: grayscale(0); +} + +.proyecto_titulo { + position: absolute; + top: 100px; + color: #fff; + background-color: #000; + padding: 2px; + opacity: 0.5; + font-weight: bold; + width: 190px; + z-index: 20; + word-wrap: break-word; } /*fin proyectos*/ @@ -225,307 +238,309 @@ filter: grayscale(0); /*Panel Editor*/ .thumbnail { - height: 100% !important; - overflow-y: auto; - overflow-x: hidden; - padding: 0px 0px 70px 0px;; - border:none; + height: 100% !important; + overflow-y: auto; + overflow-x: hidden; + padding: 0px 0px 70px 0px; + ; + border: none; } .box-secciones { -/* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); + /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); transition: all 0.3s cubic-bezier(.25, .8, .25, 1);*/ - border-radius: 0px !important; - padding: 50px; - border-bottom: 1px solid lightgrey; + border-radius: 0px !important; + padding: 50px; + border-bottom: 1px solid lightgrey; } .box-secciones:hover { - box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22); + box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22); } .img-secciones { - max-height: 250px; + max-height: 250px; } #buscador_centro { - display: inline-flex; + display: inline-flex; } #buscador_blog { - display: inline-flex !important; + display: inline-flex !important; } -#fh5co-footer{ -display: inline-block; +#fh5co-footer { + display: inline-block; } - - - /* nube de etiquetas */ div.etiquetas { - /* font-family: verdana,arial,helvetica; + /* font-family: verdana,arial,helvetica; font-size:8pt; */ - padding: 5px; + padding: 5px; } div.etiquetas span { - float: left; - margin: 0 3px 0 3px; - height: 20pt; - white-space: nowrap; + float: left; + margin: 0 3px 0 3px; + height: 20pt; + white-space: nowrap; } span.etiquetatam1 { - font-size: 110%; + font-size: 110%; } span.etiquetatam2 { - font-size: 120%; + font-size: 120%; } span.etiquetatam3 { - font-size: 130%; + font-size: 130%; } span.etiquetatam4 { - font-size: 140%; + font-size: 140%; } span.etiquetatam5 { - font-size: 150%; + font-size: 150%; } span.etiquetatam6 { - font-size: 160%; + font-size: 160%; } span.etiquetatam7 { - font-size: 170%; + font-size: 170%; } span.etiquetatam8 { - font-size: 180%; + font-size: 180%; } span.etiquetatam9 { - font-size: 250%; + font-size: 250%; } span.etiquetatam10 { - font-size: 300%; + font-size: 300%; } - - - - - /* nube de etiquetas */ .drop-up { - top: auto; - bottom: 100% !important; - - overflow: visible; + top: auto; + bottom: 100% !important; + overflow: visible; } .dropdown-menu { - min-width: 300px; - padding: 3px; - z-index: 99999; + min-width: 300px; + padding: 3px; + z-index: 99999; } .navbar .navbar-nav { - display: inline-block; - float: none; + display: inline-block; + float: none; } .navbar .navbar-collapse .navbar-principal { - text-align: center; - height: 30px; - margin-top: -13px; + text-align: center; + height: 30px; + margin-top: -13px; } -.navbar-principal>li>a, -{ - padding-top: 0px !important; - padding-bottom: 0 !important; - height: 30px; - margin-top: -13px; +.navbar-principal>li>a, { + padding-top: 0px !important; + padding-bottom: 0 !important; + height: 30px; + margin-top: -13px; } .navbar-principal { - min-height: 30px !important; + min-height: 30px !important; } - - - .topnav { - width: 100px !important; - display: inline; - height: 30px; - padding-bottom: 0 !important; - height: 30px; - background: none; - border: 0px; - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; + width: 100px !important; + display: inline; + height: 30px; + padding-bottom: 0 !important; + height: 30px; + background: none; + border: 0px; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; } - - - - - - - /*width:80px; background: none; border:0px; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; */ @media all { - div.saltopagina { - display: none; - } + div.saltopagina { + display: none; + } } @media print { - div.saltopagina { - display: block; - page-break-before: always; - } - div.noprint { - display: none; - } + div.saltopagina { + display: block; + page-break-before: always; + } + div.noprint { + display: none; + } } - -.modal-dialog { - width: 95% !important; - height: auto; - padding: 0; +< !-- ESTILOS PRIORITARIOS -->.modal-dialog { + width: 95% !important; + height: auto; + padding: 0; } .modal-lg { - width: 98% !important; - height: auto; - - padding: 0; + width: 98% !important; + height: auto; + padding: 0; } .modal-xs { - width: 40% !important; - height: auto; - - padding: 0; + width: 40% !important; + height: auto; + padding: 0; } .modal-content { - height: auto; + height: auto; } .modal-body { - max-height: calc(100vh - 300px); - min-height: calc(100vh - 300px); - overflow-y: auto; + max-height: calc(100vh - 300px); + min-height: calc(100vh - 300px); + overflow-y: auto; } fieldset.fieldset-borde { - border: 2px solid #EDEDED !important; - border-radius: 3px; - padding: 0 1.4em 1.4em 1.4em !important; - margin: 0 0 1.5em 0 !important; - -webkit-box-shadow: 0px 0px 0px 0px #000; - box-shadow: 0px 0px 0px 0px #000; + border: 2px solid #EDEDED !important; + border-radius: 3px; + padding: 0 1.4em 1.4em 1.4em !important; + margin: 0 0 1.5em 0 !important; + -webkit-box-shadow: 0px 0px 0px 0px #000; + box-shadow: 0px 0px 0px 0px #000; } legend.legend-area { - font-size: 1.2em !important; - font-weight: bold !important; - text-align: left !important; - width: auto; - padding: 0 10px; - border-bottom: none; + font-size: 1.2em !important; + font-weight: bold !important; + text-align: left !important; + width: auto; + padding: 0 10px; + border-bottom: none; } .fh5co-post-entry article h2 { - font-size: 28px; - !important; + font-size: 28px; + !important; } #fh5co-offcanvas .fh5co-bio img { - border-radius: 10px !important; + border-radius: 10px !important; } fieldset.fieldset-borde { - border: 2px solid #EDEDED !important; - border-radius: 3px; - padding: 0 1.4em 1.4em 1.4em !important; - margin: 0 0 1.5em 0 !important; - -webkit-box-shadow: 0px 0px 0px 0px #000; - box-shadow: 0px 0px 0px 0px #000; + border: 2px solid #EDEDED !important; + border-radius: 3px; + padding: 0 1.4em 1.4em 1.4em !important; + margin: 0 0 1.5em 0 !important; + -webkit-box-shadow: 0px 0px 0px 0px #000; + box-shadow: 0px 0px 0px 0px #000; } legend.legend-area { - font-size: 1.2em !important; - font-weight: bold !important; - text-align: left !important; - width: auto; - padding: 0 10px; - border-bottom: none; + font-size: 1.2em !important; + font-weight: bold !important; + text-align: left !important; + width: auto; + padding: 0 10px; + border-bottom: none; } + /* RESPONSIVE */ -@media (min-width: 767px){ -#slogan_cabecera{ - font-size: 2em; - text-shadow: 0px 2px 3px rgba(0,0,0,0.4); - margin-left: 5em; - margin-right: 5em; -} -#cabecera{ - margin-left: 20px; - margin-right: 20px; -} +/*Se afectan todos hacia arriba*/ + +@media (min-width: 767px) { + #cabecera { + margin-left: 20px; + margin-right: 20px; + } } @media only screen and (max-width: 1200px) { -#logo_cabecera{ - padding-top: 3em; + #logo_cabecera { + padding-top: 3em; + } + + #div_panel_aplicaciones{ + padding-top: 23em; + } + + .img-gris { + filter: grayscale(0); + } } +@media only screen and (max-width: 992px) { +#slogan_cabecera{ + margin: 0em !important; +} } @media only screen and (max-width: 767px) { -.navbar-header{ - margin: 0px !important; -} -#logo_cabecera { + .navbar-header { + margin: 0px !important; + float: left; + } + #slogan_cabecera{ + font-size: 1.5em; + } + #logo_cabecera { padding-top: 0em; + } + #div_panel_aplicaciones { + padding-top: 21em; + } + } @media only screen and (max-width: 586px) { - #contenedor_cabecera{ - padding-top: 18em; + #contenedor_cabecera { + padding-top: 0em; } - - -} - -@media only screen and (max-width: 411px) { - #contenedor_cabecera{ - padding-top: 13em; + #div_panel_aplicaciones { + padding-top: 15em; } - #principal_general{ + #logo_cabecera { + max-width: 65% !important; + } + #principal_general { padding-left: 2em; } } + +@media only screen and (max-width: 411px) { + #contenedor_cabecera { + padding-top: 0em; + } + +} diff --git a/funciones/funciones.php b/funciones/funciones.php index 1c9cf47..3d47616 100644 --- a/funciones/funciones.php +++ b/funciones/funciones.php @@ -4142,18 +4142,18 @@ $resultado= " } if($div =="") { $cambiar_empresa = cambiar_empresa($_SESSION['id'],''); + if($_SESSION['grupo']=='3'){$desadministrador ="";}else{$desadministrador ="Des-administrador";} $boton="
$cambiar_empresa
$_SESSION[username] $_SESSION[equipo] Salir -
"; +
"; $resultado="$boton"; return $resultado; }else { @@ -4595,7 +4595,7 @@ $asunto= "Recibiste un mensaje en [$portal_sigla] "; -if(isset($_SESSION['usuario_milfs']) OR $_SESSION['id'] !="") { +if($_SESSION['id'] !="") { if($_SESSION["id"] !="") { $usuario="MILF-$_SESSION[id]";}else{ $usuario = "$_SESSION[control_usuario_milfs]"; } $existe = contar_interacciones("$identificador","$accion","$usuario"); @@ -4631,17 +4631,20 @@ $formato=" } else{ - require ("./milfs/includes/parametrizacion.php"); +// require ("./milfs/includes/parametrizacion.php"); /// SI EL USUARIO NO ESTA LOGUEADO -$login = milfs_session("$login_formulario","$login_campo_usuario","$login_campo_password","boton","","div_interacciones"); +//$login = milfs_session("$login_formulario","$login_campo_usuario","$login_campo_password","boton","","div_interacciones"); +$login = revisar_ingreso(''); $formato ="

Por favor ingresa para $accion

+
$login
+
"; @@ -4670,6 +4673,218 @@ $formato =" } $xajax->registerFunction("interaccion_identificador"); + +function revisar_ingreso($formulario){ + $recordar=""; + $sucursal=""; + $resultado=""; + $formulario = mysql_seguridad($formulario); + if($formulario =="") { + $formulario =" +
+
+ +
+ + +
+ + + + + + +
+ + +
+ +
+
+ +
+
+ "; +$resultado = " +
+ $formulario + +
+ +
+ +
+
+ ¿Nuevo usuario? + +
+
+
+
+
+ "; +if(!isset($_SESSION['id'])){ print $resultado; }else { + +//print $nuevo ; +} +return $resultado; + } + include("milfs/includes/datos.php"); + if(!isset($tabla_autenticacion)){ + include("includes/datos.php"); + } + $div='contenido'; + $respuesta = new xajaxResponse('utf-8'); + + $email = $formulario['email']; + $recordar = @$formulario['recordar']; + + + if($email =='') { + + $respuesta->addAlert("Ingresa tu nombre de usuario o email"); + return $respuesta; + } + if($formulario['password'] =='' AND $recordar =='') { + + $respuesta->addAlert("Ingresa tu clave"); + return $respuesta; + } + $password= MD5($formulario['password']); + $link=Conectarse(); + mysqli_set_charset($link, "utf8"); + + if($recordar =='1') +{ +if($email =='') + { +$tipo='danger'; +$mensaje ="Por favor escribe tu correo o usuario si olvidaste tu clave."; + $respuesta->addAssign($div,"innerHTML",$mensaje); + return $respuesta; + }else + { +$consulta = "SELECT id,email,control,id_empresa FROM $tabla_autenticacion WHERE (email = '$email' OR username = '$email' )"; + $sql=mysqli_query($link,$consulta); + +if (mysqli_num_rows($sql)!='0') + { +$firma_recuperacion = sha1("$control".mktime().""); +$correo = mysqli_result($sql,0,"email"); +$control = mysqli_result($sql,0,"control"); +$id_usuario = mysqli_result($sql,0,"id"); +$id_empresa = mysqli_result($sql,0,"id_empresa"); + +$firma ="UPDATE $tabla_autenticacion SET `firma_recuperacion` = '$firma_recuperacion' WHERE $tabla_autenticacion.`id` = '$id_usuario';"; +$cambiar_firma=mysqli_query($link,$firma); +$tipo='success'; + + $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",""); + +$headers = "MIME-Version: 1.0\r\n"; +$headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; +$headers .= "From: $razon_social[0] <$email[0]>\r\n"; +$headers .= "Reply-To: $email[0]\r\n"; +$headers .= "Return-path: $email[0]\r\n"; + +$asunto= "Cambio de clave"; +$cuerpo =" +$razon_social[0] +
+

$razon_social[0]

+ +
+

Se ha solicitado un cambio de clave para tu usuario.
+Si fuiste tu quien lo solicitó, sigue este enlace para realizar el cambio.

+http://$_SERVER[HTTP_HOST]/milfs/index.php?change=$firma_recuperacion + +

Si no solicitaste el cambio, por favor comunícalo respondiendo este correo.

+
+ + "; + $mensaje =" Enviamos un correo con la confirmación a $correo"; + mail("$correo","$asunto","$cuerpo","$headers") ; + }else + { +$tipo='danger'; +$mensaje ="El correo o usuario no se encuentra registrado."; + } + } + $resultado ="
$mensaje
"; + $respuesta->addAssign($div,"innerHTML",$resultado); + + return $respuesta; +} + +//$consulta = "SELECT * FROM $tabla_autenticacion WHERE (email = '$email' OR username = '$email' )AND passwd = '$password' LIMIT 1"; +$consulta= "SELECT *, $tabla_autenticacion.id AS id_usuario + FROM $tabla_autenticacion, usuarios_grupo + WHERE (email = '$email' OR username = '$email' )AND passwd = '$password' + AND $tabla_autenticacion.id_grupo = usuarios_grupo.id + LIMIT 1"; + //$respuesta->addAssign("login_info","innerHTML",$consulta); + //return $respuesta; + $sql=mysqli_query($link,$consulta); + if($sql){ + if (mysqli_num_rows($sql)!='0'){ + if(mysqli_result($sql,0,"status") === '0' ) { + $resultado = " +
+ Aún no se ha confirmado tu email, por favor revisa tu correo

+
"; + //$div ="login_ok"; + + } + else { + //session_destroy(); + $_SESSION = array(); + $_SESSION['username']= mysqli_result($sql,0,"username"); + $_SESSION['id']= mysqli_result($sql,0,"id_usuario"); + $_SESSION['grupo']= mysqli_result($sql,0,"id_grupo"); + $_SESSION['equipo']= mysqli_result($sql,0,"equipo"); + $_SESSION['tabla_autenticacion']= "$tabla_autenticacion"; + $_SESSION['prioridad'] = mysqli_result($sql,0,"prioridad"); + $_SESSION['id_empresa']= mysqli_result($sql,0,"id_empresa"); + + $_SESSION[$usuarios_sesion]= "$usuarios_sesion"; + $_SESSION['site']= "$url"; + $_SESSION['consulta']= "$consulta"; + + $div = "div_login"; + + $resultado .=" + $sucursal + +

Hola $_SESSION[username]

"; + //$url=urlencode('../index.php'); + //$respuesta->addRedirect("$_SESSION[site]"); + $respuesta->addScript("window.location=''"); + // $respuesta->addAssign($div,"innerHTML",$resultado); + //header("Location: ../"); + //return; + } + }}else{ + $resultado = " +
+ Los datos no son correctos, por favor rectifica o ponte en contacto con el administrador para mas información.

+

Intentar de nuevo

+
"; + } + $respuesta->addAssign($div,"innerHTML",$resultado); + return $respuesta; + } + +$xajax->registerFunction("revisar_ingreso"); + + function eliminar_identificador($identificador,$accion,$formulario) { $respuesta = new xajaxResponse('utf-8'); $div="eliminar_$identificador"; @@ -5583,14 +5798,12 @@ while( $row = mysqli_fetch_array( $sql ) ) { } $i++; if($row['imagen'] !="") { - $logo="$row[razon_social]"; + $logo="$row[razon_social]"; } else { $logo_empresa = remplacetas('empresa','id',"1",'imagen',''); //$logo="$row[razon_social]"; - $logo="$row[razon_social]"; + $logo="$row[razon_social]"; } // $slogan= substr($row[slogan],0, $length = 100).""; $slogan = $row['slogan']; @@ -11180,7 +11393,7 @@ function json($datos){ $publico = "AND form_id.id_empresa = '$_SESSION[id_empresa]'"; $w_publico = "WHERE form_id.id_empresa = '$_SESSION[id_empresa]' "; } - $datos = mysql_seguridad($datos); + //$datos = mysql_seguridad($datos); $link=Conectarse(); mysqli_set_charset($link, "utf8"); if($datos["id"] !=''){ @@ -11231,8 +11444,7 @@ mysqli_set_charset($link, "utf8"); - } - + }else{} if($datos["tipo"] == "array" ) { $resultado = $features; @@ -11297,7 +11509,7 @@ mysqli_set_charset($link, "utf8"); } -$sql = mysqli_query($link,$consulta) or die("Error al ejecutar consulta 04 "); +$sql = mysqli_query($link,$consulta) or die("Error al ejecutar consulta 04 $consulta"); if (mysqli_num_rows($sql)!='0'){ $i = 1; $features = array(); @@ -15444,7 +15656,7 @@ $multiple=mysqli_result($sql,0,"multiple"); } $exif="&exif"; } -if($zoom =="") { $zoom="12";} +if($zoom =="") { $zoom="5";} $render .= "
@@ -17340,8 +17552,8 @@ function parametrizacion($array) { function registro_express($formulario,$accion) { //$formulario = mysql_seguridad($formulario); - require("includes/datos.php"); - require ("includes/parametrizacion.php"); +// require("includes/datos.php"); + include ("includes/parametrizacion.php"); //if($nombre_formulario =="") {$nombre_formulario = "login";} $nombre_formulario = "login"; @@ -18340,8 +18552,8 @@ function cmp($a, $b) {//Ordenar los numeros descendientemente } -function holamundo() { - +function holamundo($div) { +if($div ==""){ return "Hola mundo";} $respuesta = new xajaxResponse('utf-8'); //$respuesta->addAssign("mensaje_$control","innerHTML",""); $respuesta->addAlert("Hola mundo!"); diff --git a/index.php b/index.php index 37d0cb5..0faec6e 100644 --- a/index.php +++ b/index.php @@ -1,61 +1,33 @@ processRequests(); +$xajax->processRequests(); $embebido =0; if (isset($_REQUEST['form'])) { - $form = $_REQUEST['form']; - $opciones["formato"]= $_REQUEST['formato']; -} else { - $form = ""; -} - if ($form !='') { - $embebido = 1; - } -if (isset($_REQUEST['identificador'])) { - $identificador = $_REQUEST['identificador']; -} else { - $identificador = ""; -} - if ($identificador !='') { - $embebido = 1; - } -if (isset($_REQUEST['id'])) { - $id = $_REQUEST['id']; -} else { - $id = ""; -} -if (isset($_REQUEST['campo'])) { - $campo = $_REQUEST['campo']; -} else { - $campo = ""; -} -if (isset($_REQUEST['consulta'])) { - $consulta = $_REQUEST['consulta']; -} else { - $consulta = ""; -} -if (isset($_REQUEST['t'])) { - $t = $_REQUEST['t']; -} else { - $t = ""; -} + $form = $_REQUEST['form']; + $opciones["formato"]= $_REQUEST['formato']; + } else {$form = "";} + if($form !='') {$embebido = 1;} +if (isset($_REQUEST['identificador'])) {$identificador = $_REQUEST['identificador'];} else {$identificador = "";} + if($identificador !='') {$embebido = 1;} +if (isset($_REQUEST['id'])) {$id = $_REQUEST['id'];} else {$id = "";} +if (isset($_REQUEST['campo'])) {$campo = $_REQUEST['campo'];} else {$campo = "";} +if (isset($_REQUEST['consulta'])) {$consulta = $_REQUEST['consulta'];} else {$consulta = "";} +if (isset($_REQUEST['t'])) {$t = $_REQUEST['t'];} else {$t = "";} ?> @@ -65,20 +37,20 @@ if (isset($_REQUEST['t'])) { - - printJavascript("xajax/"); + + printJavascript("xajax/"); // $xajax->debugOn(); - //$xajax->statusMessagesOn(); + //$xajax->statusMessagesOn(); ?> - "; - } else { - //echo ""; - } ?> + "; + }else{ + //echo ""; + } ?> @@ -87,7 +59,7 @@ if (isset($_REQUEST['t'])) { @@ -95,25 +67,19 @@ if (isset($_REQUEST['t'])) { xajax_formulario_listado('','contenido','$id')"; - } elseif ($campo !='') { - $onload =""; - } elseif ($consulta !='') { - $onload =""; - } else { - } - - if (isset($_REQUEST['psi'])) { - $onload =""; - } + if($id !=''){$onload ="";} + elseif($campo !=''){$onload ="";} + elseif($consulta !=''){$onload ="";} + else{} + + if( isset($_REQUEST['psi'])){$onload ="";} ?> - + @@ -123,7 +89,7 @@ if (isset($_REQUEST['t'])) { - + @@ -134,7 +100,7 @@ if (isset($_REQUEST['t'])) { - + @@ -143,7 +109,7 @@ if (isset($_REQUEST['t'])) { - + @@ -156,11 +122,11 @@ if (isset($_REQUEST['t'])) { +