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/www/consulta_morosos_coopservinet_cifin.php
.<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Coopservinet  Reporte Negativo</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:#FFFFFF; width:90px; height:25; border: 3px solid #0000CC; font-family:Arial; 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(ELEMENTOS/lila.jpg);
}
.Estilo3 {color: #FF6633}
-->
</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>
</head>
<form name="formulario" action="" method="post">
<body onLoad="document.formulario.cedula.focus()" leftmargin="0" topmargin="0" marginwidth="20" marginheight="20">
<center> <img src="ELEMENTOS\CABEZOTE SERVIASJUDINET.jpg" WIDTH=60% > </center>
<br>
<table width="546" border="5" cellspacing="3" cellpadding="3" align="center" bgcolor="#0000FF">
  <tr>
    <td width="647"><fieldset><table width="532" border="2" align="center" cellpadding="2" cellspacing="2" bgcolor="BLACK">
  <tr bgcolor="#FFFFCC">
    <td width="560" bgcolor="#EEEEEE" class="Estilo2"><div align="center" class="dani"><strong>VALIDACION CEDULA COOPSERVINET PARA REPORTE NEGATIVO A LA CIFIN</strong></div></td>
  </tr>
  <tr bgcolor="#ECE9D8">
    <td height="22" bgcolor="#EEEEEE" class="fecha"><div align="center">
      <script languaje="JavaScript">Mostrar_Fecha()</script>
    </div></td>
  </tr>
  <tr bgcolor="#FFCC99">
    <td height="42" bgcolor="#CCCC99"><fieldset>
   <p>
    <legend><span class="Estilo2" ><strong>Ingrese número de identificación:</strong></span></legend>
   </p>
   <table width="509" border="2" cellspacing="0" cellpadding="0">
    <tr>
 <td width="255" bgcolor="#CCCC99"><span class="Estilo2"><strong>C&eacute;dula (Titular):</strong></span> </td>
 <td width="287" bgcolor="#CCCC99"><input name="cedula" type="text" border="8" class="Estilo2" id="cedula" value="" size="15" maxlength="15" ></td> 
     </tr>
 </table>
    </fieldset></td></tr>
  <tr bgcolor="#ECE9D8">
    <td bgcolor="#ECE9D8">&nbsp;</td>
  </tr>
  <tr bgcolor="#FFCC99">
    <td bgcolor="#ECE9D8"><div align="center">
      <input name="consultar" id="consultar" type="submit" value="Consultar">
      <input name="button" type="button" onclick="history.back()" value="Atr&aacute;s">
      <input name="button" type="button" onclick="window.location.reload()" value="Actualizar">
   </div></td>
  </tr>
</table>
</fieldset></td>
  </tr>
</table>
</form>
</body>
</html>

<?php
 require_once("Conectarse.php");
	
if(isset($_POST["consultar"]))
{
    echo "<form name='form' action='' method='post'>";
    require_once("mainfile.php");
    include ("config.php");
   global $dbi;
 
   
         
	    
$control = mysql_query('SELECT cedula,nombre_completo,numero,tipo FROM cobranzas WHERE cedula = "' . $_POST[cedula] . '" and (tipo="SP01" || tipo="SP02" || tipo="SP03" || tipo="SP04" || tipo="SP05" || tipo="SP09" || tipo="SP10" || tipo="SP11" || tipo="SCP1" || tipo="SCP2" || tipo="SLITI")');
		  if (!$control) {
				die('Invalid query 4 aqui: ' . mysql_error());
			}
                      if ((mysql_num_rows($control)!=0)) 
	                    {	 
                              echo "<TABLE width='1000' border='0' align='center' cellpadding='0' cellspacing='1'>
                              <TR>
                              <TD bgcolor='#CCCC99'><div align='center'><span bgcolor='#CCCC99'>NOMBRE</span></div></TD>
                              <TD bgcolor='#CCCC99'><div align='center'><span bgcolor='#CCCC99'>CEDULA</span></div></TD>		 
                              <TD bgcolor='#CCCC99'><div align='center'><span bgcolor='#CCCC99'>TIPO</span></div></TD>
							  <TD bgcolor='#CCCC99'><div align='center'><span bgcolor='#CCCC99'>CONTRATO</span></div></TD>";

                             while(list($cedula, $nombre,$contrato, $tipo) = mysql_fetch_row($control)) 
                              {  
                                  
                                   printf("<tr>
                                  												   
                                   <td bgcolor='#ECE9D8'><div align='center' class='lista'>".$nombre."</span></div></td>
					               <td bgcolor='#ECE9D8'><div align='center' class='lista'><input type='button' value=$cedula name='ced'  class=Estilo4 onClick =window.open('captura_morosos_coopservi_cifin.php?id=$cedula&contrato=$contrato&tipo=$tipo','','top=50,left=100,toolbar=yes,scrollbars=yes,width=1500,height=1200,status=yes')></a></span></div></td>								   					   								   
		                           <td bgcolor='#ECE9D8'><div align='center' class='lista'>". $tipo."</span></div></td>
								   <td bgcolor='#ECE9D8'><div align='center' class='lista'>".$contrato."</span></div></td>");
                               		   } 
							   		}
									else
						{
	 echo "<script>alert('Cedula no existe en la base de datos');</script>";
						}
									  
									
							   }
			                       echo "</table>";		  
                     
						
						
					
   
						

echo "</form>";
?>