<style type="text/css">
/* ESTILOS PARA LA PRESENTACIÓN DEL CORREO */
/* Client-specific Styles */
#outlook a{padding:0;} /* Force Outlook to provide a "view in browser" button. */
body{width:100% !important;} .ReadMsgBody{width:100%;} .ExternalClass{width:100%;} /* Force Hotmail to display emails at full width */
body{-webkit-text-size-adjust:none;} /* Prevent Webkit platforms from changing default text sizes. */
/* Reset Styles */
body{margin:0; padding:0;}
img{border:0; height:auto; line-height:100%; outline:none; text-decoration:none;}
table td{border-collapse:collapse;}
#backgroundTable{height:100% !important; margin:0; padding:0; width:100% !important;}
/* Template Styles */
/* /\/\/\/\/\/\/\/\/\/\ STANDARD STYLING: COMMON PAGE ELEMENTS /\/\/\/\/\/\/\/\/\/\ */
/**
* @tab Page
* @section background color
* @tip Set the background color for your email. You may want to choose one that matches your company's branding.
* @theme page
*/
body, #backgroundTable{
/*@editable*/ background-color:#FAFAFA;
}
/**
* @tab Page
* @section email border
* @tip Set the border for your email.
*/
#templateContainer{
/*@editable*/ border: 1px solid #DDDDDD;
border-top: 5px solid #336699;
}
/**
* @tab Page
* @section heading 1
* @tip Set the styling for all first-level headings in your emails. These should be the largest of your headings.
* @style heading 1
*/
h1, .h1{
/*@editable*/ color:#202020;
display:block;
/*@editable*/ font-family:'Lucida Grande','Lucida Sans Unicode',Arial,Verdana Sans-serif,Helvetica,Arial;
/*@editable*/ font-size:30px;
/*@editable*/ font-weight:bold;
/*@editable*/ line-height:100%;
margin-top:0;
margin-right:0;
margin-bottom:10px;
margin-left:0;
/*@editable*/ text-align:left;
}
/**
* @tab Page
* @section heading 2
* @tip Set the styling for all second-level headings in your emails.
* @style heading 2
*/
h2, .h2{
/*@editable*/ color:#202020;
display:block;
/*@editable*/ font-family:'Lucida Grande','Lucida Sans Unicode',Arial,Verdana Sans-serif,Helvetica,Arial;
/*@editable*/ font-size:25px;
/*@editable*/ font-weight:bold;
/*@editable*/ line-height:100%;
margin-top:0;
margin-right:0;
margin-bottom:10px;
margin-left:0;
/*@editable*/ text-align:left;
}
/**
* @tab Page
* @section heading 3
* @tip Set the styling for all third-level headings in your emails.
* @style heading 3
*/
h3, .h3{
/*@editable*/ color:#202020;
display:block;
/*@editable*/ font-family:'Lucida Grande','Lucida Sans Unicode',Arial,Verdana Sans-serif,Helvetica,Arial;
/*@editable*/ font-size:22px;
/*@editable*/ font-weight:bold;
/*@editable*/ line-height:100%;
margin-top:0;
margin-right:0;
margin-bottom:10px;
margin-left:0;
/*@editable*/ text-align:left;
}
/**
* @tab Page
* @section heading 4
* @tip Set the styling for all fourth-level headings in your emails. These should be the smallest of your headings.
* @style heading 4
*/
h4, .h4{
/*@editable*/ color:#202020;
display:block;
/*@editable*/ font-family:'Lucida Grande','Lucida Sans Unicode',Arial,Verdana Sans-serif,Helvetica,Arial;
/*@editable*/ font-size:18px;
/*@editable*/ font-weight:bold;
/*@editable*/ line-height:100%;
margin-top:0;
margin-right:0;
margin-bottom:10px;
margin-left:0;
/*@editable*/ text-align:left;
}
/* /\/\/\/\/\/\/\/\/\/\ STANDARD STYLING: HEADER /\/\/\/\/\/\/\/\/\/\ */
/**
* @tab Header
* @section header style
* @tip Set the background color and border for your email's header area.
* @theme header
*/
#templateHeader{
/*@editable*/ background-color:#FFFFFF;
/*@editable*/ border-bottom:0;
}
/**
* @tab Header
* @section header text
* @tip Set the styling for your email's header text. Choose a size and color that is easy to read.
*/
.headerContent{
/*@editable*/ color:#202020;
/*@editable*/ font-family:'Lucida Grande','Lucida Sans Unicode',Arial,Verdana Sans-serif,Helvetica,Arial;
/*@editable*/ font-size:34px;
/*@editable*/ font-weight:bold;
/*@editable*/ line-height:100%;
/*@editable*/ padding:20px 10px;
/*@editable*/ background: #ddd;
/*@editable*/ text-align:center;
/*@editable*/ vertical-align:middle;
}
/**
* @tab Header
* @section header link
* @tip Set the styling for your email's header links. Choose a color that helps them stand out from your text.
*/
.headerContent a:link, .headerContent a:visited, /* Yahoo! Mail Override */ .headerContent a .yshortcuts /* Yahoo! Mail Override */{
/*@editable*/ color:#336699;
/*@editable*/ font-weight:normal;
/*@editable*/ text-decoration:underline;
}
#headerImage{
height:auto;
max-width:600px !important;
}
/* /\/\/\/\/\/\/\/\/\/\ STANDARD STYLING: MAIN BODY /\/\/\/\/\/\/\/\/\/\ */
/**
* @tab Body
* @section body style
* @tip Set the background color for your email's body area.
*/
#templateContainer, .bodyContent{
/*@editable*/ background-color:#FFFFFF;
}
.bodyContent{
/*@editable*/ padding: 20px;
}
/**
* @tab Body
* @section body text
* @tip Set the styling for your email's main content text. Choose a size and color that is easy to read.
* @theme main
*/
.bodyContent div{
/*@editable*/ color:#505050;
/*@editable*/ font-family:'Lucida Grande','Lucida Sans Unicode',Arial,Verdana Sans-serif,Helvetica,Arial;
/*@editable*/ font-size:14px;
/*@editable*/ line-height:150%;
/*@editable*/ text-align:left;
}
/**
* @tab Body
* @section body link
* @tip Set the styling for your email's main content links. Choose a color that helps them stand out from your text.
*/
.bodyContent div a:link, .bodyContent div a:visited, /* Yahoo! Mail Override */ .bodyContent div a .yshortcuts /* Yahoo! Mail Override */{
/*@editable*/ color:#336699;
/*@editable*/ font-weight:normal;
/*@editable*/ text-decoration:underline;
}
/**
* @tab Body
* @section button style
* @tip Set the styling for your email's button. Choose a style that draws attention.
*/
.templateButton{
-moz-border-radius:3px;
-webkit-border-radius:3px;
/*@editable*/ background-color:#336699;
/*@editable*/ border:0;
border-collapse:separate !important;
border-radius:3px;
}
/**
* @tab Body
* @section button style
* @tip Set the styling for your email's button. Choose a style that draws attention.
*/
.templateButton, .templateButton a:link, .templateButton a:visited, /* Yahoo! Mail Override */ .templateButton a .yshortcuts /* Yahoo! Mail Override */{
/*@editable*/ color:#FFFFFF;
/*@editable*/ font-family:'Lucida Grande','Lucida Sans Unicode',Arial,Verdana Sans-serif,Helvetica,Arial;
/*@editable*/ font-size:15px;
/*@editable*/ font-weight:bold;
/*@editable*/ letter-spacing:-.5px;
/*@editable*/ line-height:100%;
padding: 15px;
text-align:center;
text-decoration:none;
}
.templateButton:hover{
opacity: .7;
}
.bodyContent img{
display:inline;
height:auto;
}
/* /\/\/\/\/\/\/\/\/\/\ STANDARD STYLING: FOOTER /\/\/\/\/\/\/\/\/\/\ */
/**
* @tab Footer
* @section footer style
* @tip Set the background color and top border for your email's footer area.
* @theme footer
*/
#templateFooter{
/*@editable*/ background-color:#FFFFFF;
/*@editable*/ border-top:0;
}
/**
* @tab Footer
* @section footer text
* @tip Set the styling for your email's footer text. Choose a size and color that is easy to read.
* @theme footer
*/
.footerContent div{
/*@editable*/ color:#707070;
/*@editable*/ font-family:'Lucida Grande','Lucida Sans Unicode',Arial,Verdana Sans-serif,Helvetica,Arial;
/*@editable*/ font-size:12px;
/*@editable*/ line-height:125%;
/*@editable*/ padding: 20px;
}
.footerContent div.baja{
padding: 10px 20px;
text-align: center;
background: #e9e9e9
}
/**
* @tab Footer
* @section footer link
* @tip Set the styling for your email's footer links. Choose a color that helps them stand out from your text.
*/
.footerContent div a:link, .footerContent div a:visited, /* Yahoo! Mail Override */ .footerContent div a .yshortcuts /* Yahoo! Mail Override */{
/*@editable*/ color:#336699;
/*@editable*/ font-weight:normal;
/*@editable*/ text-decoration:underline;
}
.footerContent img{
display:inline;
vertical-align: middle;
}
/**
* @tab Footer
* @section utility bar style
* @tip Set the background color and border for your email's footer utility bar.
* @theme footer
*/
#utility{
/*@editable*/ background-color:#FFFFFF;
/*@editable*/ border:0;
}
/**
* @tab Footer
* @section utility bar style
* @tip Set the background color and border for your email's footer utility bar.
*/
#utility div{
/*@editable*/ text-align:center;
}
#monkeyRewards img{
max-width:190px;
}
.aviso-legal{
border-top: 2px solid #336699;
}
#social{
background: #e9e9e9;
padding: 10px 0;
}
#social img{
vertical-align: middle;
vertical-align: middle;
margin-right: 5px;
background: #222;
border-radius: 5px;
}
</style>
<?
$sqlConsigoDatos = "SELECT * FROM bisioncorreos WHERE id='1'";
$resConsigoDatos = mysqli_query($conn,$sqlConsigoDatos) or die(mysqli_error());
$filaCD = mysqli_fetch_array($resConsigoDatos);
//redes sociales
$sqlredes = "SELECT * FROM bisionnewsredessociales";
$resredes = mysqli_query($conn,$sqlredes) or die ("error en el servidor");
$cantidad_redes = mysqli_num_rows($resredes);
$contador = 0;
while( $arr_asoc_redes = mysqli_fetch_array($resredes)){
if(($arr_asoc_redes['enlace']!="http://") and ($arr_asoc_redes['enlace']!="")){
$red .= ' <a href="'.$arr_asoc_redes['enlace'].'" target="_blank"><img src="'.PROTOCOL.DOMAIN_NAME.'administracion/news/redesSociales/img/'.$arr_asoc_redes['imagen'].'" alt="enlace a '.$arr_asoc_redes['titulo'].'" height="23" width="23" />'.$arr_asoc_redes['titulo'].'</a> ';
}
}
$firma = $firmado;
$identificador = $filaCD['identificador'];
$presenta = $filaCD['mensaje'];
$tit = $filaCD['asunto'];
$idNew = $filaCD['idNew'];
$idAlbum = $filaCD['idAlbum'];
$tipoarchivo = $filaCD['tipoarchivo'];
$familia = $filaCD['familia'];
$nombreTabla = $filaCD['nombreTabla'];
$ruta = $filaCD['ruta'];
$lista = $_POST['lista'];
$tiempo = $filaCD['tiempo'];
$nombreEmpresa = $fila['nombre'];
$eslogan = $filaCD['eslogan'];
$tratamiento = $filaCD['tratamiento'];
$despedida = $filaCD['despedida'];
$enmascaramientoEnlace = $filaCD['enmascaramientoEnlace'];
$logotipoCorreo = $fila['logotipoCorreo'];
?>
<center>
<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="backgroundTable">
<tr>
<td align="center" valign="top" style="padding-top:20px;">
<table border="0" cellpadding="0" cellspacing="0" width="600" id="templateContainer">
<tr>
<td align="center" valign="top">
<!-- // Begin Template Header \\ -->
<table border="0" cellpadding="0" cellspacing="0" width="600" id="templateHeader">
<tr>
<td class="headerContent">
<!-- // Begin Module: Standard Header Image \\ -->
<img src="<?=$dominio?>administracion/news/news/img/logotipo/<?=$logotipoCorreo?>" style="max-width:600px;" id="headerImage campaign-icon" mc:label="header_image" mc:edit="header_image" mc:allowdesigner mc:allowtext />
<!-- // End Module: Standard Header Image \\ -->
</td>
</tr>
</table>
<!-- // End Template Header \\ -->
</td>
</tr>
<tr>
<td align="center" valign="top">
<!-- // Begin Template Body \\ -->
<table border="0" cellpadding="0" cellspacing="0" width="600" id="templateBody">
<tr>
<td valign="top">
<!-- // Begin Module: Standard Content \\ -->
<table border="0" cellpadding="20" cellspacing="0" width="100%">
<tr>
<td valign="top" class="bodyContent">
<div mc:edit="std_content00">
<h1 class="h1"><?=$nombreEmpresa?></h1>
<h2 class="h2"><em><?=$eslogan?></em></h2>
<strong><? if($tratamiento!=""){ echo $tratamiento; }else{ echo "Tratamiento del correo"; } ?></strong>
<? if($presenta!=""){ ?>
<?=nl2br($presenta)?>
<? }else{ ?>
Texto del correo. Texto de ejemplo:<br />Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam at mi ipsum. Donec a libero mi, ac vehicula libero. Proin porttitor diam nec nibh dignissim nec aliquam arcu aliquam. Aenean ante elit, luctus eu elementum vitae, aliquam a purus. Vivamus pellentesque ultrices dui, quis vestibulum dolor consequat eu.
<? } ?>
<br />
<br />
</div>
</td>
</tr>
<tr>
<td align="center" valign="top" style="padding-top:0;">
<table border="0" cellpadding="15" cellspacing="0" class="templateButton">
<tr>
<td valign="middle" class="templateButtonContent">
<div mc:edit="std_content01">
<a href="#" target="_blank"><? if($enmascaramientoEnlace!=""){ echo $enmascaramientoEnlace; }else{ echo "Enmascaramiento del enlace"; } ?></a>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- // End Module: Standard Content \\ -->
</td>
</tr>
</table>
<!-- // End Template Body \\ -->
</td>
</tr>
<tr>
<td align="center" valign="top">
<!-- // Begin Template Footer \\ -->
<table border="0" cellpadding="10" cellspacing="0" width="600" id="templateFooter">
<tr>
<td valign="top" class="footerContent">
<!-- // Begin Module: Transactional Footer \\ -->
<table border="0" cellpadding="10" cellspacing="0" width="100%">
<tr>
<td valign="top">
<div mc:edit="std_footer">
<em><? if($despedida!=""){ echo $despedida; }else{ echo "Despedida del correo"; } ?></em>
<br /><br />
<?=$firmahtm?>
<br />
</div>
</td>
</tr>
<tr>
<td valign="middle" id="utility">
<div id="social" mc:edit="std_utility">
<?=$red;?>
</div>
</td>
</tr>
<tr>
<td valign="top">
<div class="aviso-legal"><strong>AVISO LEGAL</strong><br><?=nl2br($avisoLegal)?></div>
<div class="baja">
Para darse de baja envíe un mensaje a <a href= mailto:<?=$desde?>?subject=BAJA%20NEWS ><?=$desde?></a> indicando en el asunto BAJA NEW
</div>
</td>
</tr>
</table>
<!-- // End Module: Transactional Footer \\ -->
</td>
</tr>
</table>
<!-- // End Template Footer \\ -->
</td>
</tr>
</table>
<br />
</td>
</tr>
</table>
</center>