2019-07-15 18:34:59 +02:00
|
|
|
<?php
|
2020-09-07 15:04:06 +02:00
|
|
|
/*
|
|
|
|
* OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
|
|
|
|
* Copyright (C) DevCode s.n.c.
|
|
|
|
*
|
|
|
|
* 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 18:34:59 +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">
|
|
|
|
'.str_repeat($space, 3).$info['code'].' '.$info['name'].' - '.tr('Riga _NUM_', [
|
|
|
|
'_NUM_' => $key,
|
|
|
|
]);
|
|
|
|
|
|
|
|
if ($key == 1) {
|
|
|
|
echo '
|
|
|
|
<button type="button" class="btn btn-xs btn-info pull-right" onclick="add_blocco(this, \''.$nome.'\')">
|
|
|
|
<i class="fa fa-plus"></i> '.tr('Aggiungi').'
|
|
|
|
</button>';
|
|
|
|
}
|
|
|
|
|
|
|
|
echo '
|
|
|
|
</th>
|
|
|
|
</tr>';
|
|
|
|
|
|
|
|
// RiferimentoNumeroLinea
|
|
|
|
if (empty($dato['riferimento_linea'])) {
|
|
|
|
$dato['riferimento_linea'][] = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
$index = 1;
|
|
|
|
foreach ($dato['riferimento_linea'] as $linea) {
|
|
|
|
echo '
|
2019-07-16 09:50:43 +02:00
|
|
|
<tr class="fifth-level" title="RiferimentoNumeroLinea-'.$nome.'-'.$key.'">
|
2019-07-15 18:34:59 +02:00
|
|
|
<td style="vertical-align: middle;">
|
|
|
|
'.str_repeat($space, 4).$info['code'].'.1 RiferimentoNumeroLinea - '.tr('Riga _NUM_', [
|
|
|
|
'_NUM_' => $index,
|
|
|
|
]);
|
|
|
|
|
|
|
|
if ($index == 1) {
|
|
|
|
echo '
|
|
|
|
<button type="button" class="btn btn-xs btn-info pull-right" onclick="add_riferimento(this, \''.$nome.'\', \''.$key.'\')">
|
|
|
|
<i class="fa fa-plus"></i> '.tr('Aggiungi').'
|
|
|
|
</button>';
|
|
|
|
}
|
|
|
|
|
2020-09-07 15:04:06 +02:00
|
|
|
echo '
|
2019-07-15 18:34:59 +02:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{[ "type": "number", "name": "'.$nome.'['.$key.'][riferimento_linea][]", "value": "'.$linea.'", "maxlength": 4, "decimals": 0 ]}
|
|
|
|
</td>
|
|
|
|
</tr>';
|
|
|
|
|
|
|
|
++$index;
|
|
|
|
}
|
|
|
|
|
|
|
|
// IdDocumento
|
|
|
|
echo '
|
2019-07-16 09:50:43 +02:00
|
|
|
<tr class="fifth-level">
|
2019-07-15 18:34:59 +02:00
|
|
|
<td style="vertical-align: middle;">'.str_repeat($space, 4).$info['code'].'.2 IdDocumento</td>
|
|
|
|
<td>
|
|
|
|
{[ "type": "text", "name": "'.$nome.'['.$key.'][id_documento]", "value": "'.$dato['id_documento'].'", "maxlength": 20 ]}
|
|
|
|
</td>
|
|
|
|
</tr>';
|
|
|
|
|
|
|
|
// Data
|
|
|
|
echo '
|
2019-07-16 09:50:43 +02:00
|
|
|
<tr class="fifth-level">
|
2019-07-15 18:34:59 +02:00
|
|
|
<td style="vertical-align: middle;">'.str_repeat($space, 4).$info['code'].'.3 Data</td>
|
|
|
|
<td>
|
|
|
|
{[ "type": "date", "name": "'.$nome.'['.$key.'][data]", "value": "'.$dato['data'].'" ]}
|
|
|
|
</td>
|
|
|
|
</tr>';
|
|
|
|
|
|
|
|
// NumItem
|
|
|
|
echo '
|
2019-07-16 09:50:43 +02:00
|
|
|
<tr class="fifth-level">
|
2019-07-15 18:34:59 +02:00
|
|
|
<td style="vertical-align: middle;">'.str_repeat($space, 4).$info['code'].'.4 NumItem</td>
|
|
|
|
<td>
|
|
|
|
{[ "type": "text", "name": "'.$nome.'['.$key.'][num_item]", "value": "'.$dato['num_item'].'", "maxlength": 20 ]}
|
|
|
|
</td>
|
|
|
|
</tr>';
|
|
|
|
|
|
|
|
// CodiceCommessaConvenzione
|
|
|
|
echo '
|
2019-07-16 09:50:43 +02:00
|
|
|
<tr class="fifth-level">
|
2019-07-15 18:34:59 +02:00
|
|
|
<td style="vertical-align: middle;">'.str_repeat($space, 4).$info['code'].'.5 CodiceCommessaConvenzione</td>
|
|
|
|
<td>
|
|
|
|
{[ "type": "text", "name": "'.$nome.'['.$key.'][codice_commessa]", "value": "'.$dato['codice_commessa'].'", "maxlength": 100 ]}
|
|
|
|
</td>
|
|
|
|
</tr>';
|
|
|
|
|
|
|
|
// CodiceCUP
|
|
|
|
echo '
|
2019-07-16 09:50:43 +02:00
|
|
|
<tr class="fifth-level">
|
2019-07-15 18:34:59 +02:00
|
|
|
<td style="vertical-align: middle;">'.str_repeat($space, 4).$info['code'].'.6 CodiceCUP</td>
|
|
|
|
<td>
|
|
|
|
{[ "type": "text", "name": "'.$nome.'['.$key.'][codice_cup]", "value": "'.$dato['codice_cup'].'", "maxlength": 15 ]}
|
|
|
|
</td>
|
|
|
|
</tr>';
|
|
|
|
|
|
|
|
// CodiceCIG
|
|
|
|
echo '
|
2019-07-16 09:50:43 +02:00
|
|
|
<tr class="fifth-level" id="last-'.$nome.'-'.$key.'">
|
2019-07-15 18:34:59 +02:00
|
|
|
<td style="vertical-align: middle;">'.str_repeat($space, 4).$info['code'].'.7 CodiceCIG</td>
|
|
|
|
<td>
|
|
|
|
{[ "type": "text", "name": "'.$nome.'['.$key.'][codice_cig]", "value": "'.$dato['codice_cig'].'", "maxlength": 15 ]}
|
|
|
|
</td>
|
2019-07-16 09:50:43 +02:00
|
|
|
</tr>
|
|
|
|
</tbody>';
|