openstamanager/modules/fatture/fe/components/altri_dati.php

76 lines
2.7 KiB
PHP
Raw Normal View History

<?php
2020-09-07 15:04:06 +02:00
/*
* OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
2021-01-20 15:08:51 +01:00
* Copyright (C) DevCode s.r.l.
2020-09-07 15:04:06 +02:00
*
* 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/>.
*/
// Altri dati gestionali
echo '
2019-07-16 09:50:43 +02:00
<tbody>
<tr class="fourth-level">
2019-07-15 18:34:59 +02:00
<th colspan="2">
2024-05-23 11:36:25 +02:00
'.str_repeat((string) $space, 3).'2.2.1.16 AltriDatiGestionali - '.tr('Riga _NUM_', [
2024-03-22 15:52:24 +01:00
'_NUM_' => $key,
]);
if ($key == 1) {
echo '
<button type="button" class="btn btn-xs btn-info pull-right" onclick="add_altri_dati(this)" id="add-altri_dati">
<i class="fa fa-plus"></i> '.tr('Aggiungi').'
</button>';
}
echo '
2019-07-15 18:34:59 +02:00
</th>
</tr>';
// Tipo Dato
echo '
2019-07-16 09:50:43 +02:00
<tr class="fifth-level">
2024-05-23 11:36:25 +02:00
<td style="vertical-align: middle;">'.str_repeat((string) $space, 5).'2.2.1.16.1 TipoDato</td>
<td>
2019-07-15 18:34:59 +02:00
{[ "type": "text", "name": "altri_dati['.$key.'][tipo_dato]", "value": "'.$dato['tipo_dato'].'", "maxlength": 10 ]}
</td>
</tr>';
// Riferimento Testo
echo '
2019-07-16 09:50:43 +02:00
<tr class="fifth-level">
2024-05-23 11:36:25 +02:00
<td style="vertical-align: middle;">'.str_repeat((string) $space, 5).'2.2.1.16.2 RiferimentoTesto</td>
<td>
2019-07-15 18:34:59 +02:00
{[ "type": "text", "name": "altri_dati['.$key.'][riferimento_testo]", "value": "'.$dato['riferimento_testo'].'", "maxlength": 60 ]}
</td>
</tr>';
// Riferimento Numero
echo '
2019-07-16 09:50:43 +02:00
<tr class="fifth-level">
2024-05-23 11:36:25 +02:00
<td style="vertical-align: middle;">'.str_repeat((string) $space, 5).'2.2.1.16.3 RiferimentoNumero</td>
<td>
2019-07-16 10:01:16 +02:00
{[ "type": "number", "name": "altri_dati['.$key.'][riferimento_numero]", "value": "'.$dato['riferimento_numero'].'" ]}
</td>
</tr>';
// Riferimento Data
echo '
2019-07-16 09:50:43 +02:00
<tr class="fifth-level" id="last-altri_dati-'.$key.'">
2024-05-23 11:36:25 +02:00
<td style="vertical-align: middle;">'.str_repeat((string) $space, 5).'2.2.1.16.4 RiferimentoData</td>
<td>
2019-07-16 10:01:16 +02:00
{[ "type": "date", "name": "altri_dati['.$key.'][riferimento_data]", "value": "'.$dato['riferimento_data'].'"]}
</td>
2019-07-16 09:50:43 +02:00
</tr>
</tbody>';