<?php
$User = $_COOKIE["A12829"];
$Passwd = $_COOKIE["A12830"];
if( $User != "" && $Passwd != "" ) {
   $_SESSION["user"] = $User;
   $_SESSION["passwd"] = $Passwd;
   header("Location: login.php");
}

?>
<html>
<head>
   <title>Servicios Interactivos </title>
   <link rel="shortcut icon" href="logo.ico">
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
   <meta http-equiv="X-UA-Compatible" content="IE=edge">
   <title>Servicios Interactivos</title>
   <link type="text/css" rel="stylesheet" href="styles/materialize.css"> 
   <link type="text/css" rel="stylesheet" href="styles/styles.css"  media="screen,projection"/> 
</head>
<body>
<style>
nav ul a:hover,
nav ul a {
  color: black;
}
nav ul a:hover {
  background-color: #cfd8dc;
 /* color: white; */
}
table.highlight > tbody > tr:hover  {
   background-color: #cfd8dc;
}
td {
   border-radius: 0;
}

html,
body {
    height: 100%;
}
html {
    display: table;
    margin: auto;
}
body {
    display: table-cell;
    vertical-align: middle;
}
.margin {
  margin: 0 !important;
}
</style>	
<div id="login-page" class="row">
    <div class="col s12 z-depth-6 card-panel">
      <form id="login" class="login-form" action="login.php" method="post"> 
        <div class="row">
        </div>
        <div class="row margin">
          <div class="input-field col s12">
            <i class="mdi-social-person-outline prefix"></i>
            <input id="user" name="fuser" type="text" class="validate" placeholder=' '>
            <label for="user" data-error="wrong" data-success="right" class="">Usuario</label>
          </div>
        </div>
        <div class="row margin">
          <div class="input-field col s12">
            <i class="mdi-action-lock-outline prefix"></i>
            <input id="password" name="fname" type="password" placeholder=' '>
            <label for="password">Clave</label>
          </div>
        </div>
        <div class="row">         
          <div class="input-field col s12 m12 l12  login-text">
              <input type="checkbox" id="remember-me" name="fremember"/>
              <label for="remember-me">Recordarme</label>
          </div>
        </div>
        <div class="row">
          <div class="input-field col s12">
   		 	<button class="btn waves-effect waves-light col s12" type="submit" name="action" >Acceder</button>
           <!--
            <a href="login.php" class="btn waves-effect waves-light col s12">Acceder</a>
          -->
          </div>
        </div>
        <!--
        <div class="row">
          <div class="input-field col s6 m6 l6">
            <p class="margin medium-small"><a href="register.html">Register Now!</a></p>
          </div>
          <div class="input-field col s6 m6 l6">
              <p class="margin right-align medium-small"><a href="forgot-password.html">Forgot password?</a></p>
          </div>         
        </div>
        -->
         </form>
      </div>
   </div>
   <script type="text/javascript" src="js/jquery.min.js"></script>
 	<script type="text/javascript" src="js/jquery.form.js"></script> 
   <script type="text/javascript" src="js/materialize.min.js"></script>
<script>
   $(document).ready(function() {

   });		
</script>
</body>
</html>
