<?php
session_start();	
include("ip.php");	
include("cls_conexion.php");$CNN=new ClsMySQL();include("conexion23.php");
//-------------------------	
$StrGT="";
$VP_RegXPag=10;
$LStrMsg="";
$LStrFoc="";
$LStrMM="";	
//
$StrId=V($_POST['TxtId']);
$StrCmd=V($_POST['TxtAc']);
$StrNom=V($_POST['TxtNom']);
$StrPass=V($_POST['TxtPass']);
//
$_SESSION['SYS_USER_ID']="";
$_SESSION['SYS_USER_ID_ALM']="";
$_SESSION['SYS_USER_ALM']="%";
$_SESSION['SYS_HW']="";
//
include("login_fun.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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Iniciar sesion</title>
<?php AddJs(); ?>
<script type="text/javascript" src="ja/funciones.js"></script>
<script type="text/javascript" src="ja/login.js"></script>
<link rel="stylesheet" type="text/css" href="css/estiloss.css"  />
<link rel="stylesheet" type="text/css" href="css/basic.css"  />

<script>
$(document).ready(function(){  
   Inicializar();
   jF("TxtNom");
});
</script>

<style type="text/css">
<!--
body {
	background-color: #CCC;
}
#Layer1 {
	position:absolute;
	left:345px;
	top:115px;
	width:123px;
	height:35px;
	z-index:1;
}
.centrarFrm{
	width:400px;
	height:400px;
	position:absolute;
	left:50%;
	top:50%;
	background-color:#006699;
	margin:-200px 0 0 -200px;	
}
#Layer2 {
	position:absolute;
	left:409px;
	top:205px;
	width:82px;
	height:24px;
	z-index:1;
}
.Estilo1 {
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
	color: #FFFFFF;
}
.Estilo2 {
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
	color: #FFF;
	font-size: 12px;
}
.Estilo3 {color: #FFFFFF; font-size: 12px; font-family: Arial, Helvetica, sans-serif;}
.Estilo4 {color: #000099}
.Estilo5 {color: #000000}
#Frm center #DivFRM #layer .Estilo1 strong {
	color: #900;
}

-->
</style>

</head>
<body  <?php echo $LStrMsg;?>>
<form id="Frm" name="Frm" method="post" action="login.php">
<center> 
<div Id="DivFRM"  class="centrarFrm" >
  
<div class="Estilo2" style="position:absolute; left: 60px; top: 229px; width: 134px; text-align:left">
NOMBRE DE USUARIO</div>
<input name="TxtNom" type="text" 
class="lt" id="TxtNom" style="position:absolute; left: 60px; top: 249px; width:130px"  
tabindex="<?php echo ++$TI;?>" value="" maxlength="15" />

<div class="Estilo2" style="position:absolute; left: 201px; top: 229px; width: 134px;text-align:left">
PASSWORD</div>
<input name="TxtPass" type="password" 
class="lt" id="TxtPass" style="position:absolute; left: 203px; top: 249px; width:130px" 
tabindex="<?php echo ++$TI;?>" value="" maxlength="10" />    
    
<div id="layer4" style="position:absolute; left: 63px; top: 294px; width: 276px; height: 26px; text-align:right">  
<input name="CmdG" type="button" id="CmdG"	
style="width:100px" value="Iniciar sesion"	
onclick="fGuardar();"  
tabindex="<?php echo ++$TI;?>"/>

<input name="CmdB" type="button" id="CmdC" 
style="width:100px" value="Cancelar"
onclick="fCancelar();"
tabindex="<?php echo ++$TI;?>"/>
</div>
   
<?php include("ocultos.php");?>
  
<div id="layer8" style="position:absolute; left: 0px; top: 0px; width: 400px; height: 164px; background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 1px none #000000; z-index: 0;">
<div id="LblTit" class="s1" style="left: 8px; top: 15px; width: 64px; z-index: 100;">
<img src="img/usuariox.png" width="109" height="137" />
</div>
  
<div id="layer" style="position:absolute; left: 136px; top: 35px; width: 208px; height: 24px; z-index: 100; font-weight: bold; font-family: Verdana; color: #900; text-align:left;">
<strong>GESTION</strong>
</div>

<div id="layer9" style="position:absolute; left: 137px; top: 66px; width: 238px; height: 50px; z-index: 100; font-size:11px; font-family: Arial, Helvetica, sans-serif; text-align:left;">
<strong>Bienvenido </strong>, por favor escribamos a marco_sayas@hotmail.com para enviarle las claves de acceso correspondiente y asi pueda la version demo del sistema .<b>Gracias</b>
</div>
</div>
    

<div class="Estilo2" style="position:absolute; left: 60px; top: 192px; width: 272px; text-align:left">
INGRESE LOS DATOS CORRESPONDIENTES</div>

    
<div class="Estilo2" style="position:absolute; left: 60px; top: 332px; width: 280px; text-align:left;">
<?php echo "FECHA : ".date("d-m-Y")." ".GetHora();?></div>


<div class="Estilo2" style="position:absolute; left: 60px; top: 349px; width: 280px; text-align:left;">
<?php echo "INICIANDO DESDE : ".Saber_IP()?></div>


<div id="layer3" style="position:absolute; left: 0px; top: 162px; width: 400px; background-color: #FFCC00; layer-background-color: #FFCC00; border: 1px none #000000; height: 7px;">
</div>


</div>  
</center>	
</form>
</body>
</html>
