2019-07-15 16:53:18 +02:00
|
|
|
<?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/>.
|
|
|
|
*/
|
2019-07-15 16:53:18 +02:00
|
|
|
|
|
|
|
// 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">
|
2019-07-15 16:53:18 +02:00
|
|
|
'.str_repeat($space, 3).'2.2.1.16 AltriDatiGestionali - '.tr('Riga _NUM_', [
|
|
|
|
'_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>
|
2019-07-15 16:53:18 +02:00
|
|
|
</tr>';
|
|
|
|
|
|
|
|
// Tipo Dato
|
|
|
|
echo '
|
2019-07-16 09:50:43 +02:00
|
|
|
<tr class="fifth-level">
|
2022-05-20 16:13:55 +02:00
|
|
|
<td style="vertical-align: middle;">'.str_repeat($space, 5).'2.2.1.16.1 TipoDato</td>
|
2019-07-15 16:53:18 +02:00
|
|
|
<td>
|
2019-07-15 18:34:59 +02:00
|
|
|
{[ "type": "text", "name": "altri_dati['.$key.'][tipo_dato]", "value": "'.$dato['tipo_dato'].'", "maxlength": 10 ]}
|
2019-07-15 16:53:18 +02:00
|
|
|
</td>
|
|
|
|
</tr>';
|
|
|
|
|
|
|
|
// Riferimento Testo
|
|
|
|
echo '
|
2019-07-16 09:50:43 +02:00
|
|
|
<tr class="fifth-level">
|
2022-05-20 16:13:55 +02:00
|
|
|
<td style="vertical-align: middle;">'.str_repeat($space, 5).'2.2.1.16.2 RiferimentoTesto</td>
|
2019-07-15 16:53:18 +02:00
|
|
|
<td>
|
2019-07-15 18:34:59 +02:00
|
|
|
{[ "type": "text", "name": "altri_dati['.$key.'][riferimento_testo]", "value": "'.$dato['riferimento_testo'].'", "maxlength": 60 ]}
|
2019-07-15 16:53:18 +02:00
|
|
|
</td>
|
|
|
|
</tr>';
|
|
|
|
|
|
|
|
// Riferimento Numero
|
|
|
|
echo '
|
2019-07-16 09:50:43 +02:00
|
|
|
<tr class="fifth-level">
|
2022-05-20 16:13:55 +02:00
|
|
|
<td style="vertical-align: middle;">'.str_repeat($space, 5).'2.2.1.16.3 RiferimentoNumero</td>
|
2019-07-15 16:53:18 +02:00
|
|
|
<td>
|
2019-07-16 10:01:16 +02:00
|
|
|
{[ "type": "number", "name": "altri_dati['.$key.'][riferimento_numero]", "value": "'.$dato['riferimento_numero'].'" ]}
|
2019-07-15 16:53:18 +02:00
|
|
|
</td>
|
|
|
|
</tr>';
|
|
|
|
|
|
|
|
// Riferimento Data
|
|
|
|
echo '
|
2019-07-16 09:50:43 +02:00
|
|
|
<tr class="fifth-level" id="last-altri_dati-'.$key.'">
|
2022-05-20 16:13:55 +02:00
|
|
|
<td style="vertical-align: middle;">'.str_repeat($space, 5).'2.2.1.16.4 RiferimentoData</td>
|
2019-07-15 16:53:18 +02:00
|
|
|
<td>
|
2019-07-16 10:01:16 +02:00
|
|
|
{[ "type": "date", "name": "altri_dati['.$key.'][riferimento_data]", "value": "'.$dato['riferimento_data'].'"]}
|
2019-07-15 16:53:18 +02:00
|
|
|
</td>
|
2019-07-16 09:50:43 +02:00
|
|
|
</tr>
|
|
|
|
</tbody>';
|