<tr >
				  <?php 
for ($i = 0; $i < count($Apartidas); $i++) {
    ?>
			    <th align="center" class="th2">
				<?php 
    echo $Apartidas[$i][codigo_partida];
    ?>
				</th>
							<?php 
}
?>
			  </tr> 
			  
			<?php 
$ReportePMPP->mostrar_Presupuesto($ffuente);
?>
			</table>      
		
<script language="javascript">
FullScreen();
</script>
</body>
</html>
<?php 
if ($_GET[pdf] == 'ok') {
    $htmlbuffer = ob_get_contents();
    ob_end_clean();
    //header("Content-type: application/pdf");
    $pdf = new HTML2FPDF('P', 'mm', 'a4x');
    $pdf->ubic_css = "../../style.css";