<?php
ini_set("session.cookie_lifetime",60*60*10);
ini_set("session.gc_maxlifetime", 60*60*10);
session_start();
include("cls_conexion.php");$CNN=new ClsMySQL();include("conexion23.php");
if(strlen($_SESSION['SYS_USER_ID'])==0){JsDir("login.php");	return;}
//
if(vbval($_SESSION['SYS_USER_GI'])!=USU_GET_GI($_SESSION['SYS_USER_ID'])){
JsDir("cerrar.php");	
return;
}
//
$StrGT="";	
$LStrMsg="";
$LStrFoc="";
$LStrMM="";	
$LStrPag=V($_POST['TxtPag']);	
include("imp_clientes_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>Importar datos de clientes</title>
<script type="text/javascript" src="fe/funciones.js"></script>
<script type="text/javascript" src="fe/imp_clientes.js"></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:700px;
height:300px;
position:absolute;
left:<?php echo "50%";?>;
top:<?php echo "50%";?>;
background-color:#006699;
margin:<?php echo "-150px";?> 0 0 <?php echo "-350px";?>;

}
#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;
}
.f2 {font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #FFFFFF; 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="imp_clientes.php" 
enctype="multipart/form-data">
<center> 
<div Id="DivFRM"  class="centrarFrm" >
<div id="layer" style="position:absolute; left: 116px; top: 21px; width: 412px; height: 45px; z-index: 100;">
<div align="left" class="Estilo1">
<input name="TxtId" type="hidden" id="TxtId" value="<?php echo $StrId;?>"/>
<input name="TxtAc" type="hidden" id="TxtAc" value="" />
<strong>IMPORTAR DATOS DE CLIENTES</strong></div>
</div>
<div id="LblTit" style="position:absolute; left: 52px; top: 15px; width: 64px; z-index: 100;">
<div align="left" class="Estilo1"><img src="img/marcas.gif" width="48" height="48" /></div>
</div>
<div id="layer8" style="position:absolute; left: 0px; top: 0px; width: 700px; height: 79px; background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 1px none #000000; z-index: 0;">
<div align="left" class="Estilo1">        
</div>
</div>
<input name="CmdB" type="button" id="CmdZ" 
style="position:absolute; left: 60px; top: 86px; width: 65px;"
value="Menu" 
onclick="fBuscar('menu.php');"  
tabindex="7"/>
<div id="layer6" style="position:absolute; left: 136px; top: 90px; width: 230px; background-color:#FFF">
<div align="center" class="f2"><a href="ModClientes.xls" download>DESCARGAR MODELO</a></div>
</div>

<div id="layer6" style="position:absolute; left: 60px; top: 128px; width: 230px;">
<div align="left" class="f2">
SELECCIONAR ARCHIVO
</div>
</div>

<div id="layer27" 
style="position:absolute; left: 60px; top: 147px; width: 594px; height: 27px;">
<div align="left" class="f2">
<input name="CmdB" type="button" id="CmdImportar" value="Importar" onclick="fImportar();" disabled="disabled"
tabindex="4"/>
<input type="hidden" name="MAX_FILE_SIZE" value="2000000" />
<input name="userfile" type="file" id="userfile"   disabled="disabled"
tabindex="9"/>
</div>
</div>
</div>
</center>	
</form>
</body>
</html>
