From 0ebb81b2625e589796b689e82380eef95da67c69 Mon Sep 17 00:00:00 2001 From: ramon Date: Thu, 1 Mar 2018 15:07:51 +0000 Subject: #834: Simplificar código CSS. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://opengnsys.es/svn/branches/version1.1@5633 a21b9725-9963-47de-94b9-378ad31fedc9 --- .../comandos/includes/FiltradoAmbito.php | 24 ++-- admin/WebConsole/estilos.css | 129 +++++++++------------ admin/WebConsole/includes/pintaParticiones.php | 2 +- admin/WebConsole/principal/aula.php | 2 +- admin/WebConsole/validacion/functions.php | 9 +- admin/WebConsole/varios/inclusionacciones.php | 2 +- admin/WebConsole/varios/msgbrowser.php | 22 ++-- 7 files changed, 80 insertions(+), 110 deletions(-) diff --git a/admin/WebConsole/comandos/includes/FiltradoAmbito.php b/admin/WebConsole/comandos/includes/FiltradoAmbito.php index 6bc524df..490969f7 100644 --- a/admin/WebConsole/comandos/includes/FiltradoAmbito.php +++ b/admin/WebConsole/comandos/includes/FiltradoAmbito.php @@ -1,12 +1,12 @@ '; while (!$rs->EOF){ - $htmlCode.=''; + $htmlCode.= ''; $nombreordenador=$rs->campos["nombreordenador"]; $ip=$rs->campos["ip"]; $cadenaip.=$ip.";"; @@ -258,7 +258,7 @@ function respuestaSondeo(){ function retornorespuestaSondeo(resul) { if(resul.length>0){ - var ip=""; // Dirección IP del ordenador + var ip=""; // Dirección IP del ordenador var so=""; // Sistema operativo activo var objOrd=null; // Objeto ordenador var imgOrd=""; @@ -301,13 +301,13 @@ function soIMG(so) MimgOrdenador="ordenador_WIN.png"; // Windows break; case 'WINS': - MimgOrdenador="ordenador_WINS.png"; // Sesión Windows + MimgOrdenador="ordenador_WINS.png"; // Sesión Windows break; case 'LNX': MimgOrdenador="ordenador_LNX.png"; // Linux break; case 'LNXS': - MimgOrdenador="ordenador_LNXS.png"; // Sesión Linux + MimgOrdenador="ordenador_LNXS.png"; // Sesión Linux break; case 'OSX': MimgOrdenador="ordenador_OSX.png"; // macOS @@ -350,7 +350,7 @@ function selector(oSLCT,op,id) if(estado=="ordenador_WIN.png") oCHK.checked=sw; break; - case 5: // Sesión Windows + case 5: // Sesión Windows if(estado=="ordenador_WINS.png") oCHK.checked=sw; break; @@ -358,7 +358,7 @@ function selector(oSLCT,op,id) if(estado=="ordenador_LNX.png") oCHK.checked=sw; break; - case 7: // Sesión Linux + case 7: // Sesión Linux if(estado=="ordenador_LNXS.png") oCHK.checked=sw; break; diff --git a/admin/WebConsole/estilos.css b/admin/WebConsole/estilos.css index b7bc1a52..ff5e36c2 100644 --- a/admin/WebConsole/estilos.css +++ b/admin/WebConsole/estilos.css @@ -104,25 +104,18 @@ } .input_nodo{ - BORDER-BOTTOM: 1px solid; - BORDER-LEFT: 1px solid; - BORDER-RIGHT: 1px solid; - BORDER-TOP: 1px solid; + border: 1px solid; COLOR: #000000; FONT-SIZE: 11px; HEIGHT: 14px; } .marcorelieve{ - BORDER-BOTTOM: #808080 1px solid; - BORDER-LEFT: #ffffff 1px solid; - BORDER-RIGHT: #808080 1px solid; - BORDER-TOP: #ffffff 1px solid; + border: 1px solid #ffffff; + border-right-color: #808080; + border-bottom-color: #808080; } .marco{ - BORDER-BOTTOM: #999999 1px solid; - BORDER-LEFT: #999999 1px solid; - BORDER-RIGHT: #999999 1px solid; - BORDER-TOP: #999999 1px solid; + border: 1px solid #999999; COLOR: #000000; FONT-FAMILY: Verdana,Arial, Helvetica, sans-serif; FONT-SIZE: 13px; @@ -133,10 +126,7 @@ FONT-SIZE: 11px; } .menupral TD{ - BORDER-BOTTOM: #d4d0c8 1px solid; - BORDER-LEFT: #d4d0c8 1px solid; - BORDER-RIGHT: #d4d0c8 1px solid; - BORDER-TOP: #d4d0c8 1px solid; + border: 1px solid #d4d0c8; } .menupral SPAN{ @@ -146,38 +136,35 @@ } .filtros{ - BORDER-BOTTOM: #999999 1px solid; - BORDER-LEFT: #999999 1px solid; - BORDER-RIGHT: #999999 1px solid; - BORDER-TOP: #999999 1px solid; + border: 1px solid #999999; } .filtros TD{ - FONT-FAMILY: sans-serif; - FONT-SIZE: 11px; - COLOR:#999999; + FONT-FAMILY: sans-serif; + FONT-SIZE: 11px; + COLOR:#999999; } .supercabeceras { - COLOR:#FE6C65; - FONT-FAMILY: Arial; - FONT-SIZE: 30px; - FONT-WEIGHT: 600; + COLOR:#FE6C65; + FONT-FAMILY: Arial, sans-serif; + FONT-SIZE: 30px; + FONT-WEIGHT: 600; } .sobrecabeceras { - COLOR:#7575DD; - FONT-FAMILY: Arial; - FONT-SIZE: 24px; - FONT-WEIGHT: 400; + COLOR:#7575DD; + FONT-FAMILY: Arial, sans-serif; + FONT-SIZE: 24px; + FONT-WEIGHT: 400; } .cabeceras{ COLOR: #999999; - FONT-FAMILY: Verdana; + FONT-FAMILY: Verdana, sans-serif; FONT-SIZE: 24px; - FONT-WEIGHT: 600; + FONT-WEIGHT: 600; } .subcabeceras{ - COLOR: #D6A621; - FONT-FAMILY: Verdana; + COLOR: #D6A621; + FONT-FAMILY: Verdana, sans-serif; FONT-SIZE: 20px; } @@ -203,7 +190,7 @@ FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 12px; FONT-WEIGHT: 500; - BORDER-BOTTOM:#999999 1px solid ; + BORDER-BOTTOM:#999999 1px solid ; } .tabla_datos TD{ @@ -211,7 +198,7 @@ COLOR: #003300; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 12px; - BORDER-BOTTOM:#999999 1px solid; + BORDER-BOTTOM:#999999 1px solid; } .formulariodatos{ @@ -249,8 +236,8 @@ FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 12px; FONT-WEIGHT: 500; - BORDER-BOTTOM:#4f4f4f 1px solid; - BORDER-RIGHT:#4f4f4f 1px solid; + BORDER-BOTTOM:#4f4f4f 1px solid; + BORDER-RIGHT:#4f4f4f 1px solid; } .tabla_listados_sin TD{ @@ -271,11 +258,10 @@ A.tabla_listados_sin:link{ } .recuadros{ - BACKGROUND-COLOR: lightseagreen; - BORDER-BOTTOM: teal solid; - BORDER-LEFT: #b4e0d2 solid; - BORDER-RIGHT: teal solid; - BORDER-TOP: #b4e0d2 solid; + BACKGROUND-COLOR: lightseagreen; + border: solid #b4e0d2; + border-right-color: teal; + border-bottom-color: teal; COLOR: white; FONT-STYLE: italic } @@ -289,10 +275,7 @@ A.tabla_listados_sin:link{ FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 11px; FONT-WEIGHT: 500; - BORDER-BOTTOM: #999999 1px solid; - BORDER-LEFT: #999999 1px solid; - BORDER-RIGHT: #999999 1px solid; - BORDER-TOP: #999999 1px solid; + border: 1px solid #999999; } .tabla_meses TD{ @@ -330,7 +313,7 @@ A.tabla_listados_sin:link{ FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 11px; FONT-WEIGHT: 500; - BORDER-BOTTOM:#000000 1px solid ; + BORDER-BOTTOM:#000000 1px solid ; } .tabla_busquedas TD{ @@ -356,13 +339,13 @@ A.tabla_listados_sin:link{ } .cajacomandos{ - BACKGROUND-COLOR: #ffffff; + BACKGROUND-COLOR: #ffffff; COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 12px } .salidacomandos{ - BACKGROUND-COLOR: #000000; + BACKGROUND-COLOR: #000000; COLOR: #ffffff; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 12px @@ -377,7 +360,7 @@ A.tabla_listados_sin:link{ FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 12px; FONT-WEIGHT: 700; - BORDER-BOTTOM:#000000 1px solid ; + BORDER-BOTTOM:#000000 1px solid ; } .tabla_parametros TD{ @@ -385,14 +368,11 @@ A.tabla_listados_sin:link{ COLOR: #003300; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 11px; - BORDER-BOTTOM:#000000 1px solid; + BORDER-BOTTOM:#000000 1px solid; } .opciones_ejecucion{ - BORDER-TOP: silver thin solid; - BORDER-BOTTOM: silver thin solid; - BORDER-LEFT: silver thin solid; - BORDER-RIGHT: silver thin solid; + border: thin solid silver; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 11px; } @@ -401,30 +381,28 @@ A.tabla_listados_sin:link{ } .tablaprogramacion TH{ - FONT-WEIGHT: bold; + FONT-WEIGHT: bold; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 11px; - BORDER-LEFT: medium none; - COLOR: white; - BACKGROUND-COLOR: lightseagreen; - TEXT-ALIGN: left; + BORDER-LEFT: medium none; + COLOR: white; + BACKGROUND-COLOR: lightseagreen; + TEXT-ALIGN: left; } .tablaprogramacion TD{ - FONT-SIZE: 9pt; + FONT-SIZE: 9pt; FONT-FAMILY: Arial, Helvetica, sans-serif; - COLOR: #000000; - + COLOR: #000000; } .botonprogramacion{ - BORDER-BOTTOM: #666666 1px solid; - BORDER-TOP: #ffffff 1px solid; - BORDER-LEFT: #ffffff 1px solid; - BORDER-RIGHT: #666666 1px solid; + border: 1px solid #ffffff; + border-right-color: #666666; + border-bottom-color: #666666; BACKGROUND-COLOR: #EEEECC; - FONT-SIZE: 9pt; - COLOR: #000000; + FONT-SIZE: 9pt; + COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; } @@ -437,7 +415,7 @@ A.tabla_listados_sin:link{ FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 11px; FONT-WEIGHT: 500; - BORDER-BOTTOM:#000000 1px solid ; + BORDER-BOTTOM:#000000 1px solid ; } .tabla_accesos TD{ @@ -446,11 +424,8 @@ A.tabla_listados_sin:link{ FONT-SIZE: 11px; } .mensajebrowser{ - BORDER-BOTTOM: #999999 1px solid; - BORDER-LEFT: #999999 1px solid; - BORDER-RIGHT: #999999 1px solid; - BORDER-TOP: #999999 1px solid; - BACKGROUND-COLOR: #FFFFFF; + border: 1px solid #999999; + BACKGROUND-COLOR: #FFFFFF; COLOR: #999999; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 14px; diff --git a/admin/WebConsole/includes/pintaParticiones.php b/admin/WebConsole/includes/pintaParticiones.php index f29aaf02..29241487 100644 --- a/admin/WebConsole/includes/pintaParticiones.php +++ b/admin/WebConsole/includes/pintaParticiones.php @@ -115,7 +115,7 @@ function pintaParticiones($cmd,$configuraciones,$idordenadores,$cc) // Mostrar uso solo en clientes individuales. $uso=tomaUso($tbKeys[$k]["numpar"],$idordenadores,$tbKeys[$k]["numdisk"]); if ($uso > 0 and strpos($idordenadores, ',') === false) { - echo' '.tomaTamano($tbKeys[$k]["numpar"],$idordenadores,$tbKeys[$k]["numdisk"]).' '.chr(13); + echo ' '.tomaTamano($tbKeys[$k]["numpar"],$idordenadores,$tbKeys[$k]["numdisk"]).' '.chr(13); } else { echo' '.tomaTamano($tbKeys[$k]["numpar"],$idordenadores,$tbKeys[$k]["numdisk"]).' '.chr(13); } diff --git a/admin/WebConsole/principal/aula.php b/admin/WebConsole/principal/aula.php index 323266e7..f687c0b6 100644 --- a/admin/WebConsole/principal/aula.php +++ b/admin/WebConsole/principal/aula.php @@ -269,7 +269,7 @@ function pintaordenadores(){ echo '

  '.$TbMsg[23].'
'.$nombreaula.'

'; } - echo ''; + echo '
'; for($i=0;$i<$k;$i++){ // Vuelve a recorrer los datos de ordenadores para crear HTML $ntr++; echo '
'; diff --git a/admin/WebConsole/validacion/functions.php b/admin/WebConsole/validacion/functions.php index 3f4281f8..a4780fd1 100644 --- a/admin/WebConsole/validacion/functions.php +++ b/admin/WebConsole/validacion/functions.php @@ -154,12 +154,9 @@ function GeneraMenu($rs,$tipo,$iph){ break; } $codeHTML.=''; - $codeHTML.=' '.$lit.' '; + $codeHTML.= ' ' .$lit.' '; $codeHTML.='

'; //$codeHTML.=''; diff --git a/admin/WebConsole/varios/inclusionacciones.php b/admin/WebConsole/varios/inclusionacciones.php index 36f6619b..2f823445 100644 --- a/admin/WebConsole/varios/inclusionacciones.php +++ b/admin/WebConsole/varios/inclusionacciones.php @@ -270,7 +270,7 @@ $tbParametros=CreaTablaParametros($cmd); // Crea tabla en memmoria para acceder echo '
+ onclick="confirmar('.$op.');">

diff --git a/admin/WebConsole/varios/msgbrowser.php b/admin/WebConsole/varios/msgbrowser.php index ed061bda..8a89757a 100644 --- a/admin/WebConsole/varios/msgbrowser.php +++ b/admin/WebConsole/varios/msgbrowser.php @@ -45,23 +45,21 @@ else color:#FFFFFF; font-family: sans-serif; font-size: 12px; - font-weight:300; - BORDER-BOTTOM: #000000 1px solid; - BORDER-LEFT: #FFFFFF 1px solid; - BORDER-RIGHT: #000000 1px solid; - BORDER-TOP: #FFFFFF 1px solid; - } + font-weight:300; + border: 1px solid #FFFFFF; + border-right-color: #000000; + border-bottom-color: #000000; + } .tdclien{ background: url('../images/iconos/clienven.png'); color:#000000; font-family: sans-serif; font-size: 14px; - font-weight:300; - BORDER-BOTTOM: #999999 1px solid; - BORDER-LEFT: #FFFFFF 1px solid; - BORDER-RIGHT: #999999 1px solid; - BORDER-TOP: #FFFFFF 1px solid; - } + font-weight:300; + border: 1px solid #FFFFFF; + border-right-color: #999999; + border-bottom-color: #999999; + } -- cgit v1.2.3-18-g5258