gest366/modules/scadenzario/controller_init.php

39 lines
1.2 KiB
PHP
Raw Normal View History

2021-02-24 20:40:04 +00:00
<?php
include_once(__DIR__."/../../core.php");
if (sizeof($records) < 1){
$class = 'success';
$disabled = 'disabled';
}else{
$class = 'primary';
$disabled = '';
}
$disabled = '';
?><br>
<!-- STAMPA TOTALE -->
<div class="row">
<div class="col-md-4 col-md-offset-4">
<button type="button" onclick="window.open('<?php echo $rootdir ?>/templates/pdfgen.php?ptype=scadenzario&type=all');" <?php echo $disabled; ?> class="btn btn-<?php echo $class; ?> btn-block btn-lg text-center"><i class="fa fa-print"></i> Stampa scadenzario</button>
</div>
</div>
<br>
<!-- STAMPE SINGOLE -->
<div class="row">
<div class="col-md-2 col-md-offset-4">
<button type="button" onclick="window.open('<?php echo $rootdir ?>/templates/pdfgen.php?ptype=scadenzario&type=clienti');" <?php echo $disabled; ?> class="btn btn-<?php echo $class; ?> btn-block"><i class="fa fa-print"></i> Scadenzario clienti</button>
</div>
<div class="col-md-2">
<button type="button" onclick="window.open('<?php echo $rootdir ?>/templates/pdfgen.php?ptype=scadenzario&type=fornitori');" <?php echo $disabled; ?> class="btn btn-<?php echo $class; ?> btn-block"><i class="fa fa-print"></i> Scadenzario fornitori</button>
</div>
</div>
<br>