<?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=black><b>Error al iniciar sessi&oacute;n</b></font>";
  }
}
?>

<table class="cuerpo" width="100%" border="0" cellpadding="0" cellspacing="0">
  
  <tr>
    <td valign="top">
      <table style=" border: outset 0.5px #003399" cellpadding="0" cellspacing="0" align="center" width="35%">
	    <tr>
		 <td  height="35"  colspan="2" style="background: #130857; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:16px; color:#FFFFFF; text-align:center; font-weight:bold;">CONTROL DE ACCESO</td>
		</tr>
	    <tr>
		   <td valign="top">
		      <table cellpadding="0" cellspacing="0" align="center">
			  	<tr>
				  <td>&nbsp;</td>
				</tr>
			    <tr>
				  <td><img src="/images/common/sesion.png"/></td>
				</tr>
			  </table>
		   </td>
		   <td valign="top">
		     <table cellpadding="0" cellspacing="0" width="100%">
			    <tr>
				  <td valign="top">		
				  <div id="login"   style="float:left; width:100%;">
					 <h1 style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:15px; text-align:center; font-weight:bold">&nbsp;</h1>
					<form id="myFormLogin" name="myFormLogin" method="post">
					  <div style="clear:both"><?=$sMessgaeError?></div>
					  <span class="login_label" style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px;font-weight:bold; color:#130857;">Usuario:</span>
					  <span class="login_input">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="text" name="nickname" id="nickname" value="" class="required"  style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; color:#003399;font-weight:bold;"/>
					  </span>
					  <div style="clear:both"></div>
					  <p>
					  <span class="login_label" style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; color:#130857;">Contrase&ntilde;a:</span>
					  <span class="login_input">
						<input type="password" name="password" id="password" value="" class="required" style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; color:#003399;font-weight:bold;" />
					  </span>
					  <div style="clear:both"></div>
					  <div align="right"><input type="submit" name="commit" value="Iniciar sesi&oacute;n" style="font-family:Verdana, Arial, Helvetica, sans-serif; color:#000000; font-size:10px; font-weight:bold;"/></div>
					</form>
				  </div>
		      </td>
				</tr>
			  </table>
		   </td>
		</tr>
	</table> 
     <!--  <div  style="float:right; width:33%;"><img src="/images/common/escuela.png"/></div> -->
      <!--<li><a href="/sf_sandbox/web/sys.php/user/login">sign in/register</a></li>-->
    </td>
  </tr>
  <tr>
  	<td valign="top">
	 <table cellpadding="0" cellspacing="0" width="97%" border="0" height="200">
	   <tr>  
		   <!--<td  style="vertical-align:bottom; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:15px; color:#000000; text-align:right;font-weight: bold;">Copyright &copy; 2014 Derechos reservados del Autor: <a style="text-decoration:underline;color:#ff0000" target="_blank" href="http://www.dataexe.com/">www.dataexe.com</a>
		 </td>-->
	   <tr>
	 </table>		
  <tr>
</table>