<?php if ($_GET[pdf] == 'ok') { require_once '../../pdf/html2fpdf.php'; ob_start(); } require_once "../../includes.php"; require_once "../funciones/reportes.php"; require_once "../cls/informacionanp/objetivosestrategicos.cls.php"; require "../libs/verificar.inc.php"; set_time_limit(100); $link = new Conexion(); $ReporteOE = new ObjetivosEstrategicos(); $ReporteOE->anpid = $id; $lnkmoneda = ""; $md = $md; if (empty($md)) { $lnkmoneda = '<a href="' . $_SERVER['PHP_SELF'] . "?id=" . $id . "&md=" . "d" . '">Soles</a>'; $tp_mon = 'Soles'; } else { $lnkmoneda = '<a href="' . $_SERVER['PHP_SELF'] . "?id=" . $id . '">Dolares</a>'; $ReporteOE->md = true; $tp_mon = 'Dolares'; $ReporteOE->simbolomd = " \$ "; } if ($_POST) { $_SESSION[inrena_4][ffuente] = ""; for ($i = 0; $i < count($_POST[S2]); $i++) { $_SESSION[inrena_4][ffuente][] = $_POST[S2][$i]; } }
</tr> </table> <hr width="100%"> <?php if (!$ff) { die("<div align='center' id='error'>No ha elegido ninguna Fuente de Financiamiento</div>"); } $siglas = array(); $Qff = new Consulta("Select siglas_ff from fuente_financiamiento WHERE id_ff IN (" . $ff . ")"); while ($f_f = $Qff->ConsultaVerRegistro()) { $siglas[] = $f_f[0]; } echo implode('/', $siglas); //saco los objetivos estrategicos $objetivos_estrategicos = new ObjetivosEstrategicos(); $obj = $objetivos_estrategicos->getObjetivosEstrategicos(); //filtro los presupuestos $sql_pff = "SELECT * FROM presupuesto_ff WHERE id_ff in(" . $ff . ") "; $query_pff = new Consulta($sql_pff); $in_pff = ""; while ($row_pff = $query_pff->ConsultaVerRegistro()) { $in_pff .= $in_pff == "" ? $row_pff['id_presupuesto_ff'] : "," . $row_pff['id_presupuesto_ff']; } //filtro los presupuestos $sql_p = "SELECT * FROM presupuesto_anp WHERE id_presupuesto_ff in(" . $in_pff . ") "; $query_p = new Consulta($sql_p); $in_p = ""; while ($row_p = $query_p->ConsultaVerRegistro()) { $in_p .= $in_p == "" ? $row_p['id_presupuesto_anp'] : "," . $row_p['id_presupuesto_anp']; }
$ReportePPPM->anpid = $anpid; $ReportePPPM->mostrar_ff_chk($_POST[S2]); break; case '9': $ObjEst = new ObjetivosEstrategicos($anpid, $_SESSION['anp']['idanp']); $ObjEst->anpid = $anpid; $ObjEst->mostrar_ff_chk($_POST[S2]); break; case '10': //$ReportePMPP=new FichaMeses($anpid,$axo,$_SESSION[inrena_4][1]); $ReportePMPP = new PresupuestoMensualPorPartidas($idmes); $ReportePMPP->anpid = $anpid; $ReportePMPP->mostrar_ff_chk($_POST[S2]); break; case '12': $ProgPlan = new ObjetivosEstrategicos(); $ProgPlan->anpid = $anpid; $ProgPlan->mostrar_ff_chk($_POST[S2]); break; } if ($_GET[pdf] != 'ok') { echo $Paginar; } echo '</table> </form> <script> window.focus() </script> </body> </html>'; if ($_GET[pdf] == 'ok' && ($ID == 1 || $ID == 2)) {