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/listar_carpetas1_cprn1.php
<?php


	 require_once("mainfile.php");
     include ("config.php");
     global $dbi;
	 
	 require_once("Conectarse.php");
	?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Capturar gestion Juridica 2</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.Estilo1 {font-family: "Arial Narrow"}
.Estilo2 {
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
}
.Estilo10 {font-weight: bold}
.Estilo17 {font-size: 14}
.Estilo18 {font-family: "Arial Narrow"; font-weight: bold; font-size: 14; }
.Estilo19 {font-family: "Arial Narrow"; font-weight: bold; }
.Estilo22 {
	color: #FF0000;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
}
.Estilo24 {color: #FF0000}
.Estilo25 {font-size: 11px; font-family: Arial, Helvetica, sans-serif; }
-->
</style>

<script Language="JavaScript"><!--
function validar(formulario)
{

  if (formulario.cedula.value == "")
  {
    alert("Ingrese número de cédula del deudor");
    formulario.cedula.focus();
    return (false);
  }

  if (formulario.dia_act.value > 31)
  {
    alert("El número de día no se debe exceder de 31");
    formulario.dia_act.focus();
    return (false);
  }

  if (formulario.mes_act.value > 12)
  {
    alert("El número del mes no se debe exceder de 12");
    formulario.mes_act.focus();
    return (false);
  }


  return (true);
}
//--></script>

<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>

</head>
<body onload="document.formulario.cedula.focus()">
<form method="post" name="formulario" action="" onSubmit="return validar(this)">
<table width="702" border="0" align="center" cellpadding="3" cellspacing="3">    
  <tr valign="baseline" bgcolor="#0099FF">
    <td colspan="4" align="right" nowrap bgcolor="#FFFFCC"><div align="center"><span class="Estilo2">CAPTURAR GESTION COBRANZAS </span>CPRN1</div></td>
  </tr>
  <tr valign="baseline" bgcolor="#FFCC66">
    <td colspan="4" align="right" nowrap><div align="center" class="Estilo2">
      <script languaje="JavaScript">Mostrar_Fecha()</script></div></td>
  </tr>
  <tr valign="baseline" bgcolor="#FFCCCC">  
    <td width="141"><div align="right" class="Estilo19">C&eacute;dula del Deudor:</div></td>
    <td width="90"><input name="cedula" type="text" id="cedula" value="" size="15" maxlength="15" ></td>
    <td width="441" colspan="2">
	  
      <input name="consultar" type="submit" id="consultar2"value ="Buscar" style="font-family: Verdana; font-size: 8 pt; color: #000080; background-color: #C0C0C0; border-style: solid">
      
      <input name="button" type="button" style="font-family: Verdana; font-size: 8 pt; color: #000080; background-color: #C0C0C0; border-style: solid" onclick="window.location.href='menu_cobranzas_jur1.php'" value="Volver al Men&uacute;">
      
      <input name="button" type="button" style="font-family: Verdana; font-size: 8 pt; color: #000080; background-color: #C0C0C0; border-style: solid" onclick="window.location.reload()" value="Actualizar">
      <span class="Estilo25">
      <input name="button2" type="button" style="font-family: Verdana; font-size: 8 pt; color: #000080; background-color: #C0C0C0; border-style: solid" onclick="history.forward()" value="Adelante">
      </span>      </td>
  </tr>
  </table>  
  <input name="mced" type="hidden" id="mced" value="<?php echo $ced; ?>">
  <input name="mnom" type="hidden" id="mnom" value="<?php echo $nom; ?>">
</form>  

<table width="1000" border="0" align="center" cellpadding="3" cellspacing="3">      
  <tr valign="baseline" bgcolor="#FFFFCC">
  <td width="90" align="right" nowrap><div align="center"><span class="Estilo18">C&eacute;dula</span></div></td>
  <td width="70" align="right" nowrap><div align="center"><span class="Estilo18"># carpeta</span></div></td>
  <td width="280" align="right" nowrap><div align="center"><span class="Estilo18">Apellidos y nombres </span></div></td>
  <td width="70" align="right" nowrap><div align="center"><span class="Estilo18">Contrato</span></div></td>
  <td width="50" align="right" nowrap><div align="center"><span class="Estilo18">Tipo</span></div></td>
  <td width="105" align="right" nowrap><div align="center"><span class="Estilo18">Codigo Gestion</span></div></td>
  <td width="110" align="right" nowrap><div align="center"><span class="Estilo18">Fecha Gestion</span></div></td>
  <td width="100"><div align="center"><span class="Estilo18">N&uacute;m.Ofic.Envio </span></div></td>
  <td width="140" colspan="2"><div align="center"><span class="Estilo18">Fecha ofic.env&iacute;o </span></div></td>
</tr>
<?php

if(isset($_POST["consultar"]))
{
	/*
	$result = mysql_query('SELECT cedula, numero_carpeta, nombre_completo, numero, tipo, oficio_numero, fecha_oficio, codigo_gestion,  fecha_gestion FROM cobranzas WHERE cedula = "' . $_POST[cedula] . '" and unidad = "CPRN1" ');
	*/
	$result = mysql_query('SELECT cedula, numero_carpeta, nombre_completo, numero, tipo, oficio_numero, fecha_oficio, codigo_gestion,  fecha_gestion FROM cobranzas WHERE cedula = "' . $_POST[cedula] . '" and (unidad = "CPRN" || unidad = "NDFC") ');
			if (!$result) {
				die('Invalid query: ' . mysql_error());
			}
     if($result)	 
     {				 
	      if(mysql_num_rows($result) != 0)
		  {
                 while(list($cc, $nc, $an, $con, $tip, $nof, $fecha, $cod, $fechag) = mysql_fetch_row($result)) 
                  { 
                      $tres=substr($fecha, 0, 4);
                      $dos=substr($fecha, 5, 2);
                      $uno=substr($fecha, 8, 2);
                      $fecha = ($uno."-".$dos."-".$tres);				  				  
                     printf("<tr>
           
		            <td bgcolor='#ECE9D8'><div align='center' class='Estilo1 Estilo14'><em><a href=\"seguimiento_cobranza1_nomina.php?id=$cc&carpeta=$nc&ced=$mced\"  target='_parent'>".$cc."</span></em></div></td>
					 			 
		<td bgcolor='#ECE9D8'><div align='center' class='Estilo1 Estilo14'><em>".$nc."</a></span></em></div></td>		 			 
                    
					   											 
		             <td bgcolor='#C5D6FC'><div align='center' class='Estilo1 Estilo14'><em>".$an."</span></em></div></td>
		             <td bgcolor='#C5D6FC'><div align='center' class='Estilo1 Estilo14'><em>".$con."</span></em></div></td>					 
					 <td bgcolor='#C5D6FC'><div align='center' class='Estilo1 Estilo14'><em>".$tip."</span></em></div></td>					 
		             <td bgcolor='#C5D6FC'><div align='center' class='Estilo1 Estilo14'><em>".$cod."</span></em></div></td>
					 <td bgcolor='#C5D6FC'><div align='center' class='Estilo1 Estilo14'><em>".$fechag."</span></em></div></td>
					 <td bgcolor='#C5D6FC'><div align='center' class='Estilo1 Estilo14'><em>".$nof."</span></em></div></td>
					 <td bgcolor='#C5D6FC'><div align='center' class='Estilo1 Estilo14'><em>".$fecha."</span></em></div></td>");
				  } //Terminación del ciclo while					    
			         echo "</tr></table>";
			}
			else
			{
		echo "<script>alert('Afiliado no esta en cobranzas ó no Pertenece a su Gestión ');</script>"; 
			}			 
       }	
	  }				 
?>
</body>
</html>