diff --git a/actions.php b/actions.php index 6742806af..b69535026 100755 --- a/actions.php +++ b/actions.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/core.php'; diff --git a/add.php b/add.php index d1a4dcceb..7535b9eb6 100755 --- a/add.php +++ b/add.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/core.php'; diff --git a/ajax.php b/ajax.php index 0bc8fa6e4..02aeac754 100755 --- a/ajax.php +++ b/ajax.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/core.php'; diff --git a/ajax_complete.php b/ajax_complete.php index d17e7a6f0..d2a6acde7 100755 --- a/ajax_complete.php +++ b/ajax_complete.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/core.php'; diff --git a/ajax_dataload.php b/ajax_dataload.php index 2e6d0ddb5..3d8a45e04 100755 --- a/ajax_dataload.php +++ b/ajax_dataload.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/core.php'; diff --git a/ajax_search.php b/ajax_search.php index 2ea553d61..6d51ab56f 100755 --- a/ajax_search.php +++ b/ajax_search.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/core.php'; diff --git a/ajax_select.php b/ajax_select.php index ec73fca60..166fc9e29 100755 --- a/ajax_select.php +++ b/ajax_select.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/core.php'; diff --git a/api/index.php b/api/index.php index 8b8a4dcbe..241ed1546 100755 --- a/api/index.php +++ b/api/index.php @@ -1,4 +1,21 @@ . + */ use API\Response; diff --git a/assets/src/css/datatables.css b/assets/src/css/datatables.css index 7f763ddca..83d624f65 100755 --- a/assets/src/css/datatables.css +++ b/assets/src/css/datatables.css @@ -1,3 +1,21 @@ +/* + * 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 . + */ + /*! * DataTables + Font Awesome integration * License: MIT - http://datatables.net/license diff --git a/assets/src/css/print/print.css b/assets/src/css/print/print.css index e2fe78e77..047689034 100755 --- a/assets/src/css/print/print.css +++ b/assets/src/css/print/print.css @@ -1,3 +1,21 @@ +/* + * 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 . + */ + input, button, .btn, diff --git a/assets/src/css/style.css b/assets/src/css/style.css index 5b88f9d5a..e82f8e7bd 100755 --- a/assets/src/css/style.css +++ b/assets/src/css/style.css @@ -1,3 +1,21 @@ +/* + * 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 . + */ + *:focus { outline: none; } @@ -949,37 +967,37 @@ div.tip { /* Fancy checkbox: https://bootsnipp.com/snippets/M2bda */ -.form-group input[type="checkbox"] { +.checkbox-group input[type="checkbox"] { display: none; } -.form-group input[type="checkbox"] + .btn-group > label span { +.checkbox-group input[type="checkbox"] + .btn-group > label span { width: 20px; } -.form-group input[type="checkbox"] + .btn-group { +.checkbox-group input[type="checkbox"] + .btn-group { width: 100%; display: flex; overflow: auto; } -.form-group input[type="checkbox"] + .btn-group label:last-child { +.checkbox-group input[type="checkbox"] + .btn-group label:last-child { flex-grow: 100; } -.form-group input[type="checkbox"] + .btn-group > label span:first-child { +.checkbox-group input[type="checkbox"] + .btn-group > label span:first-child { display: none; } -.form-group input[type="checkbox"] + .btn-group > label span:last-child { +.checkbox-group input[type="checkbox"] + .btn-group > label span:last-child { display: inline-block; } -.form-group input[type="checkbox"]:checked + .btn-group > label span:first-child { +.checkbox-group input[type="checkbox"]:checked + .btn-group > label span:first-child { display: inline-block; } -.form-group input[type="checkbox"]:checked + .btn-group > label span:last-child { +.checkbox-group input[type="checkbox"]:checked + .btn-group > label span:last-child { display: none; } diff --git a/assets/src/css/themes/default.css b/assets/src/css/themes/default.css index ca62fd15d..dd9b8d8e0 100755 --- a/assets/src/css/themes/default.css +++ b/assets/src/css/themes/default.css @@ -1,3 +1,21 @@ +/* + * 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 . + */ + .skin-default .wrapper, .skin-default .main-sidebar, .skin-default .left-side { diff --git a/assets/src/js/base/custom.js b/assets/src/js/base/custom.js index ecf466cda..b1d4af3c7 100644 --- a/assets/src/js/base/custom.js +++ b/assets/src/js/base/custom.js @@ -1,3 +1,21 @@ +/* + * 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 . + */ + // Aggiunta dell'ingranaggio all'unload della pagina $(window).on("beforeunload", function () { $("#main_loading").show(); diff --git a/assets/src/js/base/datatables-buttons.js b/assets/src/js/base/datatables-buttons.js index b2897c186..5a1048abb 100644 --- a/assets/src/js/base/datatables-buttons.js +++ b/assets/src/js/base/datatables-buttons.js @@ -1,3 +1,21 @@ +/* + * 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 . + */ + $(document).ready(function () { // Pulsanti di Datatables $(".btn-csv").off("click").on("click", function (e) { diff --git a/assets/src/js/base/navigation.js b/assets/src/js/base/navigation.js index 164e17aef..c4d3f6dcb 100644 --- a/assets/src/js/base/navigation.js +++ b/assets/src/js/base/navigation.js @@ -1,3 +1,21 @@ +/* + * 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 . + */ + $(document).ready(function () { // Tabs $('.nav-tabs').tabs(); diff --git a/assets/src/js/base/sidebar.js b/assets/src/js/base/sidebar.js index 8c5ae6f29..092144e40 100644 --- a/assets/src/js/base/sidebar.js +++ b/assets/src/js/base/sidebar.js @@ -1,3 +1,21 @@ +/* + * 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 . + */ + $(document).ready(function () { // Fix per il menu principale $('.sidebar-menu').tree({ diff --git a/assets/src/js/base/slider.js b/assets/src/js/base/slider.js index 56662cfce..2317504c0 100644 --- a/assets/src/js/base/slider.js +++ b/assets/src/js/base/slider.js @@ -1,3 +1,21 @@ +/* + * 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 . + */ + $(document).ready(function () { // Pulsante per il ritorno a inizio pagina var slideToTop = $("
"); diff --git a/assets/src/js/base/supersearch.js b/assets/src/js/base/supersearch.js index 6622b9232..3f7969ecd 100644 --- a/assets/src/js/base/supersearch.js +++ b/assets/src/js/base/supersearch.js @@ -1,3 +1,21 @@ +/* + * 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 . + */ + $(document).ready(function () { $('#supersearch').keyup(function () { $(document).ajaxStop(); diff --git a/assets/src/js/base/widgets.js b/assets/src/js/base/widgets.js index 8b06adfff..28345a2e4 100644 --- a/assets/src/js/base/widgets.js +++ b/assets/src/js/base/widgets.js @@ -1,3 +1,21 @@ +/* + * 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 . + */ + $(document).ready(function () { $("#widget-top, #widget-right").sortable({ items: 'li', diff --git a/assets/src/js/functions/datatables.js b/assets/src/js/functions/datatables.js index ab52acf17..cdbbb9ba3 100755 --- a/assets/src/js/functions/datatables.js +++ b/assets/src/js/functions/datatables.js @@ -1,3 +1,21 @@ +/* + * 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 . + */ + function start_local_datatables() { $('.datatables').each(function () { if (!$.fn.DataTable.isDataTable($(this))) { diff --git a/assets/src/js/functions/dates.js b/assets/src/js/functions/dates.js index a169c4e43..d980515c7 100755 --- a/assets/src/js/functions/dates.js +++ b/assets/src/js/functions/dates.js @@ -1,3 +1,21 @@ +/* + * 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 . + */ + function start_datepickers() { var icons = { time: 'fa fa-clock-o', diff --git a/assets/src/js/functions/functions.js b/assets/src/js/functions/functions.js index 67975b3de..69178d27d 100755 --- a/assets/src/js/functions/functions.js +++ b/assets/src/js/functions/functions.js @@ -1,3 +1,21 @@ +/* + * 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 . + */ + /** * Modal gestito da versioni precedenti. * @param title diff --git a/assets/src/js/functions/hooks.js b/assets/src/js/functions/hooks.js index 06e5384df..aca744e66 100755 --- a/assets/src/js/functions/hooks.js +++ b/assets/src/js/functions/hooks.js @@ -1,3 +1,21 @@ +/* + * 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 . + */ + /** * */ diff --git a/assets/src/js/functions/init.js b/assets/src/js/functions/init.js index bb68998e4..a96172882 100755 --- a/assets/src/js/functions/init.js +++ b/assets/src/js/functions/init.js @@ -1,3 +1,21 @@ +/* + * 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 . + */ + function init() { // Inizializzazzione dei box AdminLTE $('.box').boxWidget(); diff --git a/assets/src/js/functions/input.js b/assets/src/js/functions/input.js index 1f5ef5d9e..bad31355e 100644 --- a/assets/src/js/functions/input.js +++ b/assets/src/js/functions/input.js @@ -1,9 +1,27 @@ +/* + * 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 . + */ + function input(name) { return new Input(name); } function Input(name) { - this.element = $("[name=" + name + "]").last(); + this.element = $("[name='" + name + "']").last(); // Fix per select multipli if (this.element.length === 0) { diff --git a/assets/src/js/functions/inputmask.js b/assets/src/js/functions/inputmask.js index 1dced6cba..cb4272c4f 100644 --- a/assets/src/js/functions/inputmask.js +++ b/assets/src/js/functions/inputmask.js @@ -1,3 +1,21 @@ +/* + * 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 . + */ + // Inputmask function start_inputmask(element) { if (element == undefined) { diff --git a/assets/src/js/functions/moment.js b/assets/src/js/functions/moment.js index 9fec6b178..41cfee235 100755 --- a/assets/src/js/functions/moment.js +++ b/assets/src/js/functions/moment.js @@ -1,3 +1,21 @@ +/* + * 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 . + */ + function dateFormatMoment(format) { /* * PHP => moment.js diff --git a/assets/src/js/functions/prototypes.js b/assets/src/js/functions/prototypes.js index 3f248c0d8..85390394f 100755 --- a/assets/src/js/functions/prototypes.js +++ b/assets/src/js/functions/prototypes.js @@ -1,3 +1,21 @@ +/* + * 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 . + */ + Number.prototype.formatMoney = function (c, d, t) { var n = this, c = isNaN(c = Math.abs(c)) ? 2 : c, diff --git a/assets/src/js/functions/select.js b/assets/src/js/functions/select.js index 20b7ab480..cf369ea4e 100755 --- a/assets/src/js/functions/select.js +++ b/assets/src/js/functions/select.js @@ -1,42 +1,44 @@ +/* + * 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 . + */ + // Select function start_superselect() { // Statico $('.superselect').each(function () { - $this = $(this); + let $this = $(this); + $(this).select2({ theme: "bootstrap", language: "it", width: '100%', maximumSelectionLength: $this.data('maximum') ? $this.data('maximum') : -1, minimumResultsForSearch: $this.hasClass('no-search') ? -1 : 0, - allowClear: $this.hasClass('no-search') ? false : true, - templateResult: function (data, container) { - var bg; // templateSelection - - if (data._bgcolor_) { - bg = data._bgcolor_; - } else if ($(data.element).attr("_bgcolor_")) { - bg = $(data.element).attr("_bgcolor_"); - } else if ($(data.element).data("_bgcolor_")) { - bg = $(data.element).data("_bgcolor_"); - } - - if (bg) { - $(container).css("background-color", bg); - $(container).css("color", setContrast(bg)); - } - - return data.text; - }, + allowClear: !$this.hasClass('no-search'), escapeMarkup: function (text) { return text; - } + }, + templateResult: selectBackground, }); }); // Dinamico (AJAX, per tabelle con molti record) $('.superselectajax').each(function () { - $this = $(this); + let $this = $(this); $(this).select2({ theme: "bootstrap", @@ -47,24 +49,7 @@ function start_superselect() { escapeMarkup: function (text) { return text; }, - templateResult: function (data, container) { - var bg; // templateSelection - - if (data._bgcolor_) { - bg = data._bgcolor_; - } else if ($(data.element).attr("_bgcolor_")) { - bg = $(data.element).attr("_bgcolor_"); - } else if ($(data.element).data("_bgcolor_")) { - bg = $(data.element).data("_bgcolor_"); - } - - if (bg && !$("head").find('#' + data._resultId + '_style').length) { - $(container).css("background-color", bg); - $(container).css("color", setContrast(bg)); - } - - return data.text; - }, + templateResult: selectBackground, ajax: { url: globals.rootdir + "/ajax_select.php?op=" + $this.data('source'), dataType: 'json', @@ -81,8 +66,28 @@ function start_superselect() { params.page = params.page || 0; params.length = params.length || 100; + let results = data.results; + + // Interpretazione forzata per campi optgroup + if (results[0]['optgroup']) { + let groups = results.reduce(function (r, a) { + r[a.optgroup] = r[a.optgroup] || []; + r[a.optgroup].push(a); + return r; + }, {}); + + let results_groups = []; + for (const key in groups) { + results_groups.push({ + text: key, + children: groups[key], + }); + } + results = results_groups; + } + return { - results: data.results, + results: results, pagination: { more: (params.page + 1) * params.length < data.recordsFiltered, } @@ -95,6 +100,24 @@ function start_superselect() { }); } +function selectBackground(data, container) { + let bg; + + if (data._bgcolor_) { + bg = data._bgcolor_; + } else if ($(data.element).attr("_bgcolor_")) { + bg = $(data.element).attr("_bgcolor_"); + } else if ($(data.element).data("_bgcolor_")) { + bg = $(data.element).data("_bgcolor_"); + } + + if (bg && !$("head").find('#' + data._resultId + '_style').length) { + $(container).css("background-color", bg); + $(container).css("color", setContrast(bg)); + } + + return data.text; +} /** * Reimposta i contenuti di un creato con select2 impostando un valore di default */ jQuery.fn.selectAdd = function (values) { - $this = this; + let $this = this; values.forEach(function (item) { if (item.data) { @@ -169,8 +192,7 @@ jQuery.fn.selectAdd = function (values) { delete item.data; - var option = $('
- + {[ "type": "password", "name": "password", "autocomplete": "current-password", "placeholder": "'.tr('Password').'", "icon-before": "" ]} - + - + - \ No newline at end of file + diff --git a/modules/stati_contratto/edit.php b/modules/stati_contratto/edit.php index 6a1655857..b4bc3d5b3 100755 --- a/modules/stati_contratto/edit.php +++ b/modules/stati_contratto/edit.php @@ -1,4 +1,22 @@ . + */ + include_once __DIR__.'/../../core.php'; if ($record['can_delete']) { @@ -58,4 +76,4 @@ if (!empty($record['can_delete'])) { '; } -?> \ No newline at end of file +?> diff --git a/modules/stati_contratto/init.php b/modules/stati_contratto/init.php index aa32c64e0..e98a56030 100755 --- a/modules/stati_contratto/init.php +++ b/modules/stati_contratto/init.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/modules/stati_contratto/src/API/v1/StatiContratti.php b/modules/stati_contratto/src/API/v1/StatiContratti.php index 10bc80bbf..a4ad72cfe 100755 --- a/modules/stati_contratto/src/API/v1/StatiContratti.php +++ b/modules/stati_contratto/src/API/v1/StatiContratti.php @@ -1,4 +1,21 @@ . + */ namespace Modules\StatiContratto\API\v1; diff --git a/modules/stati_intervento/actions.php b/modules/stati_intervento/actions.php index 96b817cb0..dcc347362 100755 --- a/modules/stati_intervento/actions.php +++ b/modules/stati_intervento/actions.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/modules/stati_intervento/add.php b/modules/stati_intervento/add.php index 773186ad5..552920406 100755 --- a/modules/stati_intervento/add.php +++ b/modules/stati_intervento/add.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/modules/stati_intervento/edit.php b/modules/stati_intervento/edit.php index acebaeacd..5a3992ed1 100755 --- a/modules/stati_intervento/edit.php +++ b/modules/stati_intervento/edit.php @@ -1,4 +1,22 @@ . + */ + include_once __DIR__.'/../../core.php'; if ($record['can_delete']) { diff --git a/modules/stati_intervento/init.php b/modules/stati_intervento/init.php index 56428869f..c3d6a24fb 100755 --- a/modules/stati_intervento/init.php +++ b/modules/stati_intervento/init.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/modules/stati_intervento/src/API/v1/StatiInterventi.php b/modules/stati_intervento/src/API/v1/StatiInterventi.php index 338f2fdbb..bdb4d6710 100755 --- a/modules/stati_intervento/src/API/v1/StatiInterventi.php +++ b/modules/stati_intervento/src/API/v1/StatiInterventi.php @@ -1,4 +1,21 @@ . + */ namespace Modules\StatiIntervento\API\v1; diff --git a/modules/stati_preventivo/actions.php b/modules/stati_preventivo/actions.php index 43a2fc8df..b817afa33 100755 --- a/modules/stati_preventivo/actions.php +++ b/modules/stati_preventivo/actions.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/modules/stati_preventivo/add.php b/modules/stati_preventivo/add.php index ef2f8c60c..d028822bd 100755 --- a/modules/stati_preventivo/add.php +++ b/modules/stati_preventivo/add.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; @@ -11,16 +28,16 @@ include_once __DIR__.'/../../core.php'; {[ "type": "text", "label": "", "name": "descrizione", "required": 1 ]} - +
{[ "type": "checkbox", "label": "", "name": "is_completato", "value": "$is_completato$", "help": "", "placeholder": "", "extra": "" ]}
- +
{[ "type": "checkbox", "label": "", "name": "is_pianificabile", "value": "$is_pianificabile$", "help": "", "placeholder": "", "extra": "" ]}
- +
{[ "type": "checkbox", "label": "", "name": "is_fatturabile", "value": "$is_fatturabile$", "help": "", "placeholder": "", "extra": "" ]}
@@ -35,4 +52,4 @@ include_once __DIR__.'/../../core.php';
- \ No newline at end of file + diff --git a/modules/stati_preventivo/edit.php b/modules/stati_preventivo/edit.php index 23c5a7465..5b25f3a1f 100755 --- a/modules/stati_preventivo/edit.php +++ b/modules/stati_preventivo/edit.php @@ -1,4 +1,22 @@ . + */ + include_once __DIR__.'/../../core.php'; if ($record['can_delete']) { @@ -60,4 +78,4 @@ if (!empty($record['can_delete'])) { '; } -?> \ No newline at end of file +?> diff --git a/modules/stati_preventivo/init.php b/modules/stati_preventivo/init.php index 1d8336f51..514cba581 100755 --- a/modules/stati_preventivo/init.php +++ b/modules/stati_preventivo/init.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/modules/stati_preventivo/src/API/v1/StatiPreventivi.php b/modules/stati_preventivo/src/API/v1/StatiPreventivi.php index bb340a949..f18939b7b 100755 --- a/modules/stati_preventivo/src/API/v1/StatiPreventivi.php +++ b/modules/stati_preventivo/src/API/v1/StatiPreventivi.php @@ -1,4 +1,21 @@ . + */ namespace Modules\StatiPreventivo\API\v1; diff --git a/modules/statistiche/actions.php b/modules/statistiche/actions.php index 6c80528fc..e163c25ca 100755 --- a/modules/statistiche/actions.php +++ b/modules/statistiche/actions.php @@ -1,4 +1,21 @@ . + */ use Modules\Statistiche\Stats; diff --git a/modules/statistiche/edit.php b/modules/statistiche/edit.php index d619e2220..4b87f105b 100755 --- a/modules/statistiche/edit.php +++ b/modules/statistiche/edit.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/modules/statistiche/js/calendar.js b/modules/statistiche/js/calendar.js index 4e0bc7f7b..652af8276 100755 --- a/modules/statistiche/js/calendar.js +++ b/modules/statistiche/js/calendar.js @@ -1,3 +1,21 @@ +/* + * 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 . + */ + class Calendar { constructor(info, id){ this.info = info; diff --git a/modules/statistiche/js/functions.js b/modules/statistiche/js/functions.js index 16070eee6..0b4f3cf33 100755 --- a/modules/statistiche/js/functions.js +++ b/modules/statistiche/js/functions.js @@ -1,3 +1,21 @@ +/* + * 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 . + */ + var manager = manager ? manager : undefined; function remove_calendar(button) { diff --git a/modules/statistiche/js/init.js b/modules/statistiche/js/init.js index 4d44945cd..c903e1a59 100755 --- a/modules/statistiche/js/init.js +++ b/modules/statistiche/js/init.js @@ -1,3 +1,21 @@ +/* + * 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 . + */ + // Inzializzazione manager standard var info = { url: local_url, diff --git a/modules/statistiche/js/manager.js b/modules/statistiche/js/manager.js index eabe4d38d..8256cde22 100755 --- a/modules/statistiche/js/manager.js +++ b/modules/statistiche/js/manager.js @@ -1,3 +1,21 @@ +/* + * 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 . + */ + class Manager { constructor(info) { this.info = info; diff --git a/modules/statistiche/js/stat.js b/modules/statistiche/js/stat.js index ef5a61f89..f1bfbdf22 100755 --- a/modules/statistiche/js/stat.js +++ b/modules/statistiche/js/stat.js @@ -1,3 +1,21 @@ +/* + * 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 . + */ + class Stat { constructor(calendar, file, data = {}){ this.calendar = calendar; diff --git a/modules/statistiche/js/stats/line_chart.js b/modules/statistiche/js/stats/line_chart.js index f30ce17a3..7b3e38d4c 100755 --- a/modules/statistiche/js/stats/line_chart.js +++ b/modules/statistiche/js/stats/line_chart.js @@ -1,3 +1,21 @@ +/* + * 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 . + */ + class LineChart extends Stat { constructor(calendar, file, data = {}, chart){ super(calendar, file, data); diff --git a/modules/statistiche/js/stats/table.js b/modules/statistiche/js/stats/table.js index b7de960a4..762df8cad 100755 --- a/modules/statistiche/js/stats/table.js +++ b/modules/statistiche/js/stats/table.js @@ -1,3 +1,21 @@ +/* + * 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 . + */ + class Table extends Stat { constructor(calendar, file, data = {}, id){ super(calendar, file, data); diff --git a/modules/statistiche/js/stats/widget.js b/modules/statistiche/js/stats/widget.js index e3b0b4163..d06f59ac6 100755 --- a/modules/statistiche/js/stats/widget.js +++ b/modules/statistiche/js/stats/widget.js @@ -1,3 +1,21 @@ +/* + * 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 . + */ + class Widget extends Table { } diff --git a/modules/statistiche/src/Stats.php b/modules/statistiche/src/Stats.php index 79ad4cca5..4f8f65605 100755 --- a/modules/statistiche/src/Stats.php +++ b/modules/statistiche/src/Stats.php @@ -1,4 +1,21 @@ . + */ namespace Modules\Statistiche; diff --git a/modules/stato_email/actions.php b/modules/stato_email/actions.php index 2b7728ccb..6842a389c 100755 --- a/modules/stato_email/actions.php +++ b/modules/stato_email/actions.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; use Notifications\EmailNotification; diff --git a/modules/stato_email/bulk.php b/modules/stato_email/bulk.php index a3287ad00..06ea9d177 100644 --- a/modules/stato_email/bulk.php +++ b/modules/stato_email/bulk.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/modules/stato_email/buttons.php b/modules/stato_email/buttons.php index b607ef216..f5d344d26 100644 --- a/modules/stato_email/buttons.php +++ b/modules/stato_email/buttons.php @@ -1,4 +1,21 @@ . + */ if (($record['attempt'] >= 10) && empty($record['sent_at'])) { echo ' diff --git a/modules/stato_email/edit.php b/modules/stato_email/edit.php index 52f356fcf..155ba9ea5 100755 --- a/modules/stato_email/edit.php +++ b/modules/stato_email/edit.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; @@ -8,15 +25,15 @@ echo '

'.tr('Informazioni').'

- +
- +

'.tr('Template').'

'.Modules::link('Template email', $mail->template->id, $mail->template->name).'
- +

'.tr('Utente').'

'.Modules::link('Anagrafiche', $mail->user->anagrafica->id, $mail->user->nome_completo).' @@ -26,7 +43,7 @@ echo '

'.tr('Data di invio').'

'.($mail->sent_at ? timestampFormat($mail->sent_at) : '-').'
- +

'.tr('Ultimo tentativo').'

'.($mail->processing_at ? timestampFormat($mail->processing_at) : '-').' ('.tr('totale: _TOT_', [ @@ -63,7 +80,7 @@ echo ' '.tr('Indirizzo').' - + '; foreach ($receivers as $receiver) { @@ -91,7 +108,7 @@ echo ' '.tr('Nome').' - + '; foreach ($prints as $print) { @@ -121,7 +138,7 @@ echo ' '.tr('Nome').' - + '; foreach ($uploads as $upload) { diff --git a/modules/stato_email/init.php b/modules/stato_email/init.php index ad0d40654..247245c76 100755 --- a/modules/stato_email/init.php +++ b/modules/stato_email/init.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/modules/stato_servizi/actions.php b/modules/stato_servizi/actions.php index 14caee72a..c3c8c81e0 100755 --- a/modules/stato_servizi/actions.php +++ b/modules/stato_servizi/actions.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/modules/stato_servizi/edit.php b/modules/stato_servizi/edit.php index a12053184..398a5b3ff 100755 --- a/modules/stato_servizi/edit.php +++ b/modules/stato_servizi/edit.php @@ -1,4 +1,21 @@ . + */ // Elenco moduli installati echo ' diff --git a/modules/stato_servizi/modutil.php b/modules/stato_servizi/modutil.php index bbac4db4a..0c445ea1d 100755 --- a/modules/stato_servizi/modutil.php +++ b/modules/stato_servizi/modutil.php @@ -1,4 +1,21 @@ . + */ function submodules($list, $depth = 0) { diff --git a/modules/stato_servizi/src/API/v1/FolderSize.php b/modules/stato_servizi/src/API/v1/FolderSize.php index e339635f1..c17e6f57c 100755 --- a/modules/stato_servizi/src/API/v1/FolderSize.php +++ b/modules/stato_servizi/src/API/v1/FolderSize.php @@ -1,4 +1,21 @@ . + */ namespace Modules\StatoServizi\API\v1; diff --git a/modules/stato_servizi/widgets/spazio_utilizzato.php b/modules/stato_servizi/widgets/spazio_utilizzato.php index 1b46a7195..32f7c3972 100755 --- a/modules/stato_servizi/widgets/spazio_utilizzato.php +++ b/modules/stato_servizi/widgets/spazio_utilizzato.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../../core.php'; @@ -23,7 +40,7 @@ $(document).ready(function() { }, success: function(data) { data = JSON.parse(data); - + crea_grafico(data); } }); @@ -36,7 +53,7 @@ function crea_grafico(values){ $labels = []; values.forEach(function(element) { $data.push(element.size); - + //Segnalazione se sul server sembrano mancare file rispetto a quanto previsto a DB if (element.dbSize!==""){ if (element.size "+diff+" file non trovati sul disco.

"); - + } } @@ -64,7 +81,7 @@ function crea_grafico(values){ $("#message").append("

Top 10 allegati:

"); element.dbExtensions.forEach(function(extension) { - + $("#message").append("
"+extension["NUM"]+" file con estensione "+extension["EXTENSION"]+".

"); }); @@ -75,9 +92,9 @@ function crea_grafico(values){ $labels.push(element.description + " (" + element.formattedSize + ")" + " [" + element.count + "]" ) - + }); - + options = { legend: { display: true, @@ -112,7 +129,7 @@ function crea_grafico(values){ displayColors: true } }; - + data = { datasets: [{ data: $data, @@ -133,7 +150,7 @@ function crea_grafico(values){ \'rgba(255, 159, 64, 1)\' ], }], - + labels: $labels, }; diff --git a/modules/tecnici_tariffe/actions.php b/modules/tecnici_tariffe/actions.php index 7b5db3749..7a4593ca4 100755 --- a/modules/tecnici_tariffe/actions.php +++ b/modules/tecnici_tariffe/actions.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/modules/tecnici_tariffe/edit.php b/modules/tecnici_tariffe/edit.php index 8ef4ec7a2..f789d74e1 100755 --- a/modules/tecnici_tariffe/edit.php +++ b/modules/tecnici_tariffe/edit.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; @@ -6,7 +23,7 @@ echo '
- +
@@ -17,12 +34,12 @@ echo '
- + - + - + '; @@ -56,7 +73,7 @@ echo ' foreach ($tipi_interventi as $tipo_intervento) { echo ' - + - + - + - + - + - +
'.tr('Attività').' '.tr('Addebito orario').' @@ -48,7 +65,7 @@ echo ' '.tr('Costo diritto ch.').'
'.$tipo_intervento['descrizione'].' @@ -82,7 +99,7 @@ echo ' {[ "type": "number", "name": "costo_dirittochiamata_tecnico['.$tipo_intervento['id'].']", "required": 1, "value": "'.$tipo_intervento['costo_dirittochiamata_tecnico'].'" ]} diff --git a/modules/tecnici_tariffe/init.php b/modules/tecnici_tariffe/init.php index 271a99bb1..e60a4685b 100755 --- a/modules/tecnici_tariffe/init.php +++ b/modules/tecnici_tariffe/init.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/modules/tipi_anagrafiche/actions.php b/modules/tipi_anagrafiche/actions.php index 0fe0d5d48..5ac681542 100755 --- a/modules/tipi_anagrafiche/actions.php +++ b/modules/tipi_anagrafiche/actions.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/modules/tipi_anagrafiche/add.php b/modules/tipi_anagrafiche/add.php index 2fb4edb06..3874ebb6a 100755 --- a/modules/tipi_anagrafiche/add.php +++ b/modules/tipi_anagrafiche/add.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/modules/tipi_anagrafiche/edit.php b/modules/tipi_anagrafiche/edit.php index aa57979b8..83228b0e4 100755 --- a/modules/tipi_anagrafiche/edit.php +++ b/modules/tipi_anagrafiche/edit.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/modules/tipi_anagrafiche/init.php b/modules/tipi_anagrafiche/init.php index e9f6711e1..c3ba7dddf 100755 --- a/modules/tipi_anagrafiche/init.php +++ b/modules/tipi_anagrafiche/init.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/modules/tipi_intervento/actions.php b/modules/tipi_intervento/actions.php index 9ed34603f..860635f96 100755 --- a/modules/tipi_intervento/actions.php +++ b/modules/tipi_intervento/actions.php @@ -1,4 +1,21 @@ . + */ use Modules\TipiIntervento\Tipo; diff --git a/modules/tipi_intervento/add.php b/modules/tipi_intervento/add.php index f960d519c..8ab1ee333 100755 --- a/modules/tipi_intervento/add.php +++ b/modules/tipi_intervento/add.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/modules/tipi_intervento/buttons.php b/modules/tipi_intervento/buttons.php index 1459f698b..bcd2a4a5a 100755 --- a/modules/tipi_intervento/buttons.php +++ b/modules/tipi_intervento/buttons.php @@ -1,4 +1,21 @@ . + */ echo ' diff --git a/modules/tipi_intervento/edit.php b/modules/tipi_intervento/edit.php index 19c077363..8f725d369 100755 --- a/modules/tipi_intervento/edit.php +++ b/modules/tipi_intervento/edit.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/modules/tipi_intervento/init.php b/modules/tipi_intervento/init.php index 3aff99998..6966b6222 100755 --- a/modules/tipi_intervento/init.php +++ b/modules/tipi_intervento/init.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; use Modules\TipiIntervento\Tipo; diff --git a/modules/tipi_intervento/src/API/v1/TipiInterventi.php b/modules/tipi_intervento/src/API/v1/TipiInterventi.php index 7e254e41d..935146f7d 100755 --- a/modules/tipi_intervento/src/API/v1/TipiInterventi.php +++ b/modules/tipi_intervento/src/API/v1/TipiInterventi.php @@ -1,4 +1,21 @@ . + */ namespace Modules\TipiIntervento\API\v1; diff --git a/modules/tipi_intervento/src/Tipo.php b/modules/tipi_intervento/src/Tipo.php index efca528b8..e264fe885 100755 --- a/modules/tipi_intervento/src/Tipo.php +++ b/modules/tipi_intervento/src/Tipo.php @@ -1,4 +1,21 @@ . + */ namespace Modules\TipiIntervento; diff --git a/modules/tipi_scadenze/actions.php b/modules/tipi_scadenze/actions.php index c156c7bf0..8a5f938ca 100755 --- a/modules/tipi_scadenze/actions.php +++ b/modules/tipi_scadenze/actions.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/modules/tipi_scadenze/add.php b/modules/tipi_scadenze/add.php index 076009596..40691569a 100755 --- a/modules/tipi_scadenze/add.php +++ b/modules/tipi_scadenze/add.php @@ -1,4 +1,22 @@ . + */ + include_once __DIR__.'/../../core.php'; ?> @@ -20,4 +38,4 @@ include_once __DIR__.'/../../core.php'; - \ No newline at end of file + diff --git a/modules/tipi_scadenze/ajax/select.php b/modules/tipi_scadenze/ajax/select.php index 97e3dd0fd..17e8e46b6 100755 --- a/modules/tipi_scadenze/ajax/select.php +++ b/modules/tipi_scadenze/ajax/select.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../../core.php'; diff --git a/modules/tipi_scadenze/edit.php b/modules/tipi_scadenze/edit.php index 1c5c2edbc..a0de8201e 100755 --- a/modules/tipi_scadenze/edit.php +++ b/modules/tipi_scadenze/edit.php @@ -1,4 +1,22 @@ . + */ + include_once __DIR__.'/../../core.php'; // Collegamenti con scadenzaio (numerici) diff --git a/modules/tipi_scadenze/init.php b/modules/tipi_scadenze/init.php index c0bdf6d32..5fa3e382a 100755 --- a/modules/tipi_scadenze/init.php +++ b/modules/tipi_scadenze/init.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/modules/utenti/actions.php b/modules/utenti/actions.php index c8725ed56..532f60c02 100755 --- a/modules/utenti/actions.php +++ b/modules/utenti/actions.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/modules/utenti/add.php b/modules/utenti/add.php index 0baf40ee3..52865a041 100755 --- a/modules/utenti/add.php +++ b/modules/utenti/add.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/modules/utenti/ajax/select.php b/modules/utenti/ajax/select.php index 077fc0cb8..dca4eee23 100755 --- a/modules/utenti/ajax/select.php +++ b/modules/utenti/ajax/select.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../../core.php'; @@ -48,7 +65,7 @@ switch ($resource) { case 'utenti': $query = "SELECT zz_users.id AS id, if(`an_anagrafiche`.`idanagrafica` IS NOT NULL, CONCAT(`an_anagrafiche`.`ragione_sociale`, ' (', zz_users.username, ')'), zz_users.username) AS descrizione, `an_tipianagrafiche`.`descrizione` AS optgroup - FROM zz_users + FROM zz_users LEFT JOIN `an_anagrafiche` ON `an_anagrafiche`.`idanagrafica` = `zz_users`.`idanagrafica` INNER JOIN `an_tipianagrafiche_anagrafiche` ON `an_anagrafiche`.`idanagrafica`=`an_tipianagrafiche_anagrafiche`.`idanagrafica` INNER JOIN `an_tipianagrafiche` ON `an_tipianagrafiche`.`idtipoanagrafica`=`an_tipianagrafiche_anagrafiche`.`idtipoanagrafica` diff --git a/modules/utenti/components/base.php b/modules/utenti/components/base.php index 111466fd0..ed8b69608 100755 --- a/modules/utenti/components/base.php +++ b/modules/utenti/components/base.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/modules/utenti/components/password.php b/modules/utenti/components/password.php index 35dfdb526..7085ea9db 100755 --- a/modules/utenti/components/password.php +++ b/modules/utenti/components/password.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/modules/utenti/components/photo.php b/modules/utenti/components/photo.php index 052522951..bf153b2da 100755 --- a/modules/utenti/components/photo.php +++ b/modules/utenti/components/photo.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/modules/utenti/edit.php b/modules/utenti/edit.php index 9056c1d4b..e40d02560 100755 --- a/modules/utenti/edit.php +++ b/modules/utenti/edit.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/modules/utenti/info.php b/modules/utenti/info.php index 4df4d9d19..fa7314817 100755 --- a/modules/utenti/info.php +++ b/modules/utenti/info.php @@ -1,4 +1,21 @@ . + */ $skip_permissions = true; include_once __DIR__.'/../../core.php'; @@ -29,7 +46,7 @@ echo '

'.$user['username'].'

'.$user['gruppo'].'
- +
'; $user_photo = $user->photo; @@ -51,7 +68,7 @@ echo ' '.(!empty($anagrafica) ? $anagrafica['ragione_sociale'] : tr('Nessuna')).'
- +
- +
diff --git a/modules/utenti/init.php b/modules/utenti/init.php index 64b686f63..b7d7a0d34 100755 --- a/modules/utenti/init.php +++ b/modules/utenti/init.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/modules/utenti/modutil.php b/modules/utenti/modutil.php index 61450c75c..37e4973e1 100755 --- a/modules/utenti/modutil.php +++ b/modules/utenti/modutil.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/modules/utenti/self.php b/modules/utenti/self.php index dd8ad2c23..aac10d738 100755 --- a/modules/utenti/self.php +++ b/modules/utenti/self.php @@ -1,4 +1,21 @@ . + */ $skip_permissions = true; include_once __DIR__.'/../../core.php'; diff --git a/modules/utenti/src/API/v1/Login.php b/modules/utenti/src/API/v1/Login.php index a30256bf8..0b75e51c3 100755 --- a/modules/utenti/src/API/v1/Login.php +++ b/modules/utenti/src/API/v1/Login.php @@ -1,4 +1,21 @@ . + */ namespace Modules\Utenti\API\v1; diff --git a/modules/utenti/src/API/v1/Logout.php b/modules/utenti/src/API/v1/Logout.php index 68a8fb95b..c90b20b37 100755 --- a/modules/utenti/src/API/v1/Logout.php +++ b/modules/utenti/src/API/v1/Logout.php @@ -1,4 +1,21 @@ . + */ namespace Modules\Utenti\API\v1; diff --git a/modules/utenti/user.php b/modules/utenti/user.php index c8bbb0373..bee45d8e7 100755 --- a/modules/utenti/user.php +++ b/modules/utenti/user.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; @@ -32,7 +49,7 @@ echo '
- + '; include $structure->filepath('components/photo.php'); @@ -45,13 +62,13 @@ if (!empty($user)) { {[ "type": "checkbox", "label": "'.tr('Cambia password').'", "name": "change_password", "value": "0" ]}
- + '; diff --git a/plugins/dettagli_articolo/actions.php b/plugins/dettagli_articolo/actions.php index b55462006..68ee0d414 100755 --- a/plugins/dettagli_articolo/actions.php +++ b/plugins/dettagli_articolo/actions.php @@ -1,4 +1,21 @@ . + */ use Modules\Anagrafiche\Anagrafica; use Modules\Articoli\Articolo; diff --git a/plugins/dettagli_articolo/dettaglio_fornitore.php b/plugins/dettagli_articolo/dettaglio_fornitore.php index c260f316c..8735ce221 100644 --- a/plugins/dettagli_articolo/dettaglio_fornitore.php +++ b/plugins/dettagli_articolo/dettaglio_fornitore.php @@ -1,4 +1,21 @@ . + */ use Modules\Anagrafiche\Anagrafica; use Modules\Articoli\Articolo; diff --git a/plugins/dettagli_articolo/dettaglio_prezzi.php b/plugins/dettagli_articolo/dettaglio_prezzi.php index a3808f71f..d18016c23 100644 --- a/plugins/dettagli_articolo/dettaglio_prezzi.php +++ b/plugins/dettagli_articolo/dettaglio_prezzi.php @@ -1,4 +1,21 @@ . + */ use Modules\Anagrafiche\Anagrafica; use Modules\Articoli\Articolo; diff --git a/plugins/dettagli_articolo/edit.php b/plugins/dettagli_articolo/edit.php index 7cbb487d6..9409f5f1a 100755 --- a/plugins/dettagli_articolo/edit.php +++ b/plugins/dettagli_articolo/edit.php @@ -1,4 +1,21 @@ . + */ use Plugins\DettagliArticolo\DettaglioFornitore; use Plugins\DettagliArticolo\DettaglioPrezzo; diff --git a/plugins/dettagli_articolo/src/DettaglioFornitore.php b/plugins/dettagli_articolo/src/DettaglioFornitore.php index 2ff8417e1..207f6181f 100644 --- a/plugins/dettagli_articolo/src/DettaglioFornitore.php +++ b/plugins/dettagli_articolo/src/DettaglioFornitore.php @@ -1,4 +1,21 @@ . + */ namespace Plugins\DettagliArticolo; diff --git a/plugins/dettagli_articolo/src/DettaglioPrezzo.php b/plugins/dettagli_articolo/src/DettaglioPrezzo.php index 149bb6726..dc8733b43 100644 --- a/plugins/dettagli_articolo/src/DettaglioPrezzo.php +++ b/plugins/dettagli_articolo/src/DettaglioPrezzo.php @@ -1,4 +1,21 @@ . + */ namespace Plugins\DettagliArticolo; diff --git a/plugins/dettagli_articolo/src/METEL.php b/plugins/dettagli_articolo/src/METEL.php index 51378239c..4ca9812f6 100644 --- a/plugins/dettagli_articolo/src/METEL.php +++ b/plugins/dettagli_articolo/src/METEL.php @@ -1,4 +1,21 @@ . + */ namespace Plugins\DettagliArticolo; diff --git a/plugins/dichiarazioni_intento/actions.php b/plugins/dichiarazioni_intento/actions.php index b0d3b4bc2..1bfadfdcb 100755 --- a/plugins/dichiarazioni_intento/actions.php +++ b/plugins/dichiarazioni_intento/actions.php @@ -1,4 +1,21 @@ . + */ use Modules\Anagrafiche\Anagrafica; use Plugins\DichiarazioniIntento\Dichiarazione; diff --git a/plugins/dichiarazioni_intento/add.php b/plugins/dichiarazioni_intento/add.php index 7aeac152b..3f229cc14 100755 --- a/plugins/dichiarazioni_intento/add.php +++ b/plugins/dichiarazioni_intento/add.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; @@ -16,7 +33,7 @@ echo '
{[ "type": "text", "label": "'.tr('Numero protocollo').'", "name": "numero_protocollo", "required": 1 ]}
- +
{[ "type": "text", "label": "'.tr('Numero progressivo').'", "name": "numero_progressivo", "required": 1 ]}
@@ -26,21 +43,21 @@ echo '
{[ "type": "date", "label": "'.tr('Data di inizio').'", "name": "data_inizio", "required": 1 ]}
- +
{[ "type": "date", "label": "'.tr('Data di fine').'", "name": "data_fine", "required": 1 ]}
- +
{[ "type": "number", "label": "'.tr('Massimale').'", "name": "massimale", "required": 1, "icon-after": "'.currency().'" ]}
- +
{[ "type": "date", "label": "'.tr('Data protocollo').'", "name": "data_protocollo" ]}
- +
{[ "type": "date", "label": "'.tr('Data di emissione').'", "name": "data_emissione" ]}
diff --git a/plugins/dichiarazioni_intento/edit.php b/plugins/dichiarazioni_intento/edit.php index 41d0ccdd1..364b633f7 100755 --- a/plugins/dichiarazioni_intento/edit.php +++ b/plugins/dichiarazioni_intento/edit.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; @@ -18,7 +35,7 @@ echo '
{[ "type": "text", "label": "'.tr('Numero protocollo').'", "name": "numero_protocollo", "required": 1, "value": "'.$record['numero_protocollo'].'" ]}
- +
{[ "type": "text", "label": "'.tr('Numero progressivo').'", "name": "numero_progressivo", "required": 1, "value": "'.$record['numero_progressivo'].'" ]}
@@ -28,28 +45,28 @@ echo '
{[ "type": "date", "label": "'.tr('Data di inizio').'", "name": "data_inizio", "required": 1, "value": "'.$record['data_inizio'].'" ]}
- +
{[ "type": "date", "label": "'.tr('Data di fine').'", "name": "data_fine", "required": 1, "value": "'.$record['data_fine'].'" ]}
- +
{[ "type": "number", "label": "'.tr('Massimale').'", "name": "massimale", "required": 1, "icon-after": "'.currency().'", "value": "'.$record['massimale'].'" ]}
- +
{[ "type": "date", "label": "'.tr('Data protocollo').'", "name": "data_protocollo", "value": "'.$record['data_protocollo'].'" ]}
- +
{[ "type": "date", "label": "'.tr('Data di emissione').'", "name": "data_emissione", "value": "'.$record['data_emissione'].'" ]}
- +

'.tr('Totale utilizzato').': '.moneyFormat($record['totale']).'

- +
diff --git a/plugins/dichiarazioni_intento/init.php b/plugins/dichiarazioni_intento/init.php index 08b7e9e1b..30382a581 100755 --- a/plugins/dichiarazioni_intento/init.php +++ b/plugins/dichiarazioni_intento/init.php @@ -1,4 +1,21 @@ . + */ use Plugins\DichiarazioniIntento\Dichiarazione; diff --git a/plugins/dichiarazioni_intento/src/Dichiarazione.php b/plugins/dichiarazioni_intento/src/Dichiarazione.php index 05018e32a..ec319b0bb 100755 --- a/plugins/dichiarazioni_intento/src/Dichiarazione.php +++ b/plugins/dichiarazioni_intento/src/Dichiarazione.php @@ -1,4 +1,21 @@ . + */ namespace Plugins\DichiarazioniIntento; diff --git a/plugins/exportFE/actions.php b/plugins/exportFE/actions.php index 50d642d6a..dd522e2d4 100755 --- a/plugins/exportFE/actions.php +++ b/plugins/exportFE/actions.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/init.php'; diff --git a/plugins/exportFE/download.php b/plugins/exportFE/download.php index deb4e8fb3..1c79ee42b 100755 --- a/plugins/exportFE/download.php +++ b/plugins/exportFE/download.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/init.php'; diff --git a/plugins/exportFE/edit.php b/plugins/exportFE/edit.php index 873939e24..f324874a4 100755 --- a/plugins/exportFE/edit.php +++ b/plugins/exportFE/edit.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/init.php'; diff --git a/plugins/exportFE/init.php b/plugins/exportFE/init.php index fae8db0f4..26a965d8d 100755 --- a/plugins/exportFE/init.php +++ b/plugins/exportFE/init.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/plugins/exportFE/src/FatturaElettronica.php b/plugins/exportFE/src/FatturaElettronica.php index 4baa29d53..86de15ae5 100755 --- a/plugins/exportFE/src/FatturaElettronica.php +++ b/plugins/exportFE/src/FatturaElettronica.php @@ -1,4 +1,21 @@ . + */ namespace Plugins\ExportFE; diff --git a/plugins/exportFE/src/Interaction.php b/plugins/exportFE/src/Interaction.php index f4a5137cc..2bc6d9bb3 100755 --- a/plugins/exportFE/src/Interaction.php +++ b/plugins/exportFE/src/Interaction.php @@ -1,4 +1,21 @@ . + */ namespace Plugins\ExportFE; diff --git a/plugins/exportFE/src/InvoiceHook.php b/plugins/exportFE/src/InvoiceHook.php index 2711139f2..e08f627ba 100755 --- a/plugins/exportFE/src/InvoiceHook.php +++ b/plugins/exportFE/src/InvoiceHook.php @@ -1,4 +1,21 @@ . + */ namespace Plugins\ExportFE; diff --git a/plugins/exportFE/src/Validator.php b/plugins/exportFE/src/Validator.php index 50cbfe5d2..f738adcc0 100755 --- a/plugins/exportFE/src/Validator.php +++ b/plugins/exportFE/src/Validator.php @@ -1,4 +1,21 @@ . + */ namespace Plugins\ExportFE; diff --git a/plugins/importFE/actions.php b/plugins/importFE/actions.php index 4039db956..32cf26c8b 100755 --- a/plugins/importFE/actions.php +++ b/plugins/importFE/actions.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/plugins/importFE/buttons.php b/plugins/importFE/buttons.php index ccbab80d4..13ca4d236 100755 --- a/plugins/importFE/buttons.php +++ b/plugins/importFE/buttons.php @@ -1,4 +1,21 @@ . + */ echo '

'.$name.'

- - - '.$descrizione.' ['.$name.'] '.$element['sender'].' '.dateFormat($element['date_sent']).' '.moneyFormat($element['amount']).' + '; @@ -93,7 +110,7 @@ if (!empty($list)) { } echo ' - + @@ -133,10 +150,10 @@ function import_fe(button, file, data_registrazione) { title: "'.tr('Fattura già importata.').'", type: "info", }); - + $(button).prop("disabled", true); } - + buttonRestore(button, restore); }, error: function(xhr) { @@ -156,7 +173,7 @@ function process_fe(button, file) { confirmButtonText: "'.tr('Sì').'" }).then(function (result) { var restore = buttonLoading(button); - + $.ajax({ url: globals.rootdir + "/actions.php", type: "get", @@ -184,7 +201,7 @@ function delete_fe(button, file_id) { confirmButtonText: "'.tr('Sì').'" }).then(function (result) { var restore = buttonLoading(button); - + $.ajax({ url: globals.rootdir + "/actions.php", type: "get", diff --git a/plugins/importFE/riferimento.php b/plugins/importFE/riferimento.php index 1cc522424..3dc1a6086 100755 --- a/plugins/importFE/riferimento.php +++ b/plugins/importFE/riferimento.php @@ -1,4 +1,21 @@ . + */ use Modules\DDT\DDT; use Modules\Ordini\Ordine; @@ -7,22 +24,20 @@ include_once __DIR__.'/../../core.php'; include_once __DIR__.'/init.php'; $direzione = 'uscita'; -$id_anagrafica = $anagrafica->id; $id_riga = get('id_riga'); $qta = get('qta'); $id_documento = get('id_documento'); $tipo_documento = get('tipo_documento'); -if (!empty($tipo_documento)) { - if ($tipo_documento == 'ordine') { - $documento = Ordine::find($id_documento); - $righe_utilizzate = get('righe_ordini'); - } else { - $documento = DDT::find($id_documento); - $righe_utilizzate = get('righe_ddt'); - } +if ($tipo_documento == 'ordine') { + $documento = Ordine::find($id_documento); + $righe_utilizzate = get('righe_ordini'); +} else { + $documento = DDT::find($id_documento); + $righe_utilizzate = get('righe_ddt'); +} - echo ' +echo ' @@ -32,140 +47,55 @@ if (!empty($tipo_documento)) { '; - $id_riferimento = get('id_riferimento'); - $righe = $documento->getRighe(); - foreach ($righe as $riga) { - $qta_rimanente = $riga->qta_rimanente - $righe_utilizzate[$riga->id]; +$id_riferimento = get('id_riferimento'); +$righe = $documento->getRighe(); +foreach ($righe as $riga) { + $qta_rimanente = $riga->qta_rimanente - $righe_utilizzate[$riga->id]; - echo ' - id ? 'class="success"' : '').'> + $dettagli = [ + 'tipo' => get_class($riga), + 'id' => $riga->id, + 'qta' => $riga->qta, + 'prezzo_unitario' => $riga->prezzo_unitario, + 'id_iva' => $riga->id_iva, + 'iva_percentuale' => $riga->aliquota->percentuale, + ]; + + echo ' + id ? 'class="success"' : '').' data-dettagli='.json_encode($dettagli).'> '; - } - - echo ' - -
'.tr('Descrizione').'
'.$riga->descrizione.' '.numberFormat($qta_rimanente, 'qta').' / '.numberFormat($riga->qta, 'qta').' '; - if ($qta_rimanente >= $qta) { - echo ' - '; - } + } - echo ' + echo '
'; - - return; } echo ' -
-
- {[ "type": "select", "label": "'.tr('Ordine').'", "name": "id_ordine", "values": "query=SELECT or_ordini.id, CONCAT(\'Ordine num. \', IF(numero_esterno != \'\', numero_esterno, numero), \' del \', DATE_FORMAT(data, \'%d-%m-%Y\'), \' [\', (SELECT descrizione FROM or_statiordine WHERE id = idstatoordine) , \']\') AS descrizione FROM or_ordini WHERE idanagrafica = '.prepare($id_anagrafica).' AND idstatoordine IN (SELECT id FROM or_statiordine WHERE descrizione IN(\'Bozza\', \'Accettato\', \'Parzialmente evaso\')) AND idtipoordine IN (SELECT id FROM or_tipiordine WHERE dir='.prepare($direzione).') ORDER BY data DESC, numero DESC", "value": "" ]} -
- -
- {[ "type": "select", "label": "'.tr('Ddt').'", "name": "id_ddt", "values": "query=SELECT dt_ddt.id, CONCAT(\'DDT num. \', IF(numero_esterno != \'\', numero_esterno, numero), \' del \', DATE_FORMAT(data, \'%d-%m-%Y\'), \' [\', (SELECT descrizione FROM dt_statiddt WHERE id = idstatoddt) , \']\') AS descrizione FROM dt_ddt WHERE idanagrafica = '.prepare($id_anagrafica).' AND idstatoddt IN (SELECT id FROM dt_statiddt WHERE descrizione IN(\'Bozza\', \'Parzialmente evaso\')) AND idtipoddt IN (SELECT id FROM dt_tipiddt WHERE dir='.prepare($direzione).') ORDER BY data DESC, numero DESC" ]} -
-
- -
- -
- -
- '.tr('Caricamento in corso').'... -
'; - -$file = basename(__FILE__); -echo ' - +
'; diff --git a/plugins/importFE/src/FatturaElettronica.php b/plugins/importFE/src/FatturaElettronica.php index 4f28c579f..61f150592 100755 --- a/plugins/importFE/src/FatturaElettronica.php +++ b/plugins/importFE/src/FatturaElettronica.php @@ -1,4 +1,21 @@ . + */ namespace Plugins\ImportFE; diff --git a/plugins/importFE/src/FatturaOrdinaria.php b/plugins/importFE/src/FatturaOrdinaria.php index 467ebf522..a30553c8e 100755 --- a/plugins/importFE/src/FatturaOrdinaria.php +++ b/plugins/importFE/src/FatturaOrdinaria.php @@ -1,4 +1,21 @@ . + */ namespace Plugins\ImportFE; diff --git a/plugins/importFE/src/FatturaSemplificata.php b/plugins/importFE/src/FatturaSemplificata.php index 1472f2a7c..7710e4b2f 100755 --- a/plugins/importFE/src/FatturaSemplificata.php +++ b/plugins/importFE/src/FatturaSemplificata.php @@ -1,4 +1,21 @@ . + */ namespace Plugins\ImportFE; diff --git a/plugins/importFE/src/Interaction.php b/plugins/importFE/src/Interaction.php index 953451478..10af3bb35 100755 --- a/plugins/importFE/src/Interaction.php +++ b/plugins/importFE/src/Interaction.php @@ -1,4 +1,21 @@ . + */ namespace Plugins\ImportFE; diff --git a/plugins/importFE/src/InvoiceHook.php b/plugins/importFE/src/InvoiceHook.php index 7ac1d6006..90c7155ad 100755 --- a/plugins/importFE/src/InvoiceHook.php +++ b/plugins/importFE/src/InvoiceHook.php @@ -1,4 +1,21 @@ . + */ namespace Plugins\ImportFE; diff --git a/plugins/importFE/src/Parcella.php b/plugins/importFE/src/Parcella.php index d70ae284d..2086dc435 100755 --- a/plugins/importFE/src/Parcella.php +++ b/plugins/importFE/src/Parcella.php @@ -1,4 +1,21 @@ . + */ namespace Plugins\ImportFE; diff --git a/plugins/importFE/view.php b/plugins/importFE/view.php index 643a44263..ca01b1c8e 100755 --- a/plugins/importFE/view.php +++ b/plugins/importFE/view.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/plugins/notes.php b/plugins/notes.php index 2045b1a41..507f7ea4a 100755 --- a/plugins/notes.php +++ b/plugins/notes.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../core.php'; @@ -30,7 +47,7 @@ if (count($notes) > 0) { '; } else { echo ' - + '; } @@ -43,7 +60,7 @@ if (count($notes) > 0) { '.dateFormat($nota->notification_date).' - + '; diff --git a/plugins/pianificazione_fatturazione/actions.php b/plugins/pianificazione_fatturazione/actions.php index ec6ee02b4..b72ca5a8c 100755 --- a/plugins/pianificazione_fatturazione/actions.php +++ b/plugins/pianificazione_fatturazione/actions.php @@ -1,4 +1,21 @@ . + */ use Modules\Contratti\Components\Riga; use Modules\Contratti\Contratto; diff --git a/plugins/pianificazione_fatturazione/add_pianificazione.php b/plugins/pianificazione_fatturazione/add_pianificazione.php index ef48f48b2..012ef6b32 100755 --- a/plugins/pianificazione_fatturazione/add_pianificazione.php +++ b/plugins/pianificazione_fatturazione/add_pianificazione.php @@ -1,4 +1,21 @@ . + */ use Modules\Contratti\Contratto; diff --git a/plugins/pianificazione_fatturazione/crea_fattura.php b/plugins/pianificazione_fatturazione/crea_fattura.php index d4d63b79c..106045ede 100755 --- a/plugins/pianificazione_fatturazione/crea_fattura.php +++ b/plugins/pianificazione_fatturazione/crea_fattura.php @@ -1,4 +1,21 @@ . + */ use Plugins\PianificazioneFatturazione\Pianificazione; diff --git a/plugins/pianificazione_fatturazione/edit.php b/plugins/pianificazione_fatturazione/edit.php index cece0b2fe..041ce4d04 100755 --- a/plugins/pianificazione_fatturazione/edit.php +++ b/plugins/pianificazione_fatturazione/edit.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../../core.php'; diff --git a/plugins/pianificazione_fatturazione/src/Pianificazione.php b/plugins/pianificazione_fatturazione/src/Pianificazione.php index fb5bfd79d..7d1089677 100755 --- a/plugins/pianificazione_fatturazione/src/Pianificazione.php +++ b/plugins/pianificazione_fatturazione/src/Pianificazione.php @@ -1,4 +1,21 @@ . + */ namespace Plugins\PianificazioneFatturazione; diff --git a/plugins/pianificazione_fatturazione/widgets/rate_contrattuali.php b/plugins/pianificazione_fatturazione/widgets/rate_contrattuali.php index 68119a09a..087bdd021 100644 --- a/plugins/pianificazione_fatturazione/widgets/rate_contrattuali.php +++ b/plugins/pianificazione_fatturazione/widgets/rate_contrattuali.php @@ -1,4 +1,21 @@ . + */ use Plugins\PianificazioneFatturazione\Pianificazione; diff --git a/plugins/pianificazione_interventi/actions.php b/plugins/pianificazione_interventi/actions.php index a1f244e49..3461d7f1d 100755 --- a/plugins/pianificazione_interventi/actions.php +++ b/plugins/pianificazione_interventi/actions.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/plugins/pianificazione_interventi/edit.php b/plugins/pianificazione_interventi/edit.php index f0ec12dd0..f699d396b 100755 --- a/plugins/pianificazione_interventi/edit.php +++ b/plugins/pianificazione_interventi/edit.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/plugins/pianificazione_interventi/init.php b/plugins/pianificazione_interventi/init.php index d67efc732..2bc74d47c 100755 --- a/plugins/pianificazione_interventi/init.php +++ b/plugins/pianificazione_interventi/init.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/plugins/pianificazione_interventi/pianificazione.php b/plugins/pianificazione_interventi/pianificazione.php index a605699d8..f938bedf3 100755 --- a/plugins/pianificazione_interventi/pianificazione.php +++ b/plugins/pianificazione_interventi/pianificazione.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/plugins/pianificazione_interventi/row-add.php b/plugins/pianificazione_interventi/row-add.php index f19837be8..f628602af 100755 --- a/plugins/pianificazione_interventi/row-add.php +++ b/plugins/pianificazione_interventi/row-add.php @@ -1,4 +1,21 @@ . + */ use Plugins\PianificazioneInterventi\Promemoria; diff --git a/plugins/pianificazione_interventi/row-edit.php b/plugins/pianificazione_interventi/row-edit.php index 9f10e5eee..478235da2 100755 --- a/plugins/pianificazione_interventi/row-edit.php +++ b/plugins/pianificazione_interventi/row-edit.php @@ -1,4 +1,21 @@ . + */ use Plugins\PianificazioneInterventi\Promemoria; diff --git a/plugins/pianificazione_interventi/row-list.php b/plugins/pianificazione_interventi/row-list.php index b408d43c3..f01536f3a 100755 --- a/plugins/pianificazione_interventi/row-list.php +++ b/plugins/pianificazione_interventi/row-list.php @@ -1,4 +1,21 @@ . + */ use Plugins\PianificazioneInterventi\Promemoria; diff --git a/plugins/pianificazione_interventi/src/Components/Articolo.php b/plugins/pianificazione_interventi/src/Components/Articolo.php index 68c20e1a5..17cb794ce 100755 --- a/plugins/pianificazione_interventi/src/Components/Articolo.php +++ b/plugins/pianificazione_interventi/src/Components/Articolo.php @@ -1,4 +1,21 @@ . + */ namespace Plugins\PianificazioneInterventi\Components; diff --git a/plugins/pianificazione_interventi/src/Components/Descrizione.php b/plugins/pianificazione_interventi/src/Components/Descrizione.php index e100513eb..06fc77246 100755 --- a/plugins/pianificazione_interventi/src/Components/Descrizione.php +++ b/plugins/pianificazione_interventi/src/Components/Descrizione.php @@ -1,4 +1,21 @@ . + */ namespace Plugins\PianificazioneInterventi\Components; diff --git a/plugins/pianificazione_interventi/src/Components/RelationTrait.php b/plugins/pianificazione_interventi/src/Components/RelationTrait.php index c9983bb67..e8a954f83 100755 --- a/plugins/pianificazione_interventi/src/Components/RelationTrait.php +++ b/plugins/pianificazione_interventi/src/Components/RelationTrait.php @@ -1,4 +1,21 @@ . + */ namespace Plugins\PianificazioneInterventi\Components; diff --git a/plugins/pianificazione_interventi/src/Components/Riga.php b/plugins/pianificazione_interventi/src/Components/Riga.php index 5e50afd99..7acfdb7c7 100755 --- a/plugins/pianificazione_interventi/src/Components/Riga.php +++ b/plugins/pianificazione_interventi/src/Components/Riga.php @@ -1,4 +1,21 @@ . + */ namespace Plugins\PianificazioneInterventi\Components; diff --git a/plugins/pianificazione_interventi/src/Components/Sconto.php b/plugins/pianificazione_interventi/src/Components/Sconto.php index 6b4fe5ac6..99f8f28d2 100755 --- a/plugins/pianificazione_interventi/src/Components/Sconto.php +++ b/plugins/pianificazione_interventi/src/Components/Sconto.php @@ -1,4 +1,21 @@ . + */ namespace Plugins\PianificazioneInterventi\Components; diff --git a/plugins/pianificazione_interventi/src/Promemoria.php b/plugins/pianificazione_interventi/src/Promemoria.php index 65a48a3af..7d91b2d44 100755 --- a/plugins/pianificazione_interventi/src/Promemoria.php +++ b/plugins/pianificazione_interventi/src/Promemoria.php @@ -1,4 +1,21 @@ . + */ namespace Plugins\PianificazioneInterventi; diff --git a/plugins/pianificazione_interventi/widgets/promemoria_da_pianificare.php b/plugins/pianificazione_interventi/widgets/promemoria_da_pianificare.php index 5d7ccf455..6acfa66f7 100644 --- a/plugins/pianificazione_interventi/widgets/promemoria_da_pianificare.php +++ b/plugins/pianificazione_interventi/widgets/promemoria_da_pianificare.php @@ -1,4 +1,21 @@ . + */ use Plugins\PianificazioneInterventi\Promemoria; diff --git a/plugins/receiptFE/actions.php b/plugins/receiptFE/actions.php index 9f6f3ca60..798ade2f4 100755 --- a/plugins/receiptFE/actions.php +++ b/plugins/receiptFE/actions.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/plugins/receiptFE/edit.php b/plugins/receiptFE/edit.php index 05d76718b..7149b77ba 100755 --- a/plugins/receiptFE/edit.php +++ b/plugins/receiptFE/edit.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/plugins/receiptFE/list.php b/plugins/receiptFE/list.php index ab56f5929..3516a6e5a 100755 --- a/plugins/receiptFE/list.php +++ b/plugins/receiptFE/list.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; @@ -72,7 +89,7 @@ function import_fe(button, file) { }, success: function(data) { importMessage(data); - + buttonRestore(button, restore); $("#list").load("'.$structure->fileurl('list.php').'?id_module='.$id_module.'&id_plugin='.$id_plugin.'"); }, @@ -93,7 +110,7 @@ function delete_fe(button, file_id) { confirmButtonText: "'.tr('Sì').'" }).then(function (result) { var restore = buttonLoading(button); - + $.ajax({ url: globals.rootdir + "/actions.php", type: "get", @@ -121,7 +138,7 @@ function process_fe(button, file) { confirmButtonText: "'.tr('Sì').'" }).then(function (result) { var restore = buttonLoading(button); - + $.ajax({ url: globals.rootdir + "/actions.php", type: "get", diff --git a/plugins/receiptFE/src/Interaction.php b/plugins/receiptFE/src/Interaction.php index c15dfb52d..4be349d99 100755 --- a/plugins/receiptFE/src/Interaction.php +++ b/plugins/receiptFE/src/Interaction.php @@ -1,4 +1,21 @@ . + */ namespace Plugins\ReceiptFE; diff --git a/plugins/receiptFE/src/ReceiptHook.php b/plugins/receiptFE/src/ReceiptHook.php index 3ae0408f3..47f56f883 100755 --- a/plugins/receiptFE/src/ReceiptHook.php +++ b/plugins/receiptFE/src/ReceiptHook.php @@ -1,4 +1,21 @@ . + */ namespace Plugins\ReceiptFE; diff --git a/plugins/receiptFE/src/Ricevuta.php b/plugins/receiptFE/src/Ricevuta.php index d6d79c3ac..48638debd 100755 --- a/plugins/receiptFE/src/Ricevuta.php +++ b/plugins/receiptFE/src/Ricevuta.php @@ -1,8 +1,24 @@ . + */ namespace Plugins\ReceiptFE; -use Carbon\Carbon; use Modules; use Modules\Fatture\Fattura; use Plugins; diff --git a/plugins/referenti/actions.php b/plugins/referenti/actions.php index f185445cd..517af8138 100755 --- a/plugins/referenti/actions.php +++ b/plugins/referenti/actions.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/plugins/referenti/add.php b/plugins/referenti/add.php index bbcc52fc2..5bf309704 100755 --- a/plugins/referenti/add.php +++ b/plugins/referenti/add.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/plugins/referenti/edit.php b/plugins/referenti/edit.php index 67d01b79f..beb18e53f 100755 --- a/plugins/referenti/edit.php +++ b/plugins/referenti/edit.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; @@ -54,4 +71,4 @@ echo ' $("#mansione").autocomplete({source: response.split("|")}); } ); }); - \ No newline at end of file + diff --git a/plugins/referenti/init.php b/plugins/referenti/init.php index 1011629db..d47a4a7ef 100755 --- a/plugins/referenti/init.php +++ b/plugins/referenti/init.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/plugins/revisioni/actions.php b/plugins/revisioni/actions.php index 4f89e00bf..caba2a2f8 100755 --- a/plugins/revisioni/actions.php +++ b/plugins/revisioni/actions.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/plugins/revisioni/edit.php b/plugins/revisioni/edit.php index fff29f13a..4266c46d4 100755 --- a/plugins/revisioni/edit.php +++ b/plugins/revisioni/edit.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../../core.php'; diff --git a/plugins/rinnovi_contratti/edit.php b/plugins/rinnovi_contratti/edit.php index 6d5604559..5107a1a26 100755 --- a/plugins/rinnovi_contratti/edit.php +++ b/plugins/rinnovi_contratti/edit.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/plugins/sedi/actions.php b/plugins/sedi/actions.php index 3ebdabc3d..cefa0d02a 100755 --- a/plugins/sedi/actions.php +++ b/plugins/sedi/actions.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/plugins/sedi/add.php b/plugins/sedi/add.php index 372845335..6a9e605b3 100755 --- a/plugins/sedi/add.php +++ b/plugins/sedi/add.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/plugins/sedi/edit.php b/plugins/sedi/edit.php index 415bb34c0..5f5c5f701 100755 --- a/plugins/sedi/edit.php +++ b/plugins/sedi/edit.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/plugins/sedi/init.php b/plugins/sedi/init.php index 16ed17b1e..aeb7666f5 100755 --- a/plugins/sedi/init.php +++ b/plugins/sedi/init.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/plugins/statistiche_anagrafiche/edit.php b/plugins/statistiche_anagrafiche/edit.php index a3efc8843..e5ef44763 100755 --- a/plugins/statistiche_anagrafiche/edit.php +++ b/plugins/statistiche_anagrafiche/edit.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; @@ -18,14 +35,14 @@ echo '
- +
- +
- +
'; $statistiche = Modules::get('Statistiche'); @@ -46,7 +63,7 @@ var local_url = "'.str_replace('edit.php', '', $structure->fileurl('edit.php')). function init_calendar(calendar) { var widgets = new Widget(calendar, "info.php", {}, "#widgets"); - + calendar.addElement(widgets); } '; diff --git a/plugins/statistiche_anagrafiche/info.php b/plugins/statistiche_anagrafiche/info.php index f81af1560..83d4cb211 100755 --- a/plugins/statistiche_anagrafiche/info.php +++ b/plugins/statistiche_anagrafiche/info.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/plugins/statistiche_articoli/edit.php b/plugins/statistiche_articoli/edit.php index 71ae4bf14..258b48844 100755 --- a/plugins/statistiche_articoli/edit.php +++ b/plugins/statistiche_articoli/edit.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; @@ -18,9 +35,9 @@ echo '
- +
- +
@@ -28,7 +45,7 @@ echo '

'.tr('Prezzo medio acquisto').'

- +
@@ -44,7 +61,7 @@ echo ' - +
@@ -54,7 +71,7 @@ echo '

'.tr('Prezzo medio vendita').'

- +
@@ -70,7 +87,7 @@ echo ' - +
@@ -97,7 +114,7 @@ var local_url = "'.str_replace('edit.php', '', $structure->fileurl('edit.php')). function init_calendar(calendar) { var prezzo_acquisto = new Prezzo(calendar, "#prezzi_acquisto", "uscita"); var prezzo_vendita = new Prezzo(calendar, "#prezzi_vendita", "entrata"); - + calendar.addElement(prezzo_acquisto); calendar.addElement(prezzo_vendita); } diff --git a/plugins/statistiche_articoli/js/prezzo.js b/plugins/statistiche_articoli/js/prezzo.js index 97d032b8b..a1dec8dd7 100755 --- a/plugins/statistiche_articoli/js/prezzo.js +++ b/plugins/statistiche_articoli/js/prezzo.js @@ -1,3 +1,21 @@ +/* + * 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 . + */ + class Prezzo extends Table { constructor(calendar, id, direzione){ super(calendar, "manage_prezzi.php", { diff --git a/plugins/statistiche_articoli/manage_prezzi.php b/plugins/statistiche_articoli/manage_prezzi.php index 868f3cc64..2d99de8bf 100755 --- a/plugins/statistiche_articoli/manage_prezzi.php +++ b/plugins/statistiche_articoli/manage_prezzi.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/plugins/statistiche_articoli/src/Stats.php b/plugins/statistiche_articoli/src/Stats.php index 4856e4533..5591e9c22 100755 --- a/plugins/statistiche_articoli/src/Stats.php +++ b/plugins/statistiche_articoli/src/Stats.php @@ -1,4 +1,21 @@ . + */ namespace Plugins\StatisticheArticoli; diff --git a/plugins/xml/AT.xsl b/plugins/xml/AT.xsl index ef56f4468..bd844b2dd 100755 --- a/plugins/xml/AT.xsl +++ b/plugins/xml/AT.xsl @@ -1,4 +1,22 @@ + + diff --git a/plugins/xml/DT.xsl b/plugins/xml/DT.xsl index 8a827a7fe..88bb2aec1 100755 --- a/plugins/xml/DT.xsl +++ b/plugins/xml/DT.xsl @@ -1,4 +1,22 @@ + + diff --git a/plugins/xml/EC.xsl b/plugins/xml/EC.xsl index 36f16f837..8616a3e19 100755 --- a/plugins/xml/EC.xsl +++ b/plugins/xml/EC.xsl @@ -1,4 +1,22 @@ + + diff --git a/plugins/xml/MC.xsl b/plugins/xml/MC.xsl index 48e7b62bf..54e2a495a 100755 --- a/plugins/xml/MC.xsl +++ b/plugins/xml/MC.xsl @@ -1,4 +1,22 @@ + + diff --git a/plugins/xml/MT.xsl b/plugins/xml/MT.xsl index d8035c12a..f534cac5a 100755 --- a/plugins/xml/MT.xsl +++ b/plugins/xml/MT.xsl @@ -1,4 +1,22 @@ + + diff --git a/plugins/xml/NE.xsl b/plugins/xml/NE.xsl index 4287cf944..5a357855b 100755 --- a/plugins/xml/NE.xsl +++ b/plugins/xml/NE.xsl @@ -1,4 +1,22 @@ + + diff --git a/plugins/xml/NS.xsl b/plugins/xml/NS.xsl index 26534eb0b..b56571db6 100755 --- a/plugins/xml/NS.xsl +++ b/plugins/xml/NS.xsl @@ -1,4 +1,22 @@ + + diff --git a/plugins/xml/RC.xsl b/plugins/xml/RC.xsl index 8eaee59a2..0a9c509ed 100755 --- a/plugins/xml/RC.xsl +++ b/plugins/xml/RC.xsl @@ -1,4 +1,22 @@ + + diff --git a/plugins/xml/SE.xsl b/plugins/xml/SE.xsl index a1a627253..b5736f16d 100755 --- a/plugins/xml/SE.xsl +++ b/plugins/xml/SE.xsl @@ -1,4 +1,22 @@ + + diff --git a/plugins/xml/asso-invoice.xsl b/plugins/xml/asso-invoice.xsl index 17199dcb5..cac75e0a8 100755 --- a/plugins/xml/asso-invoice.xsl +++ b/plugins/xml/asso-invoice.xsl @@ -1,4 +1,22 @@ + + - + - + DDT @@ -154,7 +172,7 @@ - + @@ -163,7 +181,7 @@ - + @@ -174,9 +192,9 @@ - + - + @@ -186,15 +204,15 @@ - + - - - + + + - - - + + + @@ -208,10 +226,10 @@ - + - - + + @@ -219,9 +237,9 @@ - - - + + + @@ -235,9 +253,9 @@ - + - + @@ -245,8 +263,8 @@ - - + + @@ -260,10 +278,10 @@ - + - - + + @@ -272,7 +290,7 @@ - + @@ -286,9 +304,9 @@ - + - + @@ -298,7 +316,7 @@ - + @@ -311,9 +329,9 @@ - + - + @@ -323,7 +341,7 @@ - + @@ -385,8 +403,8 @@ - + @@ -726,7 +744,7 @@ - + @@ -836,10 +854,10 @@
- + - + @@ -849,7 +867,7 @@
- + @@ -1156,7 +1174,7 @@ - +
Denominazione: @@ -1335,7 +1353,7 @@ - +
@@ -1418,12 +1436,12 @@ - - + +
- +
@@ -1441,7 +1459,7 @@
- +
- +
@@ -1753,7 +1771,7 @@
@@ -1768,12 +1786,12 @@ - + - + @@ -1802,11 +1820,11 @@ Art. 73 - + Imposta bollo - + Numero documento Data documento Codice destinatario @@ -1879,7 +1897,7 @@ fattura per autoconsumo o per cessioni gratuite senza rivalsa - + fattura semplificata @@ -1907,7 +1925,7 @@
- + @@ -2068,7 +2086,7 @@ - - + Arr. @@ -2503,7 +2521,7 @@ - + @@ -2513,9 +2531,9 @@ - - - + + + @@ -2531,8 +2549,8 @@ - - + + @@ -2562,7 +2580,7 @@
- + @@ -2574,13 +2592,13 @@ - + -
- + +
@@ -2701,7 +2719,7 @@
- + @@ -2714,7 +2732,7 @@
- + @@ -2868,7 +2886,7 @@ .headBorder { @@ -2932,7 +2950,7 @@ border-collapse: collapse; word-wrap:break-word; } - + table.tbFoglio th { padding-left: 5px; padding-right: 5px; @@ -3065,13 +3083,13 @@ table.tbNoBorder { - border-collapse: collapse; - margin-bottom: 5px; + border-collapse: collapse; + margin-bottom: 5px; font-size:small; text-align:center; width:800px; } - + @@ -3114,4 +3132,4 @@ - \ No newline at end of file + diff --git a/reset.php b/reset.php index 19c6c72e1..bbcd4089d 100755 --- a/reset.php +++ b/reset.php @@ -1,4 +1,21 @@ . + */ $skip_permissions = true; include_once __DIR__.'/core.php'; diff --git a/src/AJAX.php b/src/AJAX.php index 8b3a5b989..826246150 100755 --- a/src/AJAX.php +++ b/src/AJAX.php @@ -1,4 +1,21 @@ . + */ use Util\Query; diff --git a/src/API/App/AppResource.php b/src/API/App/AppResource.php index bae233e58..a711d0f65 100644 --- a/src/API/App/AppResource.php +++ b/src/API/App/AppResource.php @@ -1,4 +1,21 @@ . + */ namespace API\App; diff --git a/src/API/App/v1/AliquoteIva.php b/src/API/App/v1/AliquoteIva.php index 7037a9302..19b1f396d 100644 --- a/src/API/App/v1/AliquoteIva.php +++ b/src/API/App/v1/AliquoteIva.php @@ -1,4 +1,21 @@ . + */ namespace API\App\v1; diff --git a/src/API/App/v1/AllegatiInterventi.php b/src/API/App/v1/AllegatiInterventi.php index 007981c63..f94df2c66 100644 --- a/src/API/App/v1/AllegatiInterventi.php +++ b/src/API/App/v1/AllegatiInterventi.php @@ -1,4 +1,21 @@ . + */ namespace API\App\v1; diff --git a/src/API/App/v1/Articoli.php b/src/API/App/v1/Articoli.php index 9f9572a18..f9f51815c 100644 --- a/src/API/App/v1/Articoli.php +++ b/src/API/App/v1/Articoli.php @@ -1,4 +1,21 @@ . + */ namespace API\App\v1; diff --git a/src/API/App/v1/Clienti.php b/src/API/App/v1/Clienti.php index ac3974b3c..36f769e06 100644 --- a/src/API/App/v1/Clienti.php +++ b/src/API/App/v1/Clienti.php @@ -1,4 +1,21 @@ . + */ namespace API\App\v1; diff --git a/src/API/App/v1/Contratti.php b/src/API/App/v1/Contratti.php index 3662deac5..a74b2d654 100644 --- a/src/API/App/v1/Contratti.php +++ b/src/API/App/v1/Contratti.php @@ -1,4 +1,21 @@ . + */ namespace API\App\v1; diff --git a/src/API/App/v1/Impianti.php b/src/API/App/v1/Impianti.php index 883d39822..c1b1fa3a2 100644 --- a/src/API/App/v1/Impianti.php +++ b/src/API/App/v1/Impianti.php @@ -1,4 +1,21 @@ . + */ namespace API\App\v1; diff --git a/src/API/App/v1/Impostazioni.php b/src/API/App/v1/Impostazioni.php index 5a6527796..ad92f6e1e 100644 --- a/src/API/App/v1/Impostazioni.php +++ b/src/API/App/v1/Impostazioni.php @@ -1,4 +1,21 @@ . + */ namespace API\App\v1; diff --git a/src/API/App/v1/Interventi.php b/src/API/App/v1/Interventi.php index 868b70483..5089a0372 100644 --- a/src/API/App/v1/Interventi.php +++ b/src/API/App/v1/Interventi.php @@ -1,4 +1,21 @@ . + */ namespace API\App\v1; @@ -121,7 +138,6 @@ class Interventi extends AppResource codice, richiesta, data_richiesta, - (SELECT MIN(`orario_inizio`) FROM `in_interventi_tecnici` WHERE `in_interventi_tecnici`.`idintervento` = `in_interventi`.`id`) AS `data`, descrizione, idanagrafica AS id_cliente, id_contratto, diff --git a/src/API/App/v1/Login.php b/src/API/App/v1/Login.php index 0bfaf974e..74a2c3b7b 100644 --- a/src/API/App/v1/Login.php +++ b/src/API/App/v1/Login.php @@ -1,4 +1,21 @@ . + */ namespace API\App\v1; diff --git a/src/API/App/v1/Preventivi.php b/src/API/App/v1/Preventivi.php index e3058596a..4ca21e6f3 100644 --- a/src/API/App/v1/Preventivi.php +++ b/src/API/App/v1/Preventivi.php @@ -1,4 +1,21 @@ . + */ namespace API\App\v1; diff --git a/src/API/App/v1/RapportinoIntervento.php b/src/API/App/v1/RapportinoIntervento.php index 4d5468169..a060f449b 100644 --- a/src/API/App/v1/RapportinoIntervento.php +++ b/src/API/App/v1/RapportinoIntervento.php @@ -1,4 +1,21 @@ . + */ namespace API\App\v1; diff --git a/src/API/App/v1/Referenti.php b/src/API/App/v1/Referenti.php index 3347b5bc1..02abbd32a 100644 --- a/src/API/App/v1/Referenti.php +++ b/src/API/App/v1/Referenti.php @@ -1,4 +1,21 @@ . + */ namespace API\App\v1; diff --git a/src/API/App/v1/RigheInterventi.php b/src/API/App/v1/RigheInterventi.php index c7f255ac6..5ae04de0f 100644 --- a/src/API/App/v1/RigheInterventi.php +++ b/src/API/App/v1/RigheInterventi.php @@ -1,4 +1,21 @@ . + */ namespace API\App\v1; diff --git a/src/API/App/v1/Sedi.php b/src/API/App/v1/Sedi.php index c982403ea..38d6bacfe 100644 --- a/src/API/App/v1/Sedi.php +++ b/src/API/App/v1/Sedi.php @@ -1,4 +1,21 @@ . + */ namespace API\App\v1; diff --git a/src/API/App/v1/SessioniInterventi.php b/src/API/App/v1/SessioniInterventi.php index 499ea9b8f..3538942da 100644 --- a/src/API/App/v1/SessioniInterventi.php +++ b/src/API/App/v1/SessioniInterventi.php @@ -1,4 +1,21 @@ . + */ namespace API\App\v1; diff --git a/src/API/App/v1/StatiIntervento.php b/src/API/App/v1/StatiIntervento.php index 9e39f92a1..303754f29 100644 --- a/src/API/App/v1/StatiIntervento.php +++ b/src/API/App/v1/StatiIntervento.php @@ -1,4 +1,21 @@ . + */ namespace API\App\v1; diff --git a/src/API/App/v1/TariffeContratti.php b/src/API/App/v1/TariffeContratti.php index 57e7dbc05..d8020ff8d 100644 --- a/src/API/App/v1/TariffeContratti.php +++ b/src/API/App/v1/TariffeContratti.php @@ -1,4 +1,21 @@ . + */ namespace API\App\v1; diff --git a/src/API/App/v1/TariffeTecnici.php b/src/API/App/v1/TariffeTecnici.php index 8cdfa6a9f..78129dd60 100644 --- a/src/API/App/v1/TariffeTecnici.php +++ b/src/API/App/v1/TariffeTecnici.php @@ -1,4 +1,21 @@ . + */ namespace API\App\v1; diff --git a/src/API/App/v1/Tecnici.php b/src/API/App/v1/Tecnici.php index 06bc862b7..bd4e676c5 100644 --- a/src/API/App/v1/Tecnici.php +++ b/src/API/App/v1/Tecnici.php @@ -1,4 +1,21 @@ . + */ namespace API\App\v1; diff --git a/src/API/App/v1/TipiIntervento.php b/src/API/App/v1/TipiIntervento.php index 7a165dd4f..08c5ed99c 100644 --- a/src/API/App/v1/TipiIntervento.php +++ b/src/API/App/v1/TipiIntervento.php @@ -1,4 +1,21 @@ . + */ namespace API\App\v1; diff --git a/src/API/Common/Allegato.php b/src/API/Common/Allegato.php index 8f85955d0..d76acafb1 100755 --- a/src/API/Common/Allegato.php +++ b/src/API/Common/Allegato.php @@ -1,4 +1,21 @@ . + */ namespace API\Common; diff --git a/src/API/Common/Stampa.php b/src/API/Common/Stampa.php index 1aaad2ae8..4801894a4 100755 --- a/src/API/Common/Stampa.php +++ b/src/API/Common/Stampa.php @@ -1,4 +1,21 @@ . + */ namespace API\Common; diff --git a/src/API/Common/Task.php b/src/API/Common/Task.php index 8dbdc65a9..5548f5bdc 100644 --- a/src/API/Common/Task.php +++ b/src/API/Common/Task.php @@ -1,4 +1,21 @@ . + */ namespace API\Common; diff --git a/src/API/Exceptions/InternalError.php b/src/API/Exceptions/InternalError.php index f852fd388..84c19d377 100755 --- a/src/API/Exceptions/InternalError.php +++ b/src/API/Exceptions/InternalError.php @@ -1,4 +1,21 @@ . + */ namespace API\Exceptions; diff --git a/src/API/Exceptions/ResourceNotFound.php b/src/API/Exceptions/ResourceNotFound.php index a906cda85..4e347330f 100755 --- a/src/API/Exceptions/ResourceNotFound.php +++ b/src/API/Exceptions/ResourceNotFound.php @@ -1,4 +1,21 @@ . + */ namespace API\Exceptions; diff --git a/src/API/Exceptions/ServiceError.php b/src/API/Exceptions/ServiceError.php index 3d0ebdebb..457ac53c7 100755 --- a/src/API/Exceptions/ServiceError.php +++ b/src/API/Exceptions/ServiceError.php @@ -1,4 +1,21 @@ . + */ namespace API\Exceptions; diff --git a/src/API/Exceptions/Unauthorized.php b/src/API/Exceptions/Unauthorized.php index e4353ced6..48ff83cdd 100755 --- a/src/API/Exceptions/Unauthorized.php +++ b/src/API/Exceptions/Unauthorized.php @@ -1,4 +1,21 @@ . + */ namespace API\Exceptions; diff --git a/src/API/Interfaces/CreateInterface.php b/src/API/Interfaces/CreateInterface.php index 716166d9b..eff0f74dd 100755 --- a/src/API/Interfaces/CreateInterface.php +++ b/src/API/Interfaces/CreateInterface.php @@ -1,4 +1,21 @@ . + */ namespace API\Interfaces; diff --git a/src/API/Interfaces/DeleteInterface.php b/src/API/Interfaces/DeleteInterface.php index f57ddb991..391a20f63 100755 --- a/src/API/Interfaces/DeleteInterface.php +++ b/src/API/Interfaces/DeleteInterface.php @@ -1,4 +1,21 @@ . + */ namespace API\Interfaces; diff --git a/src/API/Interfaces/RetrieveInterface.php b/src/API/Interfaces/RetrieveInterface.php index 747b6ffaf..5ddb13c6d 100755 --- a/src/API/Interfaces/RetrieveInterface.php +++ b/src/API/Interfaces/RetrieveInterface.php @@ -1,4 +1,21 @@ . + */ namespace API\Interfaces; diff --git a/src/API/Interfaces/UpdateInterface.php b/src/API/Interfaces/UpdateInterface.php index 0a5bc3272..f4af877b7 100755 --- a/src/API/Interfaces/UpdateInterface.php +++ b/src/API/Interfaces/UpdateInterface.php @@ -1,4 +1,21 @@ . + */ namespace API\Interfaces; diff --git a/src/API/Manager.php b/src/API/Manager.php index dc5e81ed8..ac10101de 100755 --- a/src/API/Manager.php +++ b/src/API/Manager.php @@ -1,4 +1,21 @@ . + */ namespace API; diff --git a/src/API/Resource.php b/src/API/Resource.php index 80ef435c5..86708da6a 100755 --- a/src/API/Resource.php +++ b/src/API/Resource.php @@ -1,4 +1,21 @@ . + */ namespace API; diff --git a/src/API/Response.php b/src/API/Response.php index 27fdbae11..8c5d6b3ae 100755 --- a/src/API/Response.php +++ b/src/API/Response.php @@ -1,4 +1,21 @@ . + */ namespace API; diff --git a/src/API/Services.php b/src/API/Services.php index 6a162cbd0..15fa28907 100755 --- a/src/API/Services.php +++ b/src/API/Services.php @@ -1,4 +1,21 @@ . + */ namespace API; diff --git a/src/App.php b/src/App.php index e6e275d55..50af9661d 100755 --- a/src/App.php +++ b/src/App.php @@ -1,4 +1,21 @@ . + */ /** * Classe per la gestione delle utenze. diff --git a/src/Auth.php b/src/Auth.php index 69cf918a7..9f1109cec 100755 --- a/src/Auth.php +++ b/src/Auth.php @@ -1,4 +1,21 @@ . + */ use API\Response as API; use Models\User; diff --git a/src/Backup.php b/src/Backup.php index 15f9c9c7d..8ba8233f4 100755 --- a/src/Backup.php +++ b/src/Backup.php @@ -1,4 +1,21 @@ . + */ use Ifsnop\Mysqldump\Mysqldump; use Util\Zip; diff --git a/src/Database.php b/src/Database.php index 862108884..d23189f09 100755 --- a/src/Database.php +++ b/src/Database.php @@ -1,4 +1,21 @@ . + */ use Illuminate\Database\Capsule\Manager as Capsule; diff --git a/src/Exporter/CSVExporter.php b/src/Exporter/CSVExporter.php index 18d4f4ff9..638c2b539 100644 --- a/src/Exporter/CSVExporter.php +++ b/src/Exporter/CSVExporter.php @@ -1,4 +1,21 @@ . + */ namespace Exporter; diff --git a/src/Exporter/ExporterInterface.php b/src/Exporter/ExporterInterface.php index 3d7505e90..8f1d78ea0 100644 --- a/src/Exporter/ExporterInterface.php +++ b/src/Exporter/ExporterInterface.php @@ -1,4 +1,21 @@ . + */ namespace Exporter; diff --git a/src/Extensions/EloquentCollector.php b/src/Extensions/EloquentCollector.php index 5b262227e..58584b1ea 100755 --- a/src/Extensions/EloquentCollector.php +++ b/src/Extensions/EloquentCollector.php @@ -1,4 +1,21 @@ . + */ namespace Extensions; diff --git a/src/Extensions/MessageHandler.php b/src/Extensions/MessageHandler.php index 9811556ef..a90d95b97 100755 --- a/src/Extensions/MessageHandler.php +++ b/src/Extensions/MessageHandler.php @@ -1,4 +1,21 @@ . + */ namespace Extensions; diff --git a/src/Filter.php b/src/Filter.php index 57daf6ab3..e62ef2fb9 100755 --- a/src/Filter.php +++ b/src/Filter.php @@ -1,4 +1,21 @@ . + */ /** * Classe per gestire la sanitarizzazione degli input, basata sul framework open-source HTMLPurifier. diff --git a/src/HTMLBuilder/HTMLBuilder.php b/src/HTMLBuilder/HTMLBuilder.php index 6e04a6b60..d37fef186 100755 --- a/src/HTMLBuilder/HTMLBuilder.php +++ b/src/HTMLBuilder/HTMLBuilder.php @@ -1,4 +1,21 @@ . + */ namespace HTMLBuilder; diff --git a/src/HTMLBuilder/Handler/CKEditorHandler.php b/src/HTMLBuilder/Handler/CKEditorHandler.php index 249850291..0fd14fdbe 100755 --- a/src/HTMLBuilder/Handler/CKEditorHandler.php +++ b/src/HTMLBuilder/Handler/CKEditorHandler.php @@ -1,4 +1,21 @@ . + */ namespace HTMLBuilder\Handler; diff --git a/src/HTMLBuilder/Handler/ChoicesHandler.php b/src/HTMLBuilder/Handler/ChoicesHandler.php index 4784c9c3b..e71eee13f 100755 --- a/src/HTMLBuilder/Handler/ChoicesHandler.php +++ b/src/HTMLBuilder/Handler/ChoicesHandler.php @@ -1,4 +1,21 @@ . + */ namespace HTMLBuilder\Handler; @@ -54,7 +71,7 @@ class ChoicesHandler implements HandlerInterface // Generazione del codice HTML // "+ this.checked" rende il valore booleano un numero $result = ' -
+
diff --git a/src/HTMLBuilder/Handler/DateHandler.php b/src/HTMLBuilder/Handler/DateHandler.php index 98fa7772e..fbe7b287d 100755 --- a/src/HTMLBuilder/Handler/DateHandler.php +++ b/src/HTMLBuilder/Handler/DateHandler.php @@ -1,4 +1,21 @@ . + */ namespace HTMLBuilder\Handler; diff --git a/src/HTMLBuilder/Handler/DefaultHandler.php b/src/HTMLBuilder/Handler/DefaultHandler.php index 5c3c31a8d..39fd21ac8 100755 --- a/src/HTMLBuilder/Handler/DefaultHandler.php +++ b/src/HTMLBuilder/Handler/DefaultHandler.php @@ -1,4 +1,21 @@ . + */ namespace HTMLBuilder\Handler; diff --git a/src/HTMLBuilder/Handler/HandlerInterface.php b/src/HTMLBuilder/Handler/HandlerInterface.php index af553072b..49a84b0df 100755 --- a/src/HTMLBuilder/Handler/HandlerInterface.php +++ b/src/HTMLBuilder/Handler/HandlerInterface.php @@ -1,4 +1,21 @@ . + */ namespace HTMLBuilder\Handler; diff --git a/src/HTMLBuilder/Handler/MediaHandler.php b/src/HTMLBuilder/Handler/MediaHandler.php index 4eb0a9cb3..acd9fc4cd 100755 --- a/src/HTMLBuilder/Handler/MediaHandler.php +++ b/src/HTMLBuilder/Handler/MediaHandler.php @@ -1,4 +1,21 @@ . + */ namespace HTMLBuilder\Handler; diff --git a/src/HTMLBuilder/Handler/SelectHandler.php b/src/HTMLBuilder/Handler/SelectHandler.php index 743777e01..e7531a4d3 100755 --- a/src/HTMLBuilder/Handler/SelectHandler.php +++ b/src/HTMLBuilder/Handler/SelectHandler.php @@ -1,4 +1,21 @@ . + */ namespace HTMLBuilder\Handler; diff --git a/src/HTMLBuilder/Manager/ButtonManager.php b/src/HTMLBuilder/Manager/ButtonManager.php index 0b9fdbadb..27497b7fe 100755 --- a/src/HTMLBuilder/Manager/ButtonManager.php +++ b/src/HTMLBuilder/Manager/ButtonManager.php @@ -1,4 +1,21 @@ . + */ namespace HTMLBuilder\Manager; diff --git a/src/HTMLBuilder/Manager/EmailManager.php b/src/HTMLBuilder/Manager/EmailManager.php index 3d5c476a1..32bb61f2b 100755 --- a/src/HTMLBuilder/Manager/EmailManager.php +++ b/src/HTMLBuilder/Manager/EmailManager.php @@ -1,4 +1,21 @@ . + */ namespace HTMLBuilder\Manager; diff --git a/src/HTMLBuilder/Manager/FieldManager.php b/src/HTMLBuilder/Manager/FieldManager.php index dcbbb56bc..f321871b7 100755 --- a/src/HTMLBuilder/Manager/FieldManager.php +++ b/src/HTMLBuilder/Manager/FieldManager.php @@ -1,4 +1,21 @@ . + */ namespace HTMLBuilder\Manager; diff --git a/src/HTMLBuilder/Manager/FileManager.php b/src/HTMLBuilder/Manager/FileManager.php index 056c85e42..82d279055 100755 --- a/src/HTMLBuilder/Manager/FileManager.php +++ b/src/HTMLBuilder/Manager/FileManager.php @@ -1,4 +1,21 @@ . + */ namespace HTMLBuilder\Manager; diff --git a/src/HTMLBuilder/Manager/ManagerInterface.php b/src/HTMLBuilder/Manager/ManagerInterface.php index d94bd382d..c366dc58f 100755 --- a/src/HTMLBuilder/Manager/ManagerInterface.php +++ b/src/HTMLBuilder/Manager/ManagerInterface.php @@ -1,4 +1,21 @@ . + */ namespace HTMLBuilder\Manager; diff --git a/src/HTMLBuilder/Manager/WidgetManager.php b/src/HTMLBuilder/Manager/WidgetManager.php index bde4169ac..d6f79da5f 100755 --- a/src/HTMLBuilder/Manager/WidgetManager.php +++ b/src/HTMLBuilder/Manager/WidgetManager.php @@ -1,4 +1,21 @@ . + */ namespace HTMLBuilder\Manager; @@ -170,7 +187,7 @@ class WidgetManager implements ManagerInterface
'.$title.' - + '.(!empty($widget['help']) ? '' : '').' '; diff --git a/src/HTMLBuilder/Wrapper/HTMLWrapper.php b/src/HTMLBuilder/Wrapper/HTMLWrapper.php index 8ff492399..9a839f3dc 100755 --- a/src/HTMLBuilder/Wrapper/HTMLWrapper.php +++ b/src/HTMLBuilder/Wrapper/HTMLWrapper.php @@ -1,4 +1,21 @@ . + */ namespace HTMLBuilder\Wrapper; @@ -168,6 +185,10 @@ class HTMLWrapper implements WrapperInterface $values['icon-custom'] = 'no-padding'; } + if (str_contains($string, 'permission, ['r', 'rw'])) { $result = ' -'; } diff --git a/src/HTMLBuilder/Wrapper/WrapperInterface.php b/src/HTMLBuilder/Wrapper/WrapperInterface.php index 74b291f87..ca2242a6a 100755 --- a/src/HTMLBuilder/Wrapper/WrapperInterface.php +++ b/src/HTMLBuilder/Wrapper/WrapperInterface.php @@ -1,4 +1,21 @@ . + */ namespace HTMLBuilder\Wrapper; diff --git a/src/Hooks/CachedManager.php b/src/Hooks/CachedManager.php index fc3cabf87..f74debc32 100755 --- a/src/Hooks/CachedManager.php +++ b/src/Hooks/CachedManager.php @@ -1,4 +1,21 @@ . + */ namespace Hooks; diff --git a/src/Hooks/Manager.php b/src/Hooks/Manager.php index 887f741b0..9d76a4189 100755 --- a/src/Hooks/Manager.php +++ b/src/Hooks/Manager.php @@ -1,4 +1,21 @@ . + */ namespace Hooks; diff --git a/src/Importer/CSVImporter.php b/src/Importer/CSVImporter.php index 43d93577a..363ac8020 100644 --- a/src/Importer/CSVImporter.php +++ b/src/Importer/CSVImporter.php @@ -1,4 +1,21 @@ . + */ namespace Importer; diff --git a/src/Importer/ImporterInterface.php b/src/Importer/ImporterInterface.php index 9f18c2c32..9f062d4dc 100644 --- a/src/Importer/ImporterInterface.php +++ b/src/Importer/ImporterInterface.php @@ -1,4 +1,21 @@ . + */ namespace Importer; diff --git a/src/Intl/FileLoader.php b/src/Intl/FileLoader.php index c36b06200..61ea9f932 100755 --- a/src/Intl/FileLoader.php +++ b/src/Intl/FileLoader.php @@ -1,4 +1,21 @@ . + */ namespace Intl; diff --git a/src/Intl/Formatter.php b/src/Intl/Formatter.php index fdb79cff3..58a898b6c 100755 --- a/src/Intl/Formatter.php +++ b/src/Intl/Formatter.php @@ -1,4 +1,21 @@ . + */ namespace Intl; @@ -461,7 +478,7 @@ class Formatter * * @return string */ - public function getDatePattern($type = null) + public function getDatePattern() { return $this->datePattern; } diff --git a/src/Models/ApiResource.php b/src/Models/ApiResource.php index 9e1df3389..7e82ea279 100755 --- a/src/Models/ApiResource.php +++ b/src/Models/ApiResource.php @@ -1,4 +1,21 @@ . + */ namespace Models; diff --git a/src/Models/Cache.php b/src/Models/Cache.php index 6348e5e40..a8ad5012f 100755 --- a/src/Models/Cache.php +++ b/src/Models/Cache.php @@ -1,4 +1,21 @@ . + */ namespace Models; diff --git a/src/Models/Clause.php b/src/Models/Clause.php index 7ac7c2f18..b6c9fb85f 100755 --- a/src/Models/Clause.php +++ b/src/Models/Clause.php @@ -1,4 +1,21 @@ . + */ namespace Models; diff --git a/src/Models/Group.php b/src/Models/Group.php index 04c65eb29..8ccaaeb89 100755 --- a/src/Models/Group.php +++ b/src/Models/Group.php @@ -1,4 +1,21 @@ . + */ namespace Models; diff --git a/src/Models/Hook.php b/src/Models/Hook.php index d628a7e53..9e1c60ab7 100755 --- a/src/Models/Hook.php +++ b/src/Models/Hook.php @@ -1,4 +1,21 @@ . + */ namespace Models; diff --git a/src/Models/Log.php b/src/Models/Log.php index c9f29e690..b611551fd 100755 --- a/src/Models/Log.php +++ b/src/Models/Log.php @@ -1,4 +1,21 @@ . + */ namespace Models; diff --git a/src/Models/Module.php b/src/Models/Module.php index 6d3a3ead9..d93ef52eb 100755 --- a/src/Models/Module.php +++ b/src/Models/Module.php @@ -1,4 +1,21 @@ . + */ namespace Models; diff --git a/src/Models/Note.php b/src/Models/Note.php index 308c8ee50..a6fa7b00c 100755 --- a/src/Models/Note.php +++ b/src/Models/Note.php @@ -1,4 +1,21 @@ . + */ namespace Models; diff --git a/src/Models/OperationLog.php b/src/Models/OperationLog.php index d8350b3a9..498402e07 100755 --- a/src/Models/OperationLog.php +++ b/src/Models/OperationLog.php @@ -1,4 +1,21 @@ . + */ namespace Models; diff --git a/src/Models/Plugin.php b/src/Models/Plugin.php index 9809f14f0..72c438621 100755 --- a/src/Models/Plugin.php +++ b/src/Models/Plugin.php @@ -1,4 +1,21 @@ . + */ namespace Models; diff --git a/src/Models/PrintTemplate.php b/src/Models/PrintTemplate.php index aa7f38e2a..3d7d7ef20 100755 --- a/src/Models/PrintTemplate.php +++ b/src/Models/PrintTemplate.php @@ -1,4 +1,21 @@ . + */ namespace Models; diff --git a/src/Models/Setting.php b/src/Models/Setting.php index e121926d5..05b4033fd 100755 --- a/src/Models/Setting.php +++ b/src/Models/Setting.php @@ -1,4 +1,21 @@ . + */ namespace Models; diff --git a/src/Models/Upload.php b/src/Models/Upload.php index 02bc837a9..a4e520c1d 100755 --- a/src/Models/Upload.php +++ b/src/Models/Upload.php @@ -1,4 +1,21 @@ . + */ namespace Models; diff --git a/src/Models/User.php b/src/Models/User.php index ab54cfa74..669f9990d 100755 --- a/src/Models/User.php +++ b/src/Models/User.php @@ -1,4 +1,21 @@ . + */ namespace Models; diff --git a/src/Models/View.php b/src/Models/View.php index a19562a60..8d58dac10 100755 --- a/src/Models/View.php +++ b/src/Models/View.php @@ -1,4 +1,21 @@ . + */ namespace Models; diff --git a/src/Modules.php b/src/Modules.php index 2cca3dd04..b914c57a8 100755 --- a/src/Modules.php +++ b/src/Modules.php @@ -1,4 +1,21 @@ . + */ use Models\Module; diff --git a/src/Notifications/EmailNotification.php b/src/Notifications/EmailNotification.php index 95c710fc4..de5d11eff 100755 --- a/src/Notifications/EmailNotification.php +++ b/src/Notifications/EmailNotification.php @@ -1,4 +1,21 @@ . + */ namespace Notifications; diff --git a/src/Notifications/Notification.php b/src/Notifications/Notification.php index 9988ce3d6..51077c396 100755 --- a/src/Notifications/Notification.php +++ b/src/Notifications/Notification.php @@ -1,4 +1,21 @@ . + */ namespace Notifications; diff --git a/src/Notifications/NotificationInterface.php b/src/Notifications/NotificationInterface.php index d6f309a2f..e4685f9f0 100755 --- a/src/Notifications/NotificationInterface.php +++ b/src/Notifications/NotificationInterface.php @@ -1,4 +1,21 @@ . + */ namespace Notifications; diff --git a/src/Permissions.php b/src/Permissions.php index fdceb51f1..4a229f5ad 100755 --- a/src/Permissions.php +++ b/src/Permissions.php @@ -1,4 +1,21 @@ . + */ /** * Classe per gestire i permessi di accesso alle diverse sezioni del progetto. diff --git a/src/Plugins.php b/src/Plugins.php index 7ae10eb35..9c7e6dd6e 100755 --- a/src/Plugins.php +++ b/src/Plugins.php @@ -1,4 +1,21 @@ . + */ use Models\Plugin; diff --git a/src/Prints.php b/src/Prints.php index d90782d39..da4203923 100755 --- a/src/Prints.php +++ b/src/Prints.php @@ -1,4 +1,21 @@ . + */ /** * Classe per la gestione delle informazioni relative alle stampe installate. diff --git a/src/Settings.php b/src/Settings.php index a6fa04f61..bd135a65a 100755 --- a/src/Settings.php +++ b/src/Settings.php @@ -1,4 +1,21 @@ . + */ use Models\Setting; use Respect\Validation\Validator as v; diff --git a/src/Tasks/Log.php b/src/Tasks/Log.php index a04a93c25..fdb83f4c5 100644 --- a/src/Tasks/Log.php +++ b/src/Tasks/Log.php @@ -1,4 +1,21 @@ . + */ namespace Tasks; diff --git a/src/Tasks/Manager.php b/src/Tasks/Manager.php index b85a77da9..235ab285f 100644 --- a/src/Tasks/Manager.php +++ b/src/Tasks/Manager.php @@ -1,4 +1,21 @@ . + */ namespace Tasks; diff --git a/src/Tasks/Task.php b/src/Tasks/Task.php index 9116cbf56..e96466e8b 100644 --- a/src/Tasks/Task.php +++ b/src/Tasks/Task.php @@ -1,4 +1,21 @@ . + */ namespace Tasks; diff --git a/src/Tasks/TaskInterface.php b/src/Tasks/TaskInterface.php index 516c9b030..56e698e9f 100644 --- a/src/Tasks/TaskInterface.php +++ b/src/Tasks/TaskInterface.php @@ -1,4 +1,21 @@ . + */ namespace Tasks; diff --git a/src/Traits/Components/NoteTrait.php b/src/Traits/Components/NoteTrait.php index 020007c9b..3929da875 100755 --- a/src/Traits/Components/NoteTrait.php +++ b/src/Traits/Components/NoteTrait.php @@ -1,4 +1,21 @@ . + */ namespace Traits\Components; diff --git a/src/Traits/Components/UploadTrait.php b/src/Traits/Components/UploadTrait.php index 8738122f4..90278211f 100755 --- a/src/Traits/Components/UploadTrait.php +++ b/src/Traits/Components/UploadTrait.php @@ -1,4 +1,21 @@ . + */ namespace Traits\Components; diff --git a/src/Traits/HierarchyTrait.php b/src/Traits/HierarchyTrait.php index ef786bea0..0304906eb 100755 --- a/src/Traits/HierarchyTrait.php +++ b/src/Traits/HierarchyTrait.php @@ -1,4 +1,21 @@ . + */ namespace Traits; diff --git a/src/Traits/ManagerTrait.php b/src/Traits/ManagerTrait.php index 89144d1ef..a60611fb2 100755 --- a/src/Traits/ManagerTrait.php +++ b/src/Traits/ManagerTrait.php @@ -1,4 +1,21 @@ . + */ namespace Traits; diff --git a/src/Traits/PathTrait.php b/src/Traits/PathTrait.php index dcb81ed45..2f6d66295 100755 --- a/src/Traits/PathTrait.php +++ b/src/Traits/PathTrait.php @@ -1,4 +1,21 @@ . + */ namespace Traits; diff --git a/src/Traits/RecordTrait.php b/src/Traits/RecordTrait.php index c59cd3110..265e1b950 100755 --- a/src/Traits/RecordTrait.php +++ b/src/Traits/RecordTrait.php @@ -1,4 +1,21 @@ . + */ namespace Traits; diff --git a/src/Traits/ReferenceTrait.php b/src/Traits/ReferenceTrait.php index a1d28d67c..1eab63ece 100755 --- a/src/Traits/ReferenceTrait.php +++ b/src/Traits/ReferenceTrait.php @@ -1,4 +1,21 @@ . + */ namespace Traits; diff --git a/src/Traits/StoreTrait.php b/src/Traits/StoreTrait.php index 74eff4dd5..8e344dedb 100755 --- a/src/Traits/StoreTrait.php +++ b/src/Traits/StoreTrait.php @@ -1,4 +1,21 @@ . + */ namespace Traits; diff --git a/src/Translator.php b/src/Translator.php index 11f7f1b4c..57b0b6ad2 100755 --- a/src/Translator.php +++ b/src/Translator.php @@ -1,4 +1,21 @@ . + */ use Carbon\Carbon; use Carbon\CarbonInterval; diff --git a/src/Update.php b/src/Update.php index fbe41d860..c6ab323ad 100755 --- a/src/Update.php +++ b/src/Update.php @@ -1,4 +1,21 @@ . + */ /** * Classe dedicata alla gestione delle procedure di aggiornamento del database del progetto. diff --git a/src/Uploads.php b/src/Uploads.php index 581b5cf68..ad2ccfd5b 100755 --- a/src/Uploads.php +++ b/src/Uploads.php @@ -1,4 +1,21 @@ . + */ /** * Classe per la gestione degli upload del progetto. diff --git a/src/Util/Autofill.php b/src/Util/Autofill.php index 5d003a9c6..ad4211521 100755 --- a/src/Util/Autofill.php +++ b/src/Util/Autofill.php @@ -1,4 +1,21 @@ . + */ namespace Util; diff --git a/src/Util/FileSystem.php b/src/Util/FileSystem.php index de8ae5aa4..541caf7c2 100755 --- a/src/Util/FileSystem.php +++ b/src/Util/FileSystem.php @@ -1,4 +1,21 @@ . + */ namespace Util; diff --git a/src/Util/Generator.php b/src/Util/Generator.php index e660c2a86..a789f57ee 100755 --- a/src/Util/Generator.php +++ b/src/Util/Generator.php @@ -1,4 +1,21 @@ . + */ namespace Util; diff --git a/src/Util/Ini.php b/src/Util/Ini.php index 9fef7c561..482a993ff 100755 --- a/src/Util/Ini.php +++ b/src/Util/Ini.php @@ -1,4 +1,21 @@ . + */ namespace Util; diff --git a/src/Util/Messages.php b/src/Util/Messages.php index c508cdd08..bfdf0358b 100755 --- a/src/Util/Messages.php +++ b/src/Util/Messages.php @@ -1,4 +1,21 @@ . + */ namespace Util; diff --git a/src/Util/Query.php b/src/Util/Query.php index cea2e5948..ccf92f7f3 100755 --- a/src/Util/Query.php +++ b/src/Util/Query.php @@ -1,4 +1,21 @@ . + */ namespace Util; diff --git a/src/Util/Singleton.php b/src/Util/Singleton.php index 4a2a8e924..cec1825f6 100755 --- a/src/Util/Singleton.php +++ b/src/Util/Singleton.php @@ -1,4 +1,21 @@ . + */ namespace Util; diff --git a/src/Util/XML.php b/src/Util/XML.php index 96897429d..49f2f3e65 100755 --- a/src/Util/XML.php +++ b/src/Util/XML.php @@ -1,4 +1,21 @@ . + */ namespace Util; diff --git a/src/Util/Zip.php b/src/Util/Zip.php index ab2bbb036..f4ae715ac 100755 --- a/src/Util/Zip.php +++ b/src/Util/Zip.php @@ -1,4 +1,21 @@ . + */ namespace Util; diff --git a/src/Validate.php b/src/Validate.php index 376eb7cf2..3db76d32f 100755 --- a/src/Validate.php +++ b/src/Validate.php @@ -1,4 +1,21 @@ . + */ use API\Services; use Mpociot\VatCalculator\Exceptions\VATCheckUnavailableException; diff --git a/templates/barcode/body.php b/templates/barcode/body.php index 5fa91637b..9c22410d4 100755 --- a/templates/barcode/body.php +++ b/templates/barcode/body.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/templates/barcode/footer.php b/templates/barcode/footer.php index 0a7702b4b..160c814fa 100755 --- a/templates/barcode/footer.php +++ b/templates/barcode/footer.php @@ -1,4 +1,21 @@ . + */ echo ' '; diff --git a/templates/barcode/header.php b/templates/barcode/header.php index 0a7702b4b..160c814fa 100755 --- a/templates/barcode/header.php +++ b/templates/barcode/header.php @@ -1,4 +1,21 @@ . + */ echo ' '; diff --git a/templates/barcode/init.php b/templates/barcode/init.php index e9e41165b..7876abb65 100755 --- a/templates/barcode/init.php +++ b/templates/barcode/init.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/templates/base/bootstrap.css b/templates/base/bootstrap.css index f1230975a..90c5f758d 100755 --- a/templates/base/bootstrap.css +++ b/templates/base/bootstrap.css @@ -1,7 +1,19 @@ -/*! - * Bootstrap v3.3.7 (http://getbootstrap.com) - * Copyright 2011-2017 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) +/* + * 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 . */ diff --git a/templates/base/footer.php b/templates/base/footer.php index ec03018b1..ef1d7d6d0 100755 --- a/templates/base/footer.php +++ b/templates/base/footer.php @@ -1,4 +1,21 @@ . + */ /** * Footer di default. diff --git a/templates/base/header.php b/templates/base/header.php index 347d76b1f..e75f66b50 100755 --- a/templates/base/header.php +++ b/templates/base/header.php @@ -1,4 +1,21 @@ . + */ /** * Header di default. diff --git a/templates/base/settings.php b/templates/base/settings.php index 8cce1dc92..a820e21fc 100755 --- a/templates/base/settings.php +++ b/templates/base/settings.php @@ -1,4 +1,21 @@ . + */ $settings = [ 'orientation' => 'P', diff --git a/templates/base/style.css b/templates/base/style.css index f244c25ba..17bc92f37 100755 --- a/templates/base/style.css +++ b/templates/base/style.css @@ -1,3 +1,21 @@ +/* + * 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 . + */ + body { background-color: white; color: black; diff --git a/templates/contratti/body.php b/templates/contratti/body.php index 89818db4a..8430f28f1 100755 --- a/templates/contratti/body.php +++ b/templates/contratti/body.php @@ -1,4 +1,21 @@ . + */ use Carbon\CarbonInterval; diff --git a/templates/contratti/footer.php b/templates/contratti/footer.php index b11e39c48..52597b2e5 100755 --- a/templates/contratti/footer.php +++ b/templates/contratti/footer.php @@ -1,4 +1,21 @@ . + */ if (!$is_last_page) { return; diff --git a/templates/contratti/init.php b/templates/contratti/init.php index 4fb95a6ba..db5ca360d 100755 --- a/templates/contratti/init.php +++ b/templates/contratti/init.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/templates/contratti/settings.php b/templates/contratti/settings.php index 0f521bee5..58d388897 100755 --- a/templates/contratti/settings.php +++ b/templates/contratti/settings.php @@ -1,4 +1,21 @@ . + */ return [ 'footer-height' => 35, diff --git a/templates/contratti_cons/bottom.php b/templates/contratti_cons/bottom.php index 195b14081..dfe394e29 100755 --- a/templates/contratti_cons/bottom.php +++ b/templates/contratti_cons/bottom.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../riepilogo_interventi/bottom.php'; diff --git a/templates/contratti_cons/init.php b/templates/contratti_cons/init.php index 6b468cbf7..5db73659f 100755 --- a/templates/contratti_cons/init.php +++ b/templates/contratti_cons/init.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/templates/contratti_cons/piece.php b/templates/contratti_cons/piece.php index 0036b57c1..bd834a869 100755 --- a/templates/contratti_cons/piece.php +++ b/templates/contratti_cons/piece.php @@ -1,3 +1,20 @@ . + */ include __DIR__.'/../riepilogo_interventi/piece.php'; diff --git a/templates/contratti_cons/top.php b/templates/contratti_cons/top.php index 6e6acdea1..f3f0effdc 100755 --- a/templates/contratti_cons/top.php +++ b/templates/contratti_cons/top.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/templates/dashboard/body.php b/templates/dashboard/body.php index 5c782ab67..0140bbf92 100755 --- a/templates/dashboard/body.php +++ b/templates/dashboard/body.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/templates/dashboard/header.php b/templates/dashboard/header.php index 2a7ce287a..9d47e98c4 100755 --- a/templates/dashboard/header.php +++ b/templates/dashboard/header.php @@ -1,4 +1,21 @@ . + */ echo ' diff --git a/templates/dashboard/settings.php b/templates/dashboard/settings.php index 94cd5d61a..544c13f70 100755 --- a/templates/dashboard/settings.php +++ b/templates/dashboard/settings.php @@ -1,4 +1,21 @@ . + */ $format = (isset($_SESSION['dashboard']['format'])) ? $_SESSION['dashboard']['format'] : 'A4'; $orientation = (isset($_SESSION['dashboard']['orientation'])) ? $_SESSION['dashboard']['orientation'] : 'L'; diff --git a/templates/ddt/body.php b/templates/ddt/body.php index bf3159401..6a3dd6b2c 100755 --- a/templates/ddt/body.php +++ b/templates/ddt/body.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/templates/ddt/footer.php b/templates/ddt/footer.php index b891bdfa4..28cc2ae9a 100755 --- a/templates/ddt/footer.php +++ b/templates/ddt/footer.php @@ -1,4 +1,21 @@ . + */ if (!empty($options['last-page-footer']) && !$is_last_page) { return; diff --git a/templates/ddt/header.php b/templates/ddt/header.php index 4a1fe6125..69db5864a 100755 --- a/templates/ddt/header.php +++ b/templates/ddt/header.php @@ -1,4 +1,21 @@ . + */ echo ' @@ -33,14 +50,14 @@ $default_header$

{PAGENO}/{nb}

- +

'.tr('Pagamento', [], ['upper' => true]).'

$pagamento$

- +

'.tr('Partita IVA', [], ['upper' => true]).'

diff --git a/templates/ddt/init.php b/templates/ddt/init.php index 3eedacd6e..270c7b138 100755 --- a/templates/ddt/init.php +++ b/templates/ddt/init.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/templates/fatturato/body.php b/templates/fatturato/body.php index 0ca73e9dd..8732e3180 100755 --- a/templates/fatturato/body.php +++ b/templates/fatturato/body.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/templates/fatturato/init.php b/templates/fatturato/init.php index 057752753..82b6a3e2a 100755 --- a/templates/fatturato/init.php +++ b/templates/fatturato/init.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/templates/fatture/body.php b/templates/fatture/body.php index 867fb7863..0a64287bb 100755 --- a/templates/fatture/body.php +++ b/templates/fatture/body.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/templates/fatture/footer.php b/templates/fatture/footer.php index 2fec7ef14..ac210b9fa 100755 --- a/templates/fatture/footer.php +++ b/templates/fatture/footer.php @@ -1,4 +1,21 @@ . + */ if (!empty($options['last-page-footer']) && !$is_last_page) { return; diff --git a/templates/fatture/header.php b/templates/fatture/header.php index f47495cd0..ede7a84b1 100755 --- a/templates/fatture/header.php +++ b/templates/fatture/header.php @@ -1,4 +1,21 @@ . + */ if ($options['hide_header']) { echo ' diff --git a/templates/fatture/init.php b/templates/fatture/init.php index 8379430e9..ce64b1619 100755 --- a/templates/fatture/init.php +++ b/templates/fatture/init.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/templates/info.php b/templates/info.php index be055e36e..5aa17d3fb 100755 --- a/templates/info.php +++ b/templates/info.php @@ -1,4 +1,21 @@ . + */ $replaces = []; diff --git a/templates/interventi/body.php b/templates/interventi/body.php index f07050620..a12846bf9 100755 --- a/templates/interventi/body.php +++ b/templates/interventi/body.php @@ -1,4 +1,21 @@ . + */ use Carbon\Carbon; diff --git a/templates/interventi/init.php b/templates/interventi/init.php index e62814639..5a27a98b1 100755 --- a/templates/interventi/init.php +++ b/templates/interventi/init.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/templates/magazzino_inventario/body.php b/templates/magazzino_inventario/body.php index 07a9e79e5..cfbaf1db2 100755 --- a/templates/magazzino_inventario/body.php +++ b/templates/magazzino_inventario/body.php @@ -1,4 +1,21 @@ . + */ use Util\Query; diff --git a/templates/magazzino_inventario/settings.php b/templates/magazzino_inventario/settings.php index 793edc9bf..ee359be1f 100755 --- a/templates/magazzino_inventario/settings.php +++ b/templates/magazzino_inventario/settings.php @@ -1,4 +1,21 @@ . + */ return [ 'orientation' => 'L', diff --git a/templates/ordini/body.php b/templates/ordini/body.php index ca7922111..f8e4cf0a9 100755 --- a/templates/ordini/body.php +++ b/templates/ordini/body.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; @@ -27,7 +44,7 @@ echo " - "; + '; if ($has_image) { echo " '; diff --git a/templates/ordini/header.php b/templates/ordini/header.php index 891dc801a..89292e2cc 100755 --- a/templates/ordini/header.php +++ b/templates/ordini/header.php @@ -1,4 +1,21 @@ . + */ echo ' $default_header$ diff --git a/templates/ordini/init.php b/templates/ordini/init.php index b8b50ada4..526c968da 100755 --- a/templates/ordini/init.php +++ b/templates/ordini/init.php @@ -1,4 +1,21 @@ . + */ include_once __DIR__.'/../../core.php'; diff --git a/templates/partitario_mastrino/partitario.html b/templates/partitario_mastrino/partitario.html index 2da07083b..1b0be845a 100755 --- a/templates/partitario_mastrino/partitario.html +++ b/templates/partitario_mastrino/partitario.html @@ -1,3 +1,21 @@ + +
".tr('#', [], ['upper' => true])."".tr('#', [], ['upper' => true]).'".tr('Immagine', [], ['upper' => true]).'