<?php session_start();
require('../cfg/cfg.php');
require('../cfg/res.php');
$pagina_descri='REPORTE DE ACTIVIDADES';
$pagina_nivel;
$pagina_tipo;

?>
<?php include('php_gene1.php'); ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
<script type="text/javascript">
<?php include('../../_js/busca_maes3.js');?>
<?php include('../../_js/lista_maes3.js');?>
<?php include('../../_js/fecha_format.js');?>

function _clickbtn(imprimir){}
function _imprimirlista(){
	var fini=document.getElementById('fecha_ini').value;
	var ffin=document.getElementById('fecha_fin').value;	
	var enti=document.getElementById('enti').value;
	//document.getElementById('ent').value;
	//var rec=document.getElementById('rec').value;
	//window.location='impr_pla.php?fini='+fini+'&ffin='+ffin;
	if(document.getElementById('ent').checked){window.open( 'impr_pla.php?fini='+fini+'&ffin='+ffin+'&enti='+enti,'_blank');}
	if(document.getElementById('rec').checked){window.open('impr_pla2.php?fini='+fini+'&ffin='+ffin+'&enti='+enti,'_blank');}
}
</script>
</head>

<body>
<div align="center">
<?php include('../../_lib/cabecera2.php');?>

<br>
<div>
<table width="100%" cellpadding="5">
<tr>
	<td>
        <table>
            <tr><?php $pcaption='inicial';  $pidtxt='fecha_ini'; $pdefa=$xfecha1; $pobj=3; include('vrgetfec.php'); ?></tr>
            <tr><?php $pcaption='final';  $pidtxt='fecha_fin'; $pdefa=$xfecha2; $pobj=3; include('vrgetfec.php'); ?></tr>
            
        </table>    
    
    
    </td>
    <td>
        <table>
	        <tr id="tr_enti" valign="top"><?php $pcaption='ENTIDAD'; $ptabla='enti';  $ponblur='enti(event,'.$empr_ruc.');'; $ponchange='';  include('vrgetcod.php'); ?></tr>
            <tr>
            <td>
            <input type="radio" id="ent" name="fgroup" checked="checked" /><span>Cliente</span> <br/>
            <input type="radio" id="rec" name="fgroup" /><span>Recurso</span> <br/>
            </td>
            </tr>
        </table>    
    </td>
    <td>
         <table><tr><?php $pcaption='Imprimir';  $ponclick="_imprimirlista();" ;include('vrbutton.php'); ?></tr></table>
    </td>


</tr>


</table>

</div>
</div>
</body>
</html>