<?php
include_once(__DIR__."/../../core.php");


if (sizeof($records) < 1){
	$class = 'info';
	$disabled = 'disabled';
}else{
	$class = 'primary';
	$disabled = '';
}
$disabled = '';
  


?>


<div class="panel panel-info">
	<div class="clearfix"></div>
	<br>
		<div class="col-md-4">				
			<div class="pull-left">		
				<?php 
				if ( $modules_info[$id_module]['name'] != "Pianificazione" ){
				?>	
					<button type="button" onclick="window.open('<?php echo $rootdir ?>/templates/pdfgen.php?ptype=prt_documenti&search_tipo=<?php echo $search_tipo; ?>');"  <?php echo $disabled; ?>  class="btn btn-<?php echo $class; ?> btn-block"><i class="fa fa-print"></i> Stampa Documenti</button>
			
				<?php																		
				}
				?>	
				<?php 
				if ( $modules_info[$id_module]['name'] == "Pianificazione" ){
				?>	
					<button type="button" onclick="window.open('<?php echo $rootdir ?>/templates/pdfgen.php?ptype=prt_pianificazione&search_tipo=<?php echo $search_tipo; ?>');"  <?php echo $disabled; ?>  class="btn btn-<?php echo $class; ?> btn-block"><i class="fa fa-print"></i> Stampa Pianificazione</button>
			
				<?php																		
				}
				?>	
	
			</div>
						
				<?php 
				if ( $modules_info[$id_module]['name'] == "Pianificazione" ){
				?>	
					<div class="pull-right">	
						<a  target="_blank" class="btn btn-<?php echo $class; ?> btn-block" href="<?php echo $rootdir ?>/modules/documenti/gps/index_gps.html"><i class="fa fa-map-marker"></i> Pianificazione in Google Maps</a>				
					</div>
				<?php																		
				}
				?>	

		</div>
		<div class="col-md-4">				
			<div class="pull-right">								
			
			</div>
		</div>
		
		<div class="col-md-4">
		</div>			
	<div class="clearfix"></div>
	<br>
</div>





