<?php
echo $block;
$sErrorNickname = "";
$sErrorPasswor  = "";
//temporal
$sMessgaeError  = "";

if(isset($_POST['commit'])){
  //require($classMyLoginValidator);
  $o_MyLoginValidator = new myLoginValidator();
    
  if(!$o_MyLoginValidator->execute($_POST['nickname'], $_POST['password'])){
    $sMessgaeError = "<font color=red><b>Error al iniciar sessión</b></font>";
  }
}
?>

<table class="cuerpo" width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top">
      <h1>Module user</h1>
      <div id="login" >
        <form id="myFormLogin" name="myFormLogin" method="post">
          <div style="clear:both"><?=$sMessgaeError?></div>
          <span class="login_label">user:</span>
          <span class="login_input">
            <input type="text" name="nickname" id="nickname" value="" class="required" />
          </span>
          <div style="clear:both"></div>
          <p>
          <span class="login_label">password:</span>
          <span class="login_input">
            <input type="password" name="password" id="password" value="" class="required" />
          </span>
          <div style="clear:both"></div>
          <input type="submit" name="commit" value="Iniciar sesión" />
        </form>
      </div>
      <!--<li><a href="/sf_sandbox/web/sys.php/user/login">sign in/register</a></li>-->
    </td>
  </tr>
</table>