<?
$sql = "SELECT * FROM bisioncorreos WHERE id=1";
$res= mysqli_query($conn,$sql) or die (mysqli_error($conn));
$fila = mysqli_fetch_array($res);
//redes sociales
$sqlRedes="SELECT * FROM bisionnewsredessociales";
$resRedes=mysqli_query($conn,$sqlRedes) or die ("error en el servidor");
?>
<header class="bg-3">
<div class="main">
<div class="logo">
<a href="<?=PROTOCOL.DOMAIN_NAME?>"><img src="img/logotipo/<?=$fila['logotipoCorreo']?>" alt="Logo - <?= CLIENT_NAME ?>" width="<?=$ancho?>" height="<?= $alto?>" /></a>
</div>
<div class="content-div">
<span>
<? if ( $fila['direccion'] != "") { ?>
<?=$fila['direccion']?>
<? } ?>
<? if ( $fila['cp'] != "") { echo " - ".$fila['cp']; } ?>
<? if ( $fila['poblacion'] != "") { echo " ".$fila['poblacion']; } ?>
<? if ( $fila['provincia'] != "") { echo " (".$fila['provincia'].")"; } ?>
<br>
</span>
<span class="tel">
<a href="tel:<?=($fila['telefono'])?>"><?=$fila['telefono']?></a>
<? if ( $fila['movil'] != "") { ?>
| <a href="tel:<?=($fila['movil'])?>"><?=$fila['movil']?></a>
<? } ?>
</span>
<div class="redes-sociales">
<?
while($arr_redes = mysqlI_fetch_array($resRedes)){
if(($arr_redes['enlace']!="http://") and ($arr_redes['enlace']!="")){?>
<a href="<?= $arr_redes['enlace']?>" target="_blank" ><img src="../../news/redesSociales/img/<?=$arr_redes['imagen']; ?>" alt="enlace a <?= $arr_redes['titulo'] ?>" height="32" width="32" /></a>
<? }
}
?>
</div>
</div>
</div>
</header>
<div class="clearfix"></div>