Incam_Intranet/index.php

75 lines
2.1 KiB
PHP
Raw Permalink Normal View History

<?php
//FICHERO DE IDIOMAS
define("LOCALE", "idiomas/");
define("LOCALESET", "sp/");
include LOCALE.LOCALESET."lenguaje.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $locale['001'];?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="shortcut icon" href="css/favicon.ico">
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/tablas.css" />
</head>
<body>
<div id="menu">
<div id="menutop">
<a title="Selfor"href="index.html">
<img alt="Selfor" src="css/selfor.jpg" width="150" height="150" />
</a>
</div>
<div class="navcontainer">
</div>
</div>
<div id="banner"><h1><?php echo $locale['005']; ?> </h1>
<?php
if (isset($_SESSION["nombre"]) && ($_SESSION["nombre"] != "")) {
echo '<br><p class="encabezado">'.$locale['006'].$_SESSION["nombre"].'</p>';
} else {
echo '<br><p class="encabezado">'.$locale['007'].'</p>';
}
?>
</div><div id="main">
<h1 align="center">Bienvenido a la Intranet</h1>
<!-- Formulario de login -->
<center><form action="control.php" method="POST">
<table align="center" width="225" cellspacing="2" cellpadding="2" border="0">
<tr>
<td colspan="2" align="center"
<?php
if (isset($_GET["errorusuario"]) && ($_GET["errorusuario"] == "si")) {
echo 'bgcolor=red><span style="color:ffffff"><font color="white"><b>Datos incorrectos</b></font></span>';
}else{
echo 'bgcolor=#cccccc>Introduce tu clave de acceso';
}
?>
</td>
</tr>
<tr>
<td align="right">EMAIL:</td>
<td><input type="text" name="usuario" size="30" maxlength="50"></td>
</tr>
<tr>
<td align="right">PASSWORD:</td>
<td><input type="password" name="password" size="30" maxlength="50"></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="Submit" value="ENTRAR" class="button"></td>
</tr>
</table>
</form></center>
<!-- Formulario de login -->
<?php include("html/pie.php"); ?>