File: /home/asjudine/www/casos_exito.php
<?php
// Connect to SQL database
require_once("mainfile.php");
require_once("Conectarse.php");
include ("config.php");
?>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<style type="text/css">
<!--
.Estilo18 {font-family: "Arial Narrow"; font-weight: bold; font-size: 14; }
.Estilo31 {
font-family: "Arial Narrow";
color: #990000;
font-size: 14px;
}
.Estilo34 {font-family: "Arial Narrow" font-size: 11; color: #0000FF}
.Estilo35 {font-size: 14px}
-->
</style>
<table width="667" border=1 align="center" cellpadding=0 cellspacing=0 bordercolor="#990000">
<tbody>
<tr class=titulonegro>
<td width="663" height="18" bgcolor="#AC1C14" cellpadding="0" cellspacing="0"> <div align="center"><img height=1 src="casos de éxito_archivos/pixel.gif" width=1><img src="ELEMENTOS/Logito2.JPG" width="663" height="105" align="middle"></div></td>
</tr>
<tr bgcolor="#CCCCCC">
<td valign=top> </td>
</tr>
<tr>
<td valign=top><div align="center"><img height=30 src="ELEMENTOS/casosdeexito.gif" width=199></div></td>
</tr>
<tr>
<td height="72" valign=top><table width="524" align="center">
<tbody>
<tr>
<td width="524" height="66" valign=top bgcolor="#ECE9D8"><div align="justify"><font size=2 face="Verdana, Arial, Helvetica, sans-serif">Bienvenidos a la más completa base de noticias de Serviasjudinet donde usted encontrará toda la información de casos positivos que nuestra empresa realiza con éxito para cumplir con nuestra misión, dar una solución integral y personalizada a sus problemas jurídicos.</font></div></td>
</tr>
</tbody>
</table></td>
</tr>
<tr>
<td valign=top>
<?php
$con = "select numero_proceso, cedula, nombre_completo, codigo_sucursal, clase_negocio, despacho_judicial, codigo_abogado, pretencion, resultado, fecha_termina FROM casos_exito order by fecha_termina DESC ";
$control = mysql_query($con);
if (!$control) {
die('Error : ' . mysql_error());
}
if($control)
{
while(list($np, $ced, $nom, $suc, $clase, $despacho, $ca, $pre, $resul, $fecha) = mysql_fetch_array($control))
{
$depenvia = mysql_query("select nombre from sucursal where codigo = $suc");
if($depenvia){list($nsuc) = mysql_fetch_array($depenvia);}
$deprecibe = mysql_query("select nombre_completo from asjudinet_abogados where codigo_abogado = $ca");
if($deprecibe){list($nab) = mysql_fetch_array($deprecibe);}
$tres=substr($fecha, 0, 4);
$dos=substr($fecha, 5, 2);
$uno=substr($fecha, 8, 2);
$fecha = ($uno."-".$dos."-".$tres);
?>
<hr>
<table width='524' border='0' align='center' cellpadding='3' cellspacing='3'>
<tr valign='baseline' bgcolor='#ECE9D8'>
<td width="210" align='right' nowrap class='Estilo18'><span class='Estilo35'><strong>Apellidos y Nombres Afiliado: </strong></span></td>
<td width='293'><span class="Estilo31"><?php echo $nom ?></span></td>
</tr>
<tr valign='baseline' bgcolor='#ECE9D8'>
<td align='right' nowrap class='Estilo18'><span class='Estilo35'><strong>Sucursal: </strong></span></td>
<td><span class="Estilo31"><?php echo $nsuc ?></span></td>
</tr>
<tr valign='baseline' bgcolor='#ECE9D8'>
<td align='right' nowrap class='Estilo18'><span class='Estilo35'><strong>Clase de negocio: </strong></span></td>
<td><span class="Estilo31"><?php echo $clase ?></span></td>
</tr>
<tr valign='baseline' bgcolor='#ECE9D8'>
<td align='right' nowrap class='Estilo18'><span class='Estilo35'><strong>Despacho judicial:</strong></span></div>
</div></td>
<td><span class="Estilo31"><?php echo $despacho ?></span></td>
</tr>
<tr valign='baseline' bgcolor='#ECE9D8'>
<td align='right' nowrap class='Estilo18'><span class='Estilo35'><strong>Abogado litigante: </strong></span></div>
</div></td>
<td><span class="Estilo31"><?php echo $nab ?></span></td>
</tr>
<tr valign='baseline' bgcolor='#ECE9D8'>
<td colspan='2' align='right' nowrap><div align="center"><span class="Estilo34">PRETENSIONES DE LA CONTRAPARTE </span></div></td>
</tr>
<tr valign='baseline' bgcolor='#ECE9D8'>
<td colspan='2' align='right' nowrap><div align="center">
<?php
$resultpre = mysql_query('SELECT pretencion FROM casos_exito WHERE numero_proceso = "' .$np. '" ');
if (!$resultpre) {
die('Invalid query 4: ' . mysql_error());
}
list($resultadopretencion) = mysql_fetch_row($resultpre);
$num_rows = mysql_num_rows($resultpre);
echo "<TABLE BORDER=\"0\">\n";
for($i = 0; $i < $num_rows; $i++)
{
$row = mysql_fetch_array($resultpre);
//SI NO HAY RESTO SIGNIFICA QUE INICIAMOS UNA NUEVA FILA
echo "<TR>\n";
echo "<TD width=520 class=Estilo31><div align='justify'>" . $resultadopretencion. "</div></TD>\n";
echo "</TR>\n";
}
echo "</TABLE>\n";
?>
</div></td>
</tr>
<tr valign='baseline' bgcolor='#ECE9D8'>
<td colspan='2' align='right' nowrap><div align='center' class='Estilo34' >RESULTADO DEL EXITO OBTENIDO</div></td>
</tr>
<tr valign='baseline' bgcolor='#ECE9D8'>
<td colspan='2' align='right' nowrap><div align='center' class='Estilo31'>
<?php
$result = mysql_query('SELECT resultado FROM casos_exito WHERE numero_proceso = "' .$np. '" ');
if (!$result) {
die('Invalid query 4: ' . mysql_error());
}
list($resultado) = mysql_fetch_row($result);
echo "<TABLE BORDER=\"0\">\n";
for($i = 0; $i < $num_rows; $i++)
{
$row = mysql_fetch_array($result);
//SI NO HAY RESTO SIGNIFICA QUE INICIAMOS UNA NUEVA FILA
echo "<TR>\n";
echo "<TD width=520 class=Estilo31><div align='justify'>" .$resultado. "</div></TD>\n";
echo "</TR>\n";
}
echo "</TABLE>\n";
echo "</div></td></tr></table>";
} //Terminación del ciclo while
//echo "<hr>"; //Linea horizontal
?>
</td>
</tr>
</table>
<?
} // cierra la condición
?>