Viewing file: recibofind1corp.php (5.36 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Formulario de Autoliquidación de Servicios de Evaluación o Seguimiento Ambiental</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body topmargin="0">
<table width="100%" border="0">
<tr>
<td><font color="#FFFFFF">aaaaaaaaa</font></td>
<td>
<?php
//$nit = "899999061-9";
$gt = 0;
$find = true;
if ($find == true) {
?>
<p><font size="5" face="Verdana, Arial, Helvetica, sans-serif"><img src="../auto/pun.gif" width="16" height="16">
Resultados de búsqueda de Recibos de una Empresa:</font></p>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="10%" bgcolor="#BEE2F8">
<div align="center"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Nó</font></strong></div></td>
<td width="10%" bgcolor="#BEE2F8">
<div align="center"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Fecha</font></strong></div></td>
<td width="25%" bgcolor="#BEE2F8">
<div align="center"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Proyecto:</font></strong></div></td>
<td width="20%" bgcolor="#BEE2F8"> <div align="center"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Beneficiario:</font></strong></div></td>
<td width="20%" bgcolor="#BEE2F8"> <div align="center"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Ubicación:</font></strong></div></td>
<td width="15%" bgcolor="#BEE2F8">
<div align="center"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Valor:</font></strong></div></td>
</tr>
<?php
require('conexion.php');
$gt = 1;
$consul = "SELECT *
FROM vali WHERE num='$nit'"
. " order by cons";
$bf = 1;
$keni = 0;
$result = mysql_query($consul,$db);
$num_filas = mysql_num_rows($result);
while ($myrow = mysql_fetch_array($result)){
$cons = $myrow["cons"];
$pro = $myrow["pro"];
$name = $myrow["name"];
$mday = $myrow["mday"];
$month = $myrow["month"];
$year = $myrow["year"];
$fin = $myrow["fin"];
$ubi = $myrow["ubi"];
$can = $myrow["cancel"];
$feci = $mday . "/" . $month . "/" . $year;
$keni = $keni + $fin;
if ($bf == 0) {
?>
<tr valign="top">
<td width="10%" bgcolor="#FBDEAA">
<div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $cons; ?></font></div></td>
<td width="10%">
<div align="center"><font color="#999999" size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $feci; ?></font></div></td>
<td width="25%"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="requireauto3.php?nure=<?php echo $cons; ?>&chip=<?php echo $name; ?>"><?php echo $pro; ?></a></font></td>
<td width="20%"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $name; ?></font></td>
<td width="20%"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $ubi; ?></font></td>
<td width="15%">
<div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">$
<?php echo $fin; ?></font></div></td>
</tr>
<?php
}
if ($bf == 1) {
?>
<tr valign="top">
<td width="10%" bgcolor="#FBDEAA">
<div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $cons; ?></font></div></td>
<td width="10%">
<div align="center"><font color="#999999" size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $feci; ?></font></div></td>
<td width="25%"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="requireauto3.php?nure=<?php echo $cons; ?>&chip=<?php echo $name; ?>"><?php echo $pro; ?></a></font></td>
<td width="20%"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $name; ?></font></td>
<td width="20%"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $ubi; ?></font></td>
<td width="15%">
<div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">$
<?php echo $fin; ?></font></div></td>
</tr>
<?php
}
}
?>
</table>
<?php
}
?>
<p><font size="5" face="Verdana, Arial, Helvetica, sans-serif"><font size="3"><strong><font color="#FF0000"><?php
if ($gt == 1) {
echo $num_filas;
echo "</font></strong> recibos encontrados</font></font>...<br>";
echo "</font></strong> $ </font></font>";
$keni = number_format($keni);
echo $keni;
echo "</font></strong> Suma del total de recibos</font></font>...";
}else{
echo "</font></strong> </font></font>...";
}
?>
</p>
<p align="center"><img src="../auto/lin.gif" width="640" height="25"><br>
<font size="1" face="Verdana, Arial, Helvetica, sans-serif">Desarrollado
por el DAMA, Todos los Derechos Reservados, 2003<br>
Bogotá, Colombia.</font></p>
<p> </p></td>
<td><font color="#FFFFFF">aaaaaaaaa</font></td>
</tr>
</table>
</body>
</html>
|