source: admin/WebConsole/acceso_esp.php @ 1a22cd2

918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Last change on this file since 1a22cd2 was 6e9cc32, checked in by ramon <ramongomez@…>, 15 years ago

Borrar caracteres BOM de UTF-8 en ficheros PHP de WebConsole?.

git-svn-id: https://opengnsys.es/svn/trunk@514 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100644
File size: 3.8 KB
Line 
1<?
2// *************************************************************************************************************************************************
3// Aplicación WEB: ogAdmWebCon
4// Autor: José Manuel Alonso (E.T.S.I.I.) Universidad de Sevilla
5
6// Fecha Creación: Diciembre-2003
7// Fecha Última modificación: Febrero-2005
8// Nombre del fichero: acceso.php
9// Descripción : Presenta la pantalla de login de la aplicación
10// *************************************************************************************************************************************************
11$herror=0;
12if (isset($_GET["herror"])) $herror=$_GET["herror"];
13if (isset($_POST["herror"])) $herror=$_POST["herror"];
14
15$TbErr=array();
16$TbErr[0]="SIN ERRORES";
17$TbErr[1]="ATENCIÓN: Debe acceder a la aplicación a través de la pagina inicial";
18$TbErr[2]="ATENCIÓN: La Aplicación no tiene acceso al Servidor de Bases de Datos";
19$TbErr[3]="ATENCIÓN: Existen problemas para recuperar el registro, puede que haya sido eliminado";
20$TbErr[4]="ATENCIÓN: Usted no tiene acceso a esta aplicación";
21//________________________________________________________________________________________________________
22?>
23<HTML>
24<TITLE>Administración web de aulas</TITLE>
25<HEAD>
26        <LINK rel="stylesheet" type="text/css" href="estilos.css">
27</HEAD>
28<SCRIPT LANGUAGE="JAVASCRIPT">
29//________________________________________________________________________________________________________
30function confirmar(){
31        if (comprobar_datos())
32                document.fdatos.submit();
33}
34//________________________________________________________________________________________________________
35function comprobar_datos(){
36        if (document.fdatos.usu.value==""){
37                alert("Debe introducir un nombre de Usuario")
38                document.fdatos.usu.focus()
39                return(false)
40        }
41        if (document.fdatos.pss.value==""){
42                alert("Debe introducir una contraseña")
43                document.fdatos.pss.focus()
44                return(false)
45        }
46        return(true)
47}
48//______________________________________________________________________________________________________
49function PulsaEnter(oEvento){
50    var iAscii;
51    if (oEvento.keyCode)
52        iAscii = oEvento.keyCode;
53    else{
54                if (oEvento.which)
55                        iAscii = oEvento.which;
56                else
57                        return false;
58        }
59    if (iAscii == 13)  confirmar();
60        return true;
61}
62//________________________________________________________________________________________________________
63</SCRIPT>
64</HEAD>
65<BODY>
66<DIV style="POSITION:absolute;top:90;left:212">
67        <FORM action="controlacceso.php" name="fdatos" method="post">
68                <DIV align="center">
69                        <IMG src="./images/login_esp.jpg" >
70                        <INPUT onkeypress="PulsaEnter(event)" name="usu"  style="POSITION:absolute;top:160;left:455;width=130;height:20;COLOR: #999999; FONT-FAMILY: Verdana; FONT-SIZE: 12px;">
71                        <INPUT onkeypress="PulsaEnter(event)"  name="pss" type="password"  style="POSITION:absolute;top:190;left:455;width=130;height:20;COLOR: #999999; FONT-FAMILY: Verdana; FONT-SIZE: 12px;">
72                        <IMG onclick="confirmar()" src="./images/botonok.gif" style="POSITION:absolute;top:215;left:555;CURSOR: hand">
73                </DIV>
74        </FORM>
75</DIV>
76<?
77//________________________________________________________________________________________________________
78echo '<DIV  style="POSITION: absolute;LEFT: 20px;TOP:300px;visibility:hidden" height=300 width=300>';
79echo '<IFRAME scrolling=yes height=300 width=310 id="iframes_comodin" src="./nada.php"></IFRAME>';
80echo '</DIV>';
81//________________________________________________________________________________________________________
82// Posiciona cursor en campo usuario y muestra mensaje de error si lo hubiera
83echo '<SCRIPT LANGUAGE="javascript">';
84if (!empty($herror))
85        echo "  alert('".$TbErr[$herror]."');";
86echo 'document.fdatos.usu.focus()';
87echo '</SCRIPT>';
88//________________________________________________________________________________________________________
89?>
90</BODY>
91</HTML>
Note: See TracBrowser for help on using the repository browser.