<?php session_start();
require('../cfg/cfg.php');
require('../cfg/res.php');
$pagina_descri='CONTACTOS';
$pagina_nivel;
$pagina_tipo;
?>
<!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><?php echo $empr_nombre.'-'.$_SESSION['user_vcrx_id'].'-'.$pagina_descri;?>  </title>
<link rel="stylesheet" href="http://vcrxol.com/_css/comun.css" type="text/css" />
<link rel="stylesheet" href="../css/comun2.css" type="text/css" />
<style>
body{ font-size:12px; padding:0px; margin:0px;}
.txt_adr{ width:100%;}
</style>
<script type="text/javascript" src="../js/jquery-1.11.1.js"></script>
<script type="text/javascript">
<?php include('../../_js/busca_maes3.js');?>
<?php include('../../_js/lista_maes3.js');?>
<?php include('../../_js/fecha_format.js');?>
</script>
</head>
<body style="padding:0px; margin:0px;">
<div style="height:5px; margin:-1px 0px 0px 0px; padding:0px;"><div id="barra_azul" style=" background:#06F; height:5px;"></div></div>
<div align="center" >
	<div align="center"><?php include('../../_lib/cabecera2.php');?></div>
    <div align="center">
	

<?php
$ci=$_POST['ci'];
if(empty($ci))
{
	$ci=$_GET['ci'];
}

	$enti_sql='select *from enti00 where enti_codigo="'.$ci.'"';
	$enti_res=mysql_query($enti_sql,$link_vcrx);
	$enti_nom=mysql_result($enti_res,0,'enti_descri');
	$enti_ci=$ci;
	$enti_telefono=mysql_result($enti_res,0,'enti_telefono');
	$enti_ciudad=mysql_result($enti_res,0,'cdad_descri');
	$enti_provincia=mysql_result($enti_res,0,'prvc_descri');
	$enti_direccion=mysql_result($enti_res,0,'enti_calle1');
	$enti_direccion.=' ';
	$enti_direccion.=mysql_result($enti_res,0,'enti_calle2');
	$enti_direccion.=' ';
	$enti_direccion.=mysql_result($enti_res,0,'enti_calle3');
	$enti_direccion.=' ';
	$enti_direccion.=mysql_result($enti_res,0,'enti_callen');



?>

<table  cellspacing="4" width="100%">
<tr>
	<td width="12%" style="font-weight:bolder;">PARA:</td>
    <td width="88%"><?php echo $enti_nom;?></td>
</tr>
<tr>
	<td style="font-weight:bolder;">CEDULA</td>
    <td><?php echo $enti_ci;?></td>
</tr>
<tr>
	<td style="font-weight:bolder;">TELF;</td>
    <td><?php echo $enti_telefono;?></td>
</tr>

<tr>
	<td style="font-weight:bolder;">CIUDAD</td>
    <td><?php echo $enti_ciudad.' - '.$enti_provincia;?></td>
</tr>

<tr>
	<td style="font-weight:bolder;">DIRECCION</td>
    <td><?php echo $enti_direccion;?></td>
</tr>
</table>



<?php		
$sql_adrs='select *from adrs0 where adrs_enti="'.$ci.'" and adrs_status!="X"';
$res_adrs=mysql_query($sql_adrs,$link_vcrx);
?>
 <table border="1" width="100%" style="font-size:12px;border-collapse:collapse;">
			<tr valign="top"  style="font-size:14px; font-weight:bolder; background:#CCC;">
                <th>TEL.</th>
                <th>EXT.</th>
                <th>CONTACTO.</th>
                <th>CALLE 1 /CDLA. /EDIF.</th>
                <th>CALLE 2 /MZ /PISO</th>
                <th>NUM. /VILLA /DPTO</th>
                <th>REFERENCIA(casa):</th>
                <th>PROV /CIUDAD:</th>
                <th>EMAIL:</th>
            </tr>

            
            <?php while($r_adrs=mysql_fetch_assoc($res_adrs)){?>
			<tr valign="top">		
                <td><?php echo $r_adrs['adrs_tlfn'];?></td>
                <td><?php echo $r_adrs['adrs_ext'];?></td>
                <td><?php echo $r_adrs['adrs_contacto'];?></td>
                <td><?php echo $r_adrs['adrs_calle1'];?></td>
                <td><?php echo $r_adrs['adrs_calle2'];?></td>
                <td><?php echo $r_adrs['adrs_calle3'];?></td>
                <td><?php echo $r_adrs['adrs_callen'];?></td>
                <td><?php echo $r_adrs['adrs_ciudad'];?></td>
                <td><?php echo $r_adrs['adrs_email'];?></td>
            </tr>
			<?php }?>
</table>
  			
    
    </div>
</div>
</body>
</html>