diff options
author | Ramón M. Gómez <ramongomez@us.es> | 2019-02-12 10:46:37 +0100 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2019-02-12 10:46:37 +0100 |
commit | 669478452f2f7fbce79ce2456a6034ae562cb436 (patch) | |
tree | 38c23a5ffb93e958f76091fade919a1917ab002c /admin/WebConsole/varios/buscar.php | |
parent | 6bd2e1e7ba1bb7f9911d95a3a4ed688b0cae1e58 (diff) |
#834: Fixing more code cleanup: CSS units, HTML tags; Javascript comparisons, and PHP variables.
Diffstat (limited to 'admin/WebConsole/varios/buscar.php')
-rw-r--r-- | admin/WebConsole/varios/buscar.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/admin/WebConsole/varios/buscar.php b/admin/WebConsole/varios/buscar.php index 884a75d9..09c2e45c 100644 --- a/admin/WebConsole/varios/buscar.php +++ b/admin/WebConsole/varios/buscar.php @@ -142,8 +142,8 @@ if (!empty ($valor) or $criterio == "duplic" or $criterio == "profe" or $criteri //_________________________________ ?> <html> -<title>Administración web de aulas</title> <head> + <title>Administración web de aulas</title> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <link rel="stylesheet" type="text/css" href="../estilos.css"> <script languaje="javascript"> @@ -154,7 +154,7 @@ function confirmar(){ } //_________________________________ function comprobar_datos(){ - if (document.fdatos.valor.value=="" && document.fdatos.criterio.value!="duplic" && document.fdatos.criterio.value!="profe" && document.fdatos.criterio.value!="norepo") { + if (document.fdatos.valor.value==="" && document.fdatos.criterio.value!=="duplic" && document.fdatos.criterio.value!="profe" && document.fdatos.criterio.value!=="norepo") { alert("<?php echo $TbMsg["SEARCH_NOVALUE"] ?>"); document.fdatos.valor.focus(); return(false) @@ -172,7 +172,7 @@ function PulsaEnter(oEvento){ else return false; } - if (iAscii == 13) confirmar(); + if (iAscii === 13) confirmar(); return true; } </script> @@ -213,7 +213,7 @@ if (!empty ($valor) or $criterio == "duplic" or $criterio == "profe" or $criteri <div align="center" style="margin: 20px;"> <form action="#" class="formulariodatos" name="fdatos" method="post"> <?php echo $TbMsg["SEARCH_CRITERIA"] ?>: - <select name="criterio" id="criterio" onchange="if (document.fdatos.criterio.value=='duplic' || document.fdatos.criterio.value=='profe' || document.fdatos.criterio.value=='norepo') document.fdatos.valor.disabled=true; else document.fdatos.valor.disabled=false"> + <select name="criterio" id="criterio" onchange="document.fdatos.valor.disabled=document.fdatos.criterio.value==='duplic' || document.fdatos.criterio.value=='profe' || document.fdatos.criterio.value==='norepo';"> <option value="nombre"> <?php echo $TbMsg["SEARCH_NAME"] ?> </option> <option value="ip"> <?php echo $TbMsg["SEARCH_IP"] ?> </option> <option value="mac"> <?php echo $TbMsg["SEARCH_MAC"] ?> </option> @@ -229,4 +229,3 @@ if (!empty ($valor) or $criterio == "duplic" or $criterio == "profe" or $criteri </div> </body> </html> - |