예제 #1
0
?>
<title>Reporte</title>
<link href="../../style.css" rel="stylesheet" type="text/css">
<script language="javascript" src="../../js/js.js"></script> 
<script language="javascript" src="../js/reporte.js"></script> 
<body topmargin="0">
<form name="f1" method="post" action="">
<table width="85%"  border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td><img src="../../imgs/logo.jpg" border="0" width="100%" height="100"></td>
  </tr>
</table>
<?php 
switch ($ID) {
    case '1':
        $AAnpS = new AsignacionporSubactividades();
        $AAnpS->mostrar_ff_chk();
        break;
    case '2':
        $AFtS = new AsignacionporFtSubactividades();
        $AFtS->mostrar_ff_chk();
        break;
    case '3':
        $AFtsP = new AsignacionFtsporPartidas();
        $AFtsP->mostrar_ff_chk();
        break;
    case '4':
        $AParMes = new Partida_Mensual();
        $AParMes->ejecutor = $eje;
        $AParMes->mes = $month;
        $AParMes->axo = $axo;
<?php

if ($_GET[pdf] == 'ok') {
    require_once '../../pdf/html2fpdf.php';
    ob_start();
}
require_once "../../includes.php";
require_once "../funciones/reportes.php";
require_once "../cls/informacionsinampe/asignacionporsubactividades.cls.php";
require "../libs/verificar.inc.php";
$link = new Conexion();
set_time_limit(100);
$ReporteAAnpS = new AsignacionporSubactividades();
$lnkmoneda = "";
$md = $md;
if (empty($md)) {
    $lnkmoneda = '<a href="' . $_SERVER['PHP_SELF'] . "?id=" . $id . "&md=" . "d" . '">Soles</a>';
    $moneda = "Soles";
} else {
    $lnkmoneda = '<a href="' . $_SERVER['PHP_SELF'] . "?id=" . $id . '">Dolares</a>';
    $moneda = "Dolares";
    $ReporteAAnpS->md = true;
    $ReporteAAnpS->simbolomd = " \$ ";
}
if ($_POST) {
    $_SESSION[inrena_4][ffuente] = "";
    for ($i = 0; $i < count($_POST[S2]); $i++) {
        $_SESSION[inrena_4][ffuente][] = $_POST[S2][$i];
    }
}
$ffuente = $_SESSION[inrena_4][ffuente];