. */ include_once __DIR__.'/../../core.php'; use Models\Module; $idconto = get('id'); $lvl = get('lvl'); // Info conto if ($lvl == 2) { $query = 'SELECT *, idpianodeiconti1 AS idpianodeiconti FROM co_pianodeiconti2 WHERE id='.prepare($idconto); } else { $query = 'SELECT *, idpianodeiconti2 AS idpianodeiconti, (SELECT dir FROM co_pianodeiconti2 WHERE co_pianodeiconti2.id=co_pianodeiconti3.idpianodeiconti2) AS dir FROM co_pianodeiconti3 WHERE id='.prepare($idconto); } $info = $dbo->fetchOne($query); ?>
{[ "type": "text", "label": "", "name": "numero", "required": 1, "class": "text-center", "value": "", "extra": "maxlength=\"6\"" ]}
{[ "type": "text", "label": "", "name": "descrizione", "required": 1, "value": ]}
{[ "type": "number", "decimals": 0, "label": "", "name": "percentuale_deducibile", "value": "", "icon-after": "", "max-value": "100", "min-value": "0" ]}
{[ "type": "select", "label": "", "name": "dir", "value": "", "values": "list=\"entrata\":\"Ricavo\", \"uscita\":\"Costo\", \"entrata/uscita\":\"Ricavo e Costo\", \"\": \"Non usare\"" ]}