165 lines
5.0 KiB
PHP
Executable File
165 lines
5.0 KiB
PHP
Executable File
<?php
|
|
/*
|
|
* OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
|
|
* Copyright (C) DevCode s.r.l.
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
if ($options['hide-header']) {
|
|
echo '
|
|
<!-- Intestazione vuota fornitore -->
|
|
<div class="row" style="height:111px;">
|
|
<div class="col-xs-6">
|
|
</div>
|
|
<div class="col-xs-6 text-right">
|
|
</div>
|
|
</div>';
|
|
} else {
|
|
echo '
|
|
<!-- Intestazione fornitore -->
|
|
$default_header$';
|
|
}
|
|
|
|
echo '
|
|
|
|
<div class="row">
|
|
<!-- Dati Ordine -->
|
|
<div class="col-xs-5">
|
|
<div class="text-center" style="height:5mm;">
|
|
<b>$tipo_doc$</b>
|
|
</div>
|
|
<br>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<td valign="top" class="border-bottom border-top text-center">
|
|
<p class="small-bold text-muted">'.tr('Nr. documento', [], ['upper' => true]).'</p>
|
|
<p>$numero$</p>
|
|
</td>
|
|
|
|
<td class="border-bottom border-top text-center">
|
|
<p class="small-bold text-muted">'.tr('Data documento', [], ['upper' => true]).'</p>
|
|
<p>$data$</p>
|
|
</td>
|
|
|
|
<td class="border-bottom border-top center text-center">
|
|
<p class="small-bold text-muted">'.tr('Foglio', [], ['upper' => true]).'</p>
|
|
<p>{PAGENO}/{nb}</p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
<table class="table table-striped border-bottom">
|
|
<tr>
|
|
<td class="small-bold text-muted" style="width:33%">
|
|
'.tr('Porto', [], ['upper' => true]).'
|
|
</td>
|
|
|
|
<td class="small-bold text-muted" style="width:33%">
|
|
'.tr('Tipo di spedizione', [], ['upper' => true]).'
|
|
</td>
|
|
|
|
<td class="small-bold text-muted" style="width:33%">
|
|
'.tr('Vettore', [], ['upper' => true]).'
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="cell-padded">
|
|
$porto$
|
|
</td>
|
|
|
|
<td class="cell-padded">
|
|
$spedizione$
|
|
</td>
|
|
|
|
<td class="cell-padded">
|
|
$vettore$
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<!-- Dati Cliente/Fornitore -->
|
|
<div class="col-xs-6 pull-right">
|
|
<table class="table border-bottom" >
|
|
<tr>
|
|
<td colspan=2>
|
|
<p class="small-bold text-muted">'.tr('Spett.le', [], ['upper' => true]).'</p>
|
|
<p>$c_ragionesociale$</p>
|
|
<p>$c_indirizzo$<br> $c_citta_full$</p>
|
|
<p>$c_telefono$ $c_cellulare$</p>';
|
|
if (empty($destinazione)) {
|
|
echo '
|
|
<tr>
|
|
<td>
|
|
<p class="small-bold text-muted">'.tr('Codice destinatario', [], ['upper' => true]).'</p>
|
|
</td>
|
|
<td class="text-right">
|
|
<small>'.$c_codice_destinatario.'</small>
|
|
</td>
|
|
</tr>';
|
|
}
|
|
echo '
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
<p class="small-bold text-muted">'.tr('Partita IVA', [], ['upper' => true]).'</p>
|
|
</td>
|
|
<td class="text-right">
|
|
<small>$c_piva$</small>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td >
|
|
<p class="small-bold text-muted">'.tr('Codice fiscale', [], ['upper' => true]).'</p>
|
|
</td>
|
|
<td class="text-right">
|
|
<small>$c_codicefiscale$</small>
|
|
</td>
|
|
</tr>';
|
|
|
|
if (!empty($destinazione)) {
|
|
echo '
|
|
<tr>
|
|
<td class="border-bottom">
|
|
<p class="small-bold text-muted">'.tr('Destinazione diversa', [], ['upper' => true]).'</p>
|
|
</td>
|
|
<td class="border-bottom text-right">
|
|
<p><small>'.$destinazione.'</small></p>
|
|
</td>
|
|
</tr>';
|
|
if ($codice_destinatario) {
|
|
echo '
|
|
<tr>
|
|
<td>
|
|
<p class="small-bold text-muted">'.tr('Codice destinatario', [], ['upper' => true]).'</p>
|
|
</td>
|
|
<td class="text-right">
|
|
<small>'.$codice_destinatario.'</small>
|
|
</td>
|
|
</tr>';
|
|
}
|
|
}
|
|
|
|
echo '
|
|
</table>
|
|
</div>
|
|
</div>';
|