MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: /home/asjudine/public_html/consulta_fecha_nacim.php
.<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Consulta Envio Mensaje de Cumpleaņos</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style type="text/css">
<!--
.titulos {font: 16px; color: red; font-family:Arial; font-weight:bold}
.boton {background-color: #FFCCCC; color:#990000; width:90px; height:25; border: 3px solid #0000CC; font-family:Geneva, Arial, Helvetica, sans-serif; color:#990000;}
.texto {background-color: #CCFFCC; font-size: 11px; font-family: Arial; color:#0000CC; display: block;}
.fecha {font-size: 12px; font-family: Arial; color:#990000; display: block; }
.campo {background-color:#FFFFAA; width: 100px; border:2px solid #990000;}
.lista {font-family: Arial; font-size: 11px;	color: #990000;}
.Estilo2 {font-family: Arial;	font-size: 16px;	color: #990000;}
.boton2 {font-family: Verdana; font-size: 8 pt; color: #000080; background-color: #C0C0C0; border-style: solid; width:70px; height:22px;}
body {
	background-image: url();
}
-->
</style>
<script languaje="JavaScript">
function Mostrar_Fecha()
{
         var mydate=new Date()
         var year=mydate.getYear()
         if (year < 1000)
                 year+=1900
                 var day=mydate.getDay()
                 var month=mydate.getMonth()
                 var daym=mydate.getDate()
                 if (daym<10)
                    daym="0"+daym
                    var dayarray=new Array("Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sabado")
                    var montharray=new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre")
                    document.write("<b><font face='Arial, Helvetica, sans-serif'>"+dayarray[day]+" "+daym+" de "+montharray[month]+" de "+year+"</font></b>")
}					
</script>
<script language="javascript">
function AbreGral()
{ 
    var menu;   
	menu=window.open("mostrar_ingreso.php","","toolbar=no,scrollbars=no,width=800,height=500,status=yes");  
	menu.focus();  
	var ventana = window.self;  
	ventana.opener = window.self;  
	ventana.close();
}
</script>
<link href="file:///C|/Documents%20and%20Settings/web%20master/Mis%20documentos/jobany1.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.Estilo3 {color: #0066FF}
-->
</style>
</head>
<body onLoad="document.formulario.cedula.focus()" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form name="formulario" action="" method="post">
<table width="671" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td><fieldset><table width="669" border="0" align="center" cellpadding="2" cellspacing="2">
  <tr bgcolor="#FFFFCC">
    <td class="titulos"><div align="center">CONSULTA FECHA NACIMIENTO</div></td>
  </tr>
  <tr bgcolor="#ECE9D8">
    <td height="22" class="fecha"><div align="center">
      <script languaje="JavaScript">Mostrar_Fecha()</script>
    </div></td>
  </tr>
  <tr bgcolor="#FFCC99">
    <td height="42"><fieldset>
   <legend><span class="texto">Ingrese  fecha de nacimiento (mes-dia):</span></legend>
    <table width="509" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td colspan="2">&nbsp;</td>
        <td colspan="4">&nbsp;</td>
      </tr>
      <tr>
        <td width="75" height="22"><div align="right"><span class="Estilo2 Estilo3"><strong>Fecha :</strong></span></div></td>
        <td width="50"><div align="right"><span class="Estilo2">Mes :</span></div></td>
        <td width="26"><div align="right">
            <label> </label>
          <div align="left">
            <select name="mes1" id="mes1">
              <option value="01" selected>1</option>
              <option value="02">2</option>
              <option value="03">3</option>
              <option value="04">4</option>
              <option value="05">5</option>
              <option value="06">6</option>
              <option value="07">7</option>
              <option value="08">8</option>
              <option value="09">9</option>
              <option value="10">10</option>
              <option value="11">11</option>
              <option value="12">12</option>
              </select>
          </div>
        </div></td>
        <td width="41"><div align="right"><span class="Estilo2"> Dia :</span></div></td>
        <td width="56"><div align="left">
          <input name="dia1" type="text" id="dia1" size="3" maxlength="2">
        </div></td>
        <td width="261">&nbsp;</td>
      </tr>
    </table>
    </fieldset></td></tr>
  <tr bgcolor="#FFCC99">
    <td>&nbsp;</td>
  </tr>
  <tr bgcolor="#FFCC99">
    <td><div align="center">
      <input name="consultar" id="consultar" type="submit" class="boton" value="Consultar">
      <input name="button" type="button" class="boton" onclick="history.back()" value="Atr&aacute;s">
      <input name="button" type="button" class="boton" onclick="window.location.reload()" value="Actualizar">
    </div></td>
  </tr>
</table>
</fieldset></td>
  </tr>
</table>
<p align="center">&nbsp;</p>
</form>
</body>
</html>

<?php
if(isset($_POST["consultar"]))
{
    echo "<form name='form' action='' method='post'>";
    require_once("mainfile.php");
    include ("config.php");
    global $dbi;
	require_once("Conectarse.php");
	
	
	$linea = '-';
	

   
   $fechan=$_POST[dia1].'-'.$_POST[mes1];


   $mssql = mysql_query('SELECT * FROM cartera_serviasjudinet WHERE fecha_nacimiento = "' .$fechan. '" ');
			if (!$mssql) {
				die('Invalid query: ' . mysql_error());
			} 
   if($mssql)
   {
         $filas = mysql_num_rows($mssql);
         if ($filas > 0)
         {
	
 $control = mysql_query('SELECT cedula, nombre, grado, numerocontrato,  tipocontrato, fecha_nacimiento,celular FROM cartera_serviasjudinet WHERE fecha_nacimiento = "' .$fechan. '" and estado="1" ');
			if (!$control) {
				die('Invalid query: ' . mysql_error());
			} 
                      if ((mysql_num_rows($control)!=0))
	                    {	 
                              echo "<TABLE width='650' border='3' align='center' cellpadding='0' cellspacing='1'>
                              <TR>
                              <TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>CEDULA</span></div></TD>
							  <TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>CEDULA</span></div></TD>
                              <TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>NOMBRE</span></div></TD>	
                              <TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>GRADO</span></div></TD>
                              <TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>FECHA NACIMIENTO</span></div></TD>
							  <TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>CELULAR</span></div></TD>";

                             while(list($cedula, $apellidos_noms, $grado, $contrato, $tipo, $fecha_nacimiento,$celular) = mysql_fetch_row($control)) 
                              {  
                              $sum = $sum + 1;        

                                   printf("<tr>
                                   
                                   <td bgcolor='#ECE9D8'><div align='center' class='lista'><input type='button' value=$cedula name='proceso' class=boton2 onClick =window.open('Enviar_Respuestas_texto.php?id=$cedula&numcon=$contrato&tipo=$tipo','','top=50,left=100,toolbar=no,scrollbars=yes,width=850,height=650,status=yes')></a></span></div></td>
								   <td bgcolor='#C5D6FC'><div align='center' class='lista'>".$cedula."</span></div></td>
					               <td bgcolor='#C5D6FC'><div align='center' class='lista'>".$apellidos_noms."</span></div></td>								
		                           <td bgcolor='#C5D6FC'><div align='center' class='lista'>".$grado."</span></div></td>								
		                           <td bgcolor='#C5D6FC'><div align='center' class='lista'>".$fecha_nacimiento."</span></div></td>
								    <td bgcolor='#C5D6FC'><div align='center' class='lista'>".$celular."</span></div></td>");
                               }
			                       echo "</table>";		  
                        }
						
						echo "<table width='10' border='2' align='center' cellpadding='1' cellspacing='1' class='est_cont5'>
                        <tr>
        					<td><div align='center'><strong>TOTAL</strong></div></td></tr>";		
							 printf("<TR> 
							 <TD bgcolor='#C5D6FC'><div align='center' class='lista'>".$sum."</span></div></TD>	</TR>");
		   
	      }
     }
    else
    {
          echo "<script>alert('No existe informacion en ese rango de fecha');</script>";
    }
}
echo "</form>";
?>