File: /home/asjudine/www/acorreos/mensaje_cumpleanos.php
<?php
global $dbi;
require_once("../Conectarse.php");
$cedula = $_GET[Identificacion];
//echo "La cedula : " . $cedula;
$mssql = mysql_query("select cedula, nombre FROM cartera_serviasjudinet WHERE cedula = $cedula");
//$sql = "select cedula, nombre from asjudinet_cartera where cedula = $cedula";
//$control = mysql_query($sql) or die(mysql_error());
if (!$mssql) {
die('Error: ' . mysql_error());
}
//$sql = "select cedula, nombre from asjudinet_cartera where cedula = $cedula";
//$control = mysql_query($sql, $dbi) or die(mysql_error());
if ((mysql_num_rows($mssql)!=0))
{
list($cc, $nc) = mysql_fetch_array($mssql);
}
else
{
echo "<script>alert('Su cédula no figura registrada');</script>";
echo "<SCRIPT LANGUAGE='javascript'>window.location.href='cumpleanos_consulta.php'</SCRIPT>";
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Documento sin título</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
background-color: #0099FF;
}
.letras {font-family:Arial; font-style:italic; font-weight:bold; height:auto; color:#FFFFCC;}
-->
</style>
</head>
<body>
<BGSOUND src="" loop=3> </NOSCRIPT>
<table width="464" border="1" align="center" cellpadding="2" cellspacing="1">
<tr>
<td width="657"><p>Señor(a):
<input type="text" name="nombres" size="60" maxlength=" " value="<?php echo $nc ?>">
</p>
<p align="justify" class="letras">Serviasjudinet, presenta un cordial y efusivo saludo con motivo de su cumpleaños, deseándole que cumpla muchos años en compañía de ésta, su empresa.</p></td>
</tr>
<tr>
<td align="center"><div align="center"> <EMBED width=400 height=300 src=ELEMENTOS/MARIACHIS.wmv autostart="true" showControls="0" playcount="3" volume="100"> </NOSCRIPT></div>
<img src="ELEMENTOS/logitos.JPG" width="300" height="30"></td>
</tr>
<tr>
<td><div align="center">
<table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td rowspan="2"><img src="ELEMENTOS/tortas.jpg" width="260" height="222"></td>
</tr>
<tr>
<td><p><img src="ELEMENTOS/champana.jpg" width="205" height="222"></p> </td>
</tr>
</table>
</div></td>
</tr>
</table>
</body>
</html>