{[ "type": "span", "label": "", "name": "idtipointervento", "value": "$idtipointervento$" ]}
{[ "type": "text", "label": "", "name": "descrizione", "required": 1, "value": "$descrizione$" ]}

{[ "type": "number", "label": "", "name": "costo_orario", "required": 1, "value": "$costo_orario$", "icon-after": "" ]}
{[ "type": "number", "label": "", "name": "costo_km", "required": 1, "value": "$costo_km$", "icon-after": "" ]}
{[ "type": "number", "label": "", "name": "costo_diritto_chiamata", "required": 1, "value": "$costo_diritto_chiamata$", "icon-after": "" ]}

{[ "type": "number", "label": "", "name": "costo_orario_tecnico", "required": 1, "value": "$costo_orario_tecnico$", "icon-after": "" ]}
{[ "type": "number", "label": "", "name": "costo_km_tecnico", "required_tecnico": 1, "value": "$costo_km_tecnico$", "icon-after": "" ]}
{[ "type": "number", "label": "", "name": "costo_diritto_chiamata_tecnico", "required": 1, "value": "$costo_diritto_chiamata_tecnico$", "icon-after": "" ]}
fetchArray('SELECT COUNT(*) AS tot_interventi FROM in_interventi WHERE idtipointervento='.prepare($id_record)); $tot_interventi = $interventi[0]['tot_interventi']; if ($tot_interventi > 0) { echo '
'.tr('Ci sono _NUM_ interventi collegati', [ '_NUM_' => $tot_interventi, ]).'. '.tr('Eliminando questo tipo di attività, vengono rimossi anche gli interventi collegati!').'
'; }