From 39ebe3efc195ad899f9a240c1675b54474590a67 Mon Sep 17 00:00:00 2001 From: h4ckypurpl3 Date: Fri, 12 Oct 2018 16:20:36 -0500 Subject: [PATCH 1/9] ultimos cambios --- css/style.css | 35 +++++++++++++++++++++-------------- funciones/funciones.php | 6 +++--- 2 files changed, 24 insertions(+), 17 deletions(-) diff --git a/css/style.css b/css/style.css index 17b16dc..5fa73a2 100644 --- a/css/style.css +++ b/css/style.css @@ -43,9 +43,6 @@ h1, h2, h3, h4, h5, h6 { overflow: auto; } -#cabecera-botonera-admin { - background-color: #777677; -} #ingreso_usuario{ color: white !important; padding-top: 10px; @@ -80,26 +77,26 @@ transition: all 1.3s ease; /* textos menú*/ -.navbar a { +#navbar-principal { font-size: 18px; - padding-bottom: 40px !important; - padding-top: 40px !important; + padding-bottom: 30px !important; + padding-top: 30px !important; transition: all 0.3s ease; } -.navbar.shrink { +.nabvar.shrink { min-height: 35px; } -.navbar.shrink a { +#navbar-principal.shrink { font-size: 18px; - padding-bottom: 18px !important; - padding-top: 20px !important; + padding-bottom: 10px !important; + padding-top: 10px !important; } - .navbar.shrink img { +.navbar.shrink img { width: 5em; height: auto; transition: all 1.3s ease; @@ -118,9 +115,8 @@ transition: all 1.3s ease; } .btn-botonera-admin { - margin-left: 20px; + /* margin-left: 20px; */ margin-right: 20px; - border-left: 1px solid white; } @@ -480,10 +476,18 @@ legend.legend-area { /* RESPONSIVE */ +@media (max-width: 360px){ + #contenedor_cabecera{ +padding-top: 10em; + +} + + @media (max-width: 767px){ .box { display: table !important; } + } @media (min-width: 767px){ @@ -494,9 +498,12 @@ RESPONSIVE */ margin-right: 5em; } #contenedor_cabecera{ - padding-top: 15em; + padding-top: 20em; padding-bottom: 3em; } +#logo_cabecera{ + padding-top: 30px; +} #cabecera{ margin-left: 20px; diff --git a/funciones/funciones.php b/funciones/funciones.php index 253256c..f50d0ce 100644 --- a/funciones/funciones.php +++ b/funciones/funciones.php @@ -4149,12 +4149,12 @@ $boton="
Editor
$desadministrador - +
$_SESSION[username] $_SESSION[equipo] Salir -
"; +
"; $resultado="$boton"; return $resultado; }else { @@ -4854,7 +4854,7 @@ $consulta= "SELECT *, $tabla_autenticacion.id AS id_usuario $_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"; From 4c8b84eaa83e1d767064af14c610472c18772117 Mon Sep 17 00:00:00 2001 From: h4ckypurpl3 Date: Sat, 13 Oct 2018 02:23:51 -0500 Subject: [PATCH 2/9] =?UTF-8?q?ajustes=20de=20boton=20de=20navegaci=C3=B3n?= =?UTF-8?q?=20para=20mobiles=20y=20comportamiento=20de=20los=20menus=20des?= =?UTF-8?q?plegables=20submodulo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/style.css | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/css/style.css b/css/style.css index 5fa73a2..56a18df 100644 --- a/css/style.css +++ b/css/style.css @@ -43,6 +43,9 @@ h1, h2, h3, h4, h5, h6 { overflow: auto; } +#cabecera-botonera-admin { + background-color: #777677; +} #ingreso_usuario{ color: white !important; padding-top: 10px; @@ -79,24 +82,24 @@ transition: all 1.3s ease; #navbar-principal { font-size: 18px; - padding-bottom: 30px !important; - padding-top: 30px !important; + padding-bottom: 2em !important; + padding-top: 2em !important; transition: all 0.3s ease; } -.nabvar.shrink { +.navbar.shrink { min-height: 35px; } #navbar-principal.shrink { font-size: 18px; - padding-bottom: 10px !important; - padding-top: 10px !important; + padding-bottom: 1em !important; + padding-top: 1em !important; } -.navbar.shrink img { + .navbar.shrink img { width: 5em; height: auto; transition: all 1.3s ease; @@ -115,8 +118,9 @@ transition: all 1.3s ease; } .btn-botonera-admin { - /* margin-left: 20px; */ + margin-left: 20px; margin-right: 20px; + border-left: 1px solid white; } @@ -476,18 +480,10 @@ legend.legend-area { /* RESPONSIVE */ -@media (max-width: 360px){ - #contenedor_cabecera{ -padding-top: 10em; - -} - - @media (max-width: 767px){ .box { display: table !important; } - } @media (min-width: 767px){ @@ -498,15 +494,13 @@ padding-top: 10em; margin-right: 5em; } #contenedor_cabecera{ - padding-top: 20em; + padding-top: 15em; padding-bottom: 3em; } -#logo_cabecera{ - padding-top: 30px; -} #cabecera{ margin-left: 20px; margin-right: 20px; } } +© Gitea Versión: 1.4.3 Página: 19ms Plantilla: 1ms Español JavaScript licenses API Página web Go1.10.1 From 2f66046fcbe49b779393c7eb30bf3db5771e35d6 Mon Sep 17 00:00:00 2001 From: h4ckypurpl3 Date: Sat, 13 Oct 2018 03:46:16 -0500 Subject: [PATCH 3/9] =?UTF-8?q?ajustes=20css=20de=20logo=20con=20relaci?= =?UTF-8?q?=C3=B3n=20al=20nombre=20y=20descripci=C3=B3n=20submodulo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/style.css | 66 +++++++---- funciones/funciones.php | 240 +++------------------------------------- 2 files changed, 58 insertions(+), 248 deletions(-) diff --git a/css/style.css b/css/style.css index 56a18df..e32fcc5 100644 --- a/css/style.css +++ b/css/style.css @@ -1,10 +1,11 @@ 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; color: #333; font-weight: 400; + width: 100% !important; } h1, h2, h3, h4, h5, h6 { @@ -33,6 +34,16 @@ h1, h2, h3, h4, h5, h6 { .navbar-inverse .navbar-nav>li>a:hover, .navbar-inverse .navbar-nav>li>a:focus { background: #fb4f59; } +.navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form { + border-color: #101010; +} + + + +#contenedor_cabecera{ + padding-top: 22em; + +} #titulo_cabecera a{ color: lightgrey !important; @@ -46,13 +57,6 @@ h1, h2, h3, h4, h5, h6 { #cabecera-botonera-admin { background-color: #777677; } -#ingreso_usuario{ - color: white !important; - padding-top: 10px; - padding-bottom: 10px; - white-space:normal !important; - word-wrap: break-word; -} /*NAVBAR BRAND*/ .navbar-brand { @@ -364,7 +368,6 @@ span.etiquetatam10 { width: 100px !important; display: inline; height: 30px; - padding-top: -10px !important; padding-bottom: 0 !important; height: 30px; background: none; @@ -480,12 +483,6 @@ legend.legend-area { /* RESPONSIVE */ -@media (max-width: 767px){ -.box { - display: table !important; -} -} - @media (min-width: 767px){ #slogan_cabecera{ font-size: 2em; @@ -493,14 +490,41 @@ RESPONSIVE */ margin-left: 5em; margin-right: 5em; } -#contenedor_cabecera{ - padding-top: 15em; - padding-bottom: 3em; -} - #cabecera{ margin-left: 20px; margin-right: 20px; } } -© Gitea Versión: 1.4.3 Página: 19ms Plantilla: 1ms Español JavaScript licenses API Página web Go1.10.1 + +@media only screen and (max-width: 1200px) { +#logo_cabecera{ + padding-top: 3em; +} + + +} + +@media only screen and (max-width: 767px) { +.navbar-header{ + margin: 0px !important; +} +#logo_cabecera { + padding-top: 0em; +} + +@media only screen and (max-width: 586px) { + #contenedor_cabecera{ + padding-top: 18em; + } + + +} + +@media only screen and (max-width: 411px) { + #contenedor_cabecera{ + padding-top: 13em; + } + #principal_general{ + padding-left: 2em; + } +} diff --git a/funciones/funciones.php b/funciones/funciones.php index f50d0ce..1c9cf47 100644 --- a/funciones/funciones.php +++ b/funciones/funciones.php @@ -4142,19 +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 { @@ -4596,7 +4595,7 @@ $asunto= "Recibiste un mensaje en [$portal_sigla] "; -if($_SESSION['id'] !="") { +if(isset($_SESSION['usuario_milfs']) OR $_SESSION['id'] !="") { if($_SESSION["id"] !="") { $usuario="MILF-$_SESSION[id]";}else{ $usuario = "$_SESSION[control_usuario_milfs]"; } $existe = contar_interacciones("$identificador","$accion","$usuario"); @@ -4632,20 +4631,17 @@ $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 = revisar_ingreso(''); +$login = milfs_session("$login_formulario","$login_campo_usuario","$login_campo_password","boton","","div_interacciones"); $formato ="

Por favor ingresa para $accion

-
$login
-
"; @@ -4674,218 +4670,6 @@ $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"; @@ -5799,12 +5583,14 @@ 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']; @@ -15658,7 +15444,7 @@ $multiple=mysqli_result($sql,0,"multiple"); } $exif="&exif"; } -if($zoom =="") { $zoom="5";} +if($zoom =="") { $zoom="12";} $render .= "
@@ -17554,8 +17340,8 @@ function parametrizacion($array) { function registro_express($formulario,$accion) { //$formulario = mysql_seguridad($formulario); -// require("includes/datos.php"); - include ("includes/parametrizacion.php"); + require("includes/datos.php"); + require ("includes/parametrizacion.php"); //if($nombre_formulario =="") {$nombre_formulario = "login";} $nombre_formulario = "login"; From 4dd54bdcb7aafd35004718b1d8cf1ea1153948c3 Mon Sep 17 00:00:00 2001 From: h4ckypurpl3 Date: Sat, 13 Oct 2018 04:56:05 -0500 Subject: [PATCH 4/9] registros de cambios inconsistencias --- css/style.css | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/css/style.css b/css/style.css index e32fcc5..c96437a 100644 --- a/css/style.css +++ b/css/style.css @@ -54,10 +54,6 @@ h1, h2, h3, h4, h5, h6 { overflow: auto; } -#cabecera-botonera-admin { - background-color: #777677; -} - /*NAVBAR BRAND*/ .navbar-brand { transform: translateX(-50%); @@ -124,7 +120,6 @@ transition: all 1.3s ease; .btn-botonera-admin { margin-left: 20px; margin-right: 20px; - border-left: 1px solid white; } @@ -133,6 +128,12 @@ transition: all 1.3s ease; color: white !important; } +.btn-botonera-admin { + /* margin-left: 20px; */ + /* margin-right: 20px; */ + float: left; +} + .btn-botonera-admin:hover { background-color: black; } @@ -221,7 +222,7 @@ filter: grayscale(0); /*fin proyectos*/ - +/*Panel Editor*/ .thumbnail { height: 100% !important; From 3c6495d52903d861bc565f2fed14915c442db7ea Mon Sep 17 00:00:00 2001 From: h4ckypurpl3 Date: Sat, 13 Oct 2018 21:10:43 -0500 Subject: [PATCH 5/9] inconsistencias entre versiones --- css/style.css | 2 +- index.php | 217 ++++++++++++++++++++++++++++++-------------------- 2 files changed, 133 insertions(+), 86 deletions(-) diff --git a/css/style.css b/css/style.css index c96437a..15e27b5 100644 --- a/css/style.css +++ b/css/style.css @@ -41,7 +41,7 @@ h1, h2, h3, h4, h5, h6 { #contenedor_cabecera{ - padding-top: 22em; + padding-top: 17em; } diff --git a/index.php b/index.php index 0faec6e..37d0cb5 100644 --- a/index.php +++ b/index.php @@ -1,33 +1,61 @@ 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 = ""; +} ?> @@ -37,20 +65,20 @@ if (isset($_REQUEST['t'])) {$t = $_REQUEST['t'];} else {$t = "";} - - printJavascript("xajax/"); + + printJavascript("xajax/"); // $xajax->debugOn(); - //$xajax->statusMessagesOn(); + //$xajax->statusMessagesOn(); ?> - "; - }else{ - //echo ""; - } ?> + "; + } else { + //echo ""; + } ?> @@ -59,7 +87,7 @@ if (isset($_REQUEST['t'])) {$t = $_REQUEST['t'];} else {$t = "";} @@ -67,19 +95,25 @@ if (isset($_REQUEST['t'])) {$t = $_REQUEST['t'];} else {$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 =""; + } ?> - + @@ -89,7 +123,7 @@ if (isset($_REQUEST['t'])) {$t = $_REQUEST['t'];} else {$t = "";} - + @@ -100,7 +134,7 @@ if (isset($_REQUEST['t'])) {$t = $_REQUEST['t'];} else {$t = "";} - + @@ -109,7 +143,7 @@ if (isset($_REQUEST['t'])) {$t = $_REQUEST['t'];} else {$t = "";} - + @@ -122,11 +156,11 @@ if (isset($_REQUEST['t'])) {$t = $_REQUEST['t'];} else {$t = "";} + From 14a79cb75b5ed7e309c1fd758245c97db381a90f Mon Sep 17 00:00:00 2001 From: h4ckypurpl3 Date: Sat, 13 Oct 2018 23:25:33 -0500 Subject: [PATCH 6/9] 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=" $_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'])) { + From 2b460123907355516bad9eb0c7a59cf7ef81de4e Mon Sep 17 00:00:00 2001 From: h4ckypurpl3 Date: Sun, 14 Oct 2018 01:18:36 -0500 Subject: [PATCH 7/9] ajustes de css submodulo --- css/style.css | 31 ++++++++++++++++++++++++++++--- funciones/funciones.php | 2 +- 2 files changed, 29 insertions(+), 4 deletions(-) diff --git a/css/style.css b/css/style.css index ccb85ff..2721630 100644 --- a/css/style.css +++ b/css/style.css @@ -39,7 +39,7 @@ h1, h2, h3, h4, h5, h6 { } .navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form { - border-color: #101010; + border-color: transparent; } #contenedor_cabecera { @@ -73,7 +73,18 @@ h1, h2, h3, h4, h5, h6 { } /*NAVBAR BRAND*/ +#menu_mobil{ + display: grid !important; +} +#menu_social{ + text-align: right; + float: right; +} +#menu_hamburguesa{ + color: white; + background-color: none !important; +} .navbar-brand { transform: translateX(-50%); left: 50%; @@ -196,7 +207,7 @@ h1, h2, h3, h4, h5, h6 { position: relative; margin: 10px; float: left; - background-color: grey; + background-color: darkgray; height: 14em; width: 14em; } @@ -511,6 +522,7 @@ RESPONSIVE */ margin: 0px !important; float: left; } + #slogan_cabecera{ font-size: 1.5em; } @@ -536,11 +548,24 @@ RESPONSIVE */ #principal_general { padding-left: 2em; } + #texto_articulo{ + padding: 0px !important + } } -@media only screen and (max-width: 411px) { +@media only screen and (max-width: 495px) { #contenedor_cabecera { padding-top: 0em; } + #principal_general { + padding-left: 3em; +} +#proyectos{ + display: grid !important; +} + +} + +@media only screen and (max-width: 495px) { } diff --git a/funciones/funciones.php b/funciones/funciones.php index 3d47616..3c070bd 100644 --- a/funciones/funciones.php +++ b/funciones/funciones.php @@ -5812,7 +5812,7 @@ while( $row = mysqli_fetch_array( $sql ) ) {
- $_SESSION[username] $_SESSION[equipo] Salir +
"; $resultado="$boton"; return $resultado; From 0b0760ca9b7400c8bb2c2cc5620ea35918977ab6 Mon Sep 17 00:00:00 2001 From: kleper Date: Sun, 14 Oct 2018 08:27:41 -0500 Subject: [PATCH 9/9] =?UTF-8?q?Mejors=20para=20la=20implementaci=C3=B3n=20?= =?UTF-8?q?del=20nuevo=20landingpage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/style.css | 1 + 1 file changed, 1 insertion(+) diff --git a/css/style.css b/css/style.css index 5bb863b..995b152 100644 --- a/css/style.css +++ b/css/style.css @@ -1,4 +1,5 @@ body { + overflow-x: hidden !important; font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px;