2017-08-04 16:28:16 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
include_once __DIR__.'/../../core.php';
|
|
|
|
|
|
|
|
if (empty($dbo->fetchArray('SELECT * FROM co_scadenziario'))) {
|
|
|
|
$class = 'muted';
|
|
|
|
$disabled = 'disabled';
|
|
|
|
} else {
|
|
|
|
$class = 'primary';
|
|
|
|
$disabled = '';
|
|
|
|
}
|
|
|
|
|
|
|
|
?><br>
|
|
|
|
|
|
|
|
<!-- STAMPA TOTALE -->
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-4 col-md-offset-4">
|
|
|
|
|
2017-09-04 12:02:29 +02:00
|
|
|
<button type="button" onclick="window.open('<?php echo $rootdir ?>/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> <?php echo tr('Stampa scadenzario'); ?></button>
|
2017-08-04 16:28:16 +02:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<!-- STAMPE SINGOLE -->
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-2 col-md-offset-4">
|
2017-09-04 12:02:29 +02:00
|
|
|
<button type="button" onclick="window.open('<?php echo $rootdir ?>/pdfgen.php?ptype=scadenzario&type=clienti');" <?php echo $disabled; ?> class="btn btn-<?php echo $class; ?> btn-block"><i class="fa fa-print"></i> <?php echo tr('Scadenzario clienti'); ?></button>
|
2017-08-04 16:28:16 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-2">
|
2017-09-04 12:02:29 +02:00
|
|
|
<button type="button" onclick="window.open('<?php echo $rootdir ?>/pdfgen.php?ptype=scadenzario&type=fornitori');" <?php echo $disabled; ?> class="btn btn-<?php echo $class; ?> btn-block"><i class="fa fa-print"></i> <?php echo tr('Scadenzario fornitori'); ?></button>
|
2017-08-04 16:28:16 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|