<?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 session</b></font>";
  }
}
?>

<table class="cuerpo" style="background-color:#efefef;" width="100%" border="0" cellpadding="0" cellspacing="0">
  
  <tr>
    <td valign="top">
      <table style="border-radius: 15px;border: 1px solid #ED1B24;box-shadow:11px 12px 9px 1px rgba(0,0,0,0.3 );margin:45px auto;" cellpadding="0" cellspacing="0" align="center" width="35%">
	    <tr>
		 <td  height="35"  colspan="2" style="background: #ED1B24; font-family:Arial, Helvetica, sans-serif; font-size:16px; color:#FFFFFF; text-align:center; font-weight:bold;border-radius: 15px 15px 0 0;padding:15px 0;">CONTROL DE ACCESO</td>
		</tr>
		<tr>
			<td valign="top" style="background-color:#fff;">
		      <table cellpadding="0" cellspacing="0" align="center">
			  	<tr>
				  <td>&nbsp;</td>
				</tr>
			    <tr>
				  <td><img src="/images/common/sesion.png"/></td>
				</tr>
			  </table>
		   </td>
		</tr>
	    <tr>
		   
		   <td valign="top" style="background-color:#fff;border-radius:15px;">
		     <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 class="cont_form" style="width: 80%;margin: 0 auto;">
						  <div style="clear:both; text-align:center;"><?=$sMessgaeError?></div>
						  <div class="cont_txt_" style="display:flex; justify-content:center;">
							  <span class="login_label" style="font-family:Arial, Helvetica, sans-serif; font-size:18px;font-weight:bold; color:#ED1B24;">Usuario:</span>
							  <span class="login_input">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<input type="text" name="nickname" id="nickname" value="" class="required"  style="font-family:Arial, Helvetica, sans-serif;font-size: 14px;color: #333;padding: 6px;font-weight:bold;border-radius: 5px;"/>
							  </span>
						  </div>
						  <div style="clear:both"></div>
						  <div class="cont_txt_" style="display:flex; justify-content:center;">
							  <span class="login_label" style="font-family:Arial, Helvetica, sans-serif; font-size:18px; margin-right:10px; font-weight:bold; color:#ED1B24;">Contrase&ntilde;a:</span>
							  <span class="login_input">
								<input type="password" name="password" id="password" value="" class="required" style="font-family:Arial, Helvetica, sans-serif;font-size: 14px;color: #333;padding: 6px;font-weight:bold;border-radius: 5px;" />
							  </span>
						  </div>
						  <div style="clear:both"></div>
						  <div align="center" class="cont_txt_">
						  	<input type="submit" name="commit" value="Iniciar sesion" style="font-family: Arial, Helvetica, sans-serif;color: #fff;font-size: 14px;font-weight:bold;background-color: #0065B3;border: 1px solid #0065B3;padding: 10px 40px;border-radius: 15px;text-transform: uppercase;margin: 20px 0;">
						  </div>
					  </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" v>
	 <table cellpadding="0" cellspacing="0" width="100%" border="0" height="450">
	   <tr>  
		   <td  style="vertical-align:bottom; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; color:#003399; text-align:right;">Copyright 2008 Autor: <a style="text-decoration:underline;color:#ff0000" target="_blank" href="http://www.inoutsistem.com/">www.inoutsistem.com</a>
		 </td>
	   <tr>
	 </table>		
  <tr>
</table>