Viewing file: repmetas6.php (6.31 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Reporte Consolidado de Metas</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:active {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_callJS(jsStr) { //v2.0
return eval(jsStr)
}
//-->
</script>
</head>
<body text="#333333" link="#666666" vlink="#666666" alink="#666666">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="33%"> </td>
<?php
require('conexion2.php');
$stmt = ociparse($c1,"select objetivo,valor,documento,libera,valor_generado,nombre_responsable,ano_vigencia,duracion,fecha_inicio from sia_plan_cdp_enc where plan_cdp_enc_id=$id");
$result = OCIExecute($stmt);
while (OCIFetchInto($stmt, $cur)) {
$obj = $cur[0];
$val = @$cur[1];
$doc = @$cur[2];
$lib = @$cur[3];
$val2 = @$cur[4];
$nres = @$cur[5];
$ano = @$cur[6];
$dura = @$cur[7];
$fini = @$cur[8];
//echo $nextel;
$val1 = $val;
if ($lib == "S") {
$vlib = $val - $val2;
$val = $val2;
}else{
$val = $val;
$vlib = 0;
}
$porce = ($val * 100)/$pre;
$porce = number_format($porce);
$val = number_format($val);
}
$val1 = number_format($val1);
$vlib = number_format($vlib);
?>
<td width="34%"><p><font size="5" face="Verdana, Arial, Helvetica, sans-serif">CDP:
<font color="#FF9900"><?php echo $id; ?></font> <font size="4">(<?php echo $ano; ?>)</font><br>
<font size="4">Documento: <font color="#FF9900"><?php echo $doc; ?></font></font>
</font></p>
<table width="550" border="0" cellspacing="0" cellpadding="4">
<tr bgcolor="#F3F3F3">
<td colspan="2" bgcolor="#FFFF99"><div align="right"><a href="#"><font size="1" face="Verdana, Arial, Helvetica, sans-serif" onclick="MM_callJS('history.go(-1);')">Regresar</font></a></div></td>
</tr>
<tr bgcolor="#F3F3F3">
<td colspan="2" bgcolor="#F3F3F3"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Responsable:</strong></font></td>
</tr>
<tr bgcolor="#F3F3F3">
<td colspan="2" bgcolor="#FFEADF"><font size="2" face="Arial, Helvetica, sans-serif"><?php echo $nres; ?></font></td>
</tr>
<tr bgcolor="#F3F3F3">
<td colspan="2" bgcolor="#F3F3F3"> <div align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Objetivo:</strong></font></div></td>
</tr>
<tr valign="top" bgcolor="#FFFFE1">
<td colspan="2" bgcolor="#FFFFE1"><font size="2" face="Arial, Helvetica, sans-serif"><?php echo $obj; ?></font></td>
</tr>
<tr valign="top" bgcolor="#FFFFE1">
<td colspan="2" bgcolor="#F3F3F3"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Detalle
presupuestal:</strong></font></td>
</tr>
<tr valign="top" bgcolor="#FFFFE1">
<td colspan="2" bgcolor="#FFFFE1"><table width="100%" border="1" cellpadding="6" cellspacing="0" bordercolor="#FFFFFF">
<tr>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Valor
Solicitado:</font></td>
<td><font size="2" face="Arial, Helvetica, sans-serif">$ <?php echo $val1; ?></font><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> </font></td>
</tr>
<tr>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Valor
Liberado:</font></td>
<td><font size="2" face="Arial, Helvetica, sans-serif">$ <?php echo $vlib; ?></font><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> </font></td>
</tr>
<tr>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Valor
Registrado Total:</strong></font></td>
<td bgcolor="#FFEADF"><font size="2" face="Arial, Helvetica, sans-serif"><strong>$
<?php echo $val; ?></strong></font><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> </font></strong></td>
</tr>
<tr>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">%
del presupuesto de la vigencia:</font></td>
<td bgcolor="#F0FDFF">
<div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><strong><font color="#000066"><?php echo $porce; ?></font></strong></font><font color="#000066"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> %</font></strong></font></div></td>
</tr>
</table></td>
</tr>
<tr valign="top" bgcolor="#FFFFE1">
<td width="50%" bgcolor="#F3F3F3"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Duración:</strong></font></td>
<td width="50%" bgcolor="#F3F3F3"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Fecha
de Inicio Esperada:</strong></font></td>
</tr>
<tr valign="top" bgcolor="#FFFFE1">
<td width="50%"><font size="2" face="Arial, Helvetica, sans-serif"><?php echo $dura; ?></font><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> Meses</font></td>
<td width="50%"><font size="2" face="Arial, Helvetica, sans-serif"><?php echo $fini; ?></font><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> </font></td>
</tr>
</table>
</td>
<td width="33%"> </td>
</tr>
<tr>
<td width="33%"> </td>
<td width="34%"><div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>Todos
los Derechos Reservados para el DAMA</strong><br>
<font color="#FF9900">Departamento Técnico Administrativo del Medio
Ambiente</font><br>
Este Informe es Automático<br>
2005</font></div></td>
<td width="33%"> </td>
</tr>
</table>
</body>
</html>
|