Fix minori

This commit is contained in:
Luca 2019-07-25 17:39:55 +02:00
parent ce1731a3a6
commit 604a8eac6b
3 changed files with 8 additions and 3 deletions

View File

@ -26,7 +26,7 @@ if (!$is_cliente) {
?>
<form action="" method="post" id="edit-form" autocomplete="<?php echo setting('Autocomple web form'); ?>" >
<form action="" method="post" id="edit-form" autocomplete="<?php echo setting('Autocompletamento form'); ?>" >
<fieldset>
<input type="hidden" name="backto" value="record-edit">
<input type="hidden" name="op" value="update">

View File

@ -13,7 +13,12 @@ FROM co_documenti
INNER JOIN co_tipidocumento ON co_tipidocumento.id=co_documenti.idtipodocumento
WHERE co_documenti.id='.prepare($id_record));
$logo_azienda = str_replace(DOCROOT, BASEURL, App::filepath('templates/base|custom|/logo_azienda.jpg'));
if (!empty(setting('Logo stampe'))) {
$logo_azienda = BASEURL.'/'.Models\Upload::where('filename', setting('Logo stampe'))->first()->fileurl;
}else{
$logo_azienda = str_replace(DOCROOT, BASEURL, App::filepath('templates/base|custom|/logo_azienda.jpg'));
$logo_azienda = str_replace('\\', '/', $logo_azienda);
}
//cliente
if ($r['idconto_cliente'] != '') {

View File

@ -182,4 +182,4 @@ HAVING 2=2
ORDER BY `scadenza` ASC' WHERE `name` = 'Scadenzario';
-- Aggiunte impostazione Autocomple web form
INSERT INTO `zz_settings` (`id`, `nome`, `valore`, `tipo`, `editable`, `sezione`, `order`, `help`) VALUES (NULL, 'Autocomple web form', 'on', 'list[on,off]', '1', 'Generali', '', NULL);
INSERT INTO `zz_settings` (`id`, `nome`, `valore`, `tipo`, `editable`, `sezione`, `order`, `help`) VALUES (NULL, 'Autocompletamento form', 'on', 'list[on,off]', '1', 'Generali', '', NULL);