diff --git a/actions.php b/actions.php index b210094b1..274543a25 100755 --- a/actions.php +++ b/actions.php @@ -505,11 +505,11 @@ if ($structure->permission == 'rw') { } } - //Lista casi in cui creare i campi personalizzati + // Lista casi in cui creare i campi personalizzati $list = ['add', 'add_documento', 'add_preventivo', 'add_ordine_fornitore']; // Inserimento iniziale - if (in_array(post('op'),$list)) { + if (in_array(post('op'), $list)) { // Informazioni di log Filter::set('get', 'id_record', $id_record); diff --git a/controller.php b/controller.php index 66efcbb3a..83521da10 100755 --- a/controller.php +++ b/controller.php @@ -37,13 +37,13 @@ echo '{( "name": "widgets", "id_module": "'.$id_module.'", "position": "top", "p $segmenti = $dbo->FetchArray('SELECT `id` FROM `zz_segments` WHERE `id_module` = '.prepare($id_module)); if ($segmenti) { - $segmenti = Modules::getSegments($id_module); - if (empty($segmenti)) { - echo ' + $segmenti = Modules::getSegments($id_module); + if (empty($segmenti)) { + echo '
- '.tr("Questo gruppo di utenti non ha i permessi per visualizzare nessun segmento di questo modulo").'. + '.tr('Questo gruppo di utenti non ha i permessi per visualizzare nessun segmento di questo modulo').'.
'; - } + } } // Lettura eventuali plugins modulo da inserire come tab @@ -93,11 +93,11 @@ foreach ($plugins as $plugin) { echo '
'; -$id_plugin = $plugin->id; + $id_plugin = $plugin->id; -include base_dir().'/include/manager.php'; + include base_dir().'/include/manager.php'; -echo ' + echo '
'; } @@ -128,7 +128,7 @@ function modificaColonne(button) { '; } -echo''; +echo ''; // Widget in basso echo '{( "name": "widgets", "id_module": "'.$id_module.'", "position": "right", "place": "controller" )}'; diff --git a/editor.php b/editor.php index c96267903..d65e0001f 100755 --- a/editor.php +++ b/editor.php @@ -176,7 +176,7 @@ if (empty($record) || !$has_access) { {( "name": "button", "type": "email", "id_module": "'.$id_module.'", "id_plugin": "'.$id_plugin.'", "id_record": "'.$id_record.'" )}'; if (Module::find((new Module())->getByField('title', 'Account SMS', Models\Locale::getPredefined()->id))) { - echo ' + echo ' {( "name": "button", "type": "sms", "id_module": "'.$id_module.'", "id_plugin": "'.$id_plugin.'", "id_record": "'.$id_record.'" )}'; } diff --git a/include/init/update.php b/include/init/update.php index 617a0d563..579cca050 100755 --- a/include/init/update.php +++ b/include/init/update.php @@ -38,31 +38,31 @@ if (filter('action') == 'do_update') { '; - + if (is_array($result)) { // Adding a message about the completion of the database update if (!empty($update['sql']) && $result[1] == $result[2]) { echo ' '; } - + $rate = $result[1] - $result[0]; } elseif (!empty($update['script'])) { // Adding a message about the completion of the script echo ' '; - + $rate = $scriptValue; } - + // Increasing the total completion percentage if (!empty($rate)) { echo ' @@ -70,7 +70,7 @@ if (filter('action') == 'do_update') { addProgress('.$rate.'); '; } - + echo ' '; - + // Instructions for the first installation if ($_GET['firstuse'] == 'true') { echo '

'.tr('Si consiglia di rimuovere i permessi di scrittura dal file _FILE_', [ - '_FILE_' => 'config.inc.php', - ]).'.

'; + '_FILE_' => 'config.inc.php', + ]).'.

'; } - + echo ' '.tr('Continua').' @@ -247,14 +247,14 @@ if (filter('action') == 'do_update') { current += 1; $("#progress .info").html($("#progress .info").html() + "

'.tr('Aggiornamento _DONE_ di _TODO_ (_VERSION_)', [ - '_DONE_' => '" + current + "', - '_TODO_' => '" + count + "', - '_VERSION_' => '" + version.trim() + "', - ]).'

"); + '_DONE_' => '" + current + "', + '_TODO_' => '" + count + "', + '_VERSION_' => '" + version.trim() + "', + ]).'

"); } } '; -} \ No newline at end of file +} diff --git a/include/manager.php b/include/manager.php index a4e7f21fd..c828d3a41 100755 --- a/include/manager.php +++ b/include/manager.php @@ -106,7 +106,7 @@ if (!empty($type) && $type != 'menu' && $type != 'custom') { '; - + foreach ($total['fields'] as $key => $field) { $attr_td = ''; $name = trim($field); diff --git a/include/top.php b/include/top.php index 9aca5198f..d64ed810e 100755 --- a/include/top.php +++ b/include/top.php @@ -20,7 +20,7 @@ use Models\Module; use Util\FileSystem; -include_once __DIR__ . '/../core.php'; +include_once __DIR__.'/../core.php'; $paths = App::getPaths(); $user = Auth::user(); @@ -35,31 +35,31 @@ echo ' - ' . $pageTitle . ' - ' . tr('OpenSTAManager') . ' + '.$pageTitle.' - '.tr('OpenSTAManager').' - + - '; + '; -if (file_exists(base_dir() . '/manifest.json')) { +if (file_exists(base_dir().'/manifest.json')) { echo ' - '; + '; } // CSS foreach (App::getAssets()['css'] as $style) { echo ' - '; + '; } // Print CSS foreach (App::getAssets()['print'] as $style) { echo ' - '; + '; } if (Auth::check()) { @@ -67,15 +67,15 @@ if (Auth::check()) { '; } else { echo ' '; } @@ -285,7 +285,7 @@ if (Auth::check()) { // JS foreach (App::getAssets()['js'] as $js) { echo ' - '; + '; } // Impostazioni di default per gli alert @@ -295,7 +295,7 @@ echo ' buttonsStyling: false, confirmButtonClass: "btn btn-lg btn-primary", cancelButtonClass: "btn btn-lg", - cancelButtonText: "' . tr('Annulla') . '", + cancelButtonText: "'.tr('Annulla').'", }); '; @@ -308,7 +308,7 @@ if (Auth::check()) { } if (setting('Attiva scorciatoie da tastiera')) { - echo ''; + echo ''; echo ' '; } @@ -644,8 +644,8 @@ if (!empty($messages['error'])) { foreach ($messages['error'] as $value) { echo '
-

' . tr('Errore') . '

- ' . $value . ' +

'.tr('Errore').'

+ '.$value.'
'; } } @@ -655,8 +655,8 @@ if (!empty($messages['warning'])) { foreach ($messages['warning'] as $value) { echo '
-

' . tr('Attenzione') . '

- ' . $value . ' +

'.tr('Attenzione').'

+ '.$value.'
'; } } @@ -674,12 +674,12 @@ if ($free_space < ($space_limit * (1024 ** 3))) { echo '

- ' . tr('Spazio in esaurimento') . ' + '.tr('Spazio in esaurimento').'

-

' . tr('Lo spazio a disposizione del gestionale è in esaurimento: sono al momento disponibili _TOT_', [ +

'.tr('Lo spazio a disposizione del gestionale è in esaurimento: sono al momento disponibili _TOT_', [ '_TOT_' => FileSystem::formatBytes($free_space), - ]) . '.

-

' . tr('Questo può risultare un serio problema per la continuità di funzionamento del software, poiché le operazioni più espansive che richiedono spazio di archiviazione possono causare malfunzionamenti imprevisti') . '. ' . tr('Ad esempio, le attività di backup, caricamento di allegati o anche l\'utilizzo normale del gestionale potrebbero rendere i dati inaffidabili, provocando pertanto una perdita delle informazioni salvate') . '.

-

' . tr('Contatta gli amministratori di sistema per risolvere al più presto il problema') . '.

+ ]).'.

+

'.tr('Questo può risultare un serio problema per la continuità di funzionamento del software, poiché le operazioni più espansive che richiedono spazio di archiviazione possono causare malfunzionamenti imprevisti').'. '.tr('Ad esempio, le attività di backup, caricamento di allegati o anche l\'utilizzo normale del gestionale potrebbero rendere i dati inaffidabili, provocando pertanto una perdita delle informazioni salvate').'.

+

'.tr('Contatta gli amministratori di sistema per risolvere al più presto il problema').'.

'; } diff --git a/index.php b/index.php index ca180ce62..1146b1791 100755 --- a/index.php +++ b/index.php @@ -116,14 +116,14 @@ if (Update::isBeta()) { // Controllo se è una beta e in caso mostro un warning if (Auth::isBrute()) { - echo' + echo '

'.tr('Attenzione').'

'.tr('Sono stati effettuati troppi tentativi di accesso consecutivi!').'

-

'. tr('Tempo rimanente (in secondi)').': '.(Auth::getBruteTimeout() + 1).'

+

'.tr('Tempo rimanente (in secondi)').': '.(Auth::getBruteTimeout() + 1).'

diff --git a/modules/categorie_impianti/row-list.php b/modules/categorie_impianti/row-list.php index db5e8986c..ead99cb74 100644 --- a/modules/categorie_impianti/row-list.php +++ b/modules/categorie_impianti/row-list.php @@ -36,4 +36,4 @@ foreach ($subcategorie as $sub) {
'; - } +} diff --git a/modules/contratti/plugins/contratti.consuntivo.php b/modules/contratti/plugins/contratti.consuntivo.php index af0d9a8d7..76151e9b4 100755 --- a/modules/contratti/plugins/contratti.consuntivo.php +++ b/modules/contratti/plugins/contratti.consuntivo.php @@ -163,7 +163,7 @@ if (!empty($interventi)) { '; // Raggruppamento per articolo con lo stesso prezzo - $ricavo = ($articolo->imponibile - $articolo->sconto) / ($articolo->qta>0 ? $articolo->qta : 1); + $ricavo = ($articolo->imponibile - $articolo->sconto) / ($articolo->qta > 0 ? $articolo->qta : 1); $costo = $articolo->spesa / ($articolo->qta > 0 ? $articolo->qta : 1); $descrizione = $articolo->articolo->codice.' - '.$articolo->articolo->getTranslation('title'); @@ -344,7 +344,7 @@ foreach ($tipologie as $key => $tipologia) { $margine = $tipologia['ricavo'] - $tipologia['costo']; if ($tipologia['ricavo']) { $margine_prc = (int) (1 - ($tipologia['costo'] / ($tipologia['ricavo'] > 0 ? $tipologia['ricavo'] : 1))) * 100; - $ricarico_prc = ($tipologia['ricavo'] && $tipologia['costo']) ? (int) ((($tipologia['ricavo'] / ($tipologia['costo']> 0 ? $tipologia['costo'] : 1)) - 1) * 100) : 100; + $ricarico_prc = ($tipologia['ricavo'] && $tipologia['costo']) ? (int) ((($tipologia['ricavo'] / ($tipologia['costo'] > 0 ? $tipologia['costo'] : 1)) - 1) * 100) : 100; } echo ' @@ -376,7 +376,7 @@ ksort($tecnici); foreach ($tecnici as $key => $tecnico) { $margine = $tecnico['ricavo'] - $tecnico['costo']; if ($tecnico['ricavo']) { - $margine_prc = (int) (1 - ($tecnico['costo'] / ($tecnico['ricavo']>0 ? $tecnico['ricavo'] : 1))) * 100; + $margine_prc = (int) (1 - ($tecnico['costo'] / ($tecnico['ricavo'] > 0 ? $tecnico['ricavo'] : 1))) * 100; $ricarico_prc = ($tecnico['ricavo'] && $tecnico['costo']) ? (int) ((($tecnico['ricavo'] / ($tecnico['costo'] > 0 ? $tecnico['costo'] : 1)) - 1) * 100) : 100; } echo ' @@ -442,7 +442,7 @@ foreach ($materiali_art as $key => $materiali_array1) { foreach ($materiali_array1 as $materiali_array2) { foreach ($materiali_array2 as $materiale) { $margine = $materiale['ricavo'] - $materiale['costo']; - $margine_prc = (int) (1 - ($materiale['costo'] / ($materiale['ricavo']>0 ? $materiale['ricavo'] : 1))) * 100; + $margine_prc = (int) (1 - ($materiale['costo'] / ($materiale['ricavo'] > 0 ? $materiale['ricavo'] : 1))) * 100; $ricarico_prc = ($materiale['ricavo'] && $materiale['costo']) ? (int) ((($materiale['ricavo'] / ($materiale['costo'] > 0 ? $materiale['costo'] : 1)) - 1) * 100) : 100; echo ' @@ -461,7 +461,7 @@ ksort($materiali_righe); foreach ($materiali_righe as $key => $materiale) { $margine = $materiale['ricavo'] - $materiale['costo']; $margine_prc = (int) (1 - ($materiale['costo'] / ($materiale['ricavo'] > 0 ? $materiale['ricavo'] : 1))) * 100; - $ricarico_prc = ($materiale['ricavo'] && $materiale['costo']) ? (int) ((($materiale['ricavo'] / ($materiale['costo']>0 ? $materiale['costo'] : 1)) - 1) * 100) : 100; + $ricarico_prc = ($materiale['ricavo'] && $materiale['costo']) ? (int) ((($materiale['ricavo'] / ($materiale['costo'] > 0 ? $materiale['costo'] : 1)) - 1) * 100) : 100; echo ' '.$key.' diff --git a/modules/dashboard/edit.php b/modules/dashboard/edit.php index 298126a53..fd3f4153b 100755 --- a/modules/dashboard/edit.php +++ b/modules/dashboard/edit.php @@ -109,7 +109,7 @@ foreach ($stati_intervento as $stato) {
  • '; } @@ -182,7 +182,7 @@ foreach ($tecnici_disponibili as $tecnico) {
  • '; } diff --git a/modules/impostazioni/edit.php b/modules/impostazioni/edit.php index ff1308e76..007b2474b 100755 --- a/modules/impostazioni/edit.php +++ b/modules/impostazioni/edit.php @@ -27,7 +27,7 @@ $gruppi = Setting::selectRaw('sezione AS nome, COUNT(id) AS numero') ->orderBy('sezione') ->get(); - echo' +echo '
    diff --git a/modules/interventi/buttons.php b/modules/interventi/buttons.php index 995648c97..a54940eb8 100755 --- a/modules/interventi/buttons.php +++ b/modules/interventi/buttons.php @@ -75,4 +75,4 @@ echo '
    '; -*/ \ No newline at end of file +*/ diff --git a/modules/interventi/edit.php b/modules/interventi/edit.php index 009ae316b..3b08c2b1c 100755 --- a/modules/interventi/edit.php +++ b/modules/interventi/edit.php @@ -362,7 +362,7 @@ if (!empty($record['idcontratto'])) { ?>
    -
    +

    - {[ "type": "select", "label": "'.tr('Calcolo a fine colonna').'", "name": "sum-avg['.$key.']", "values": "list=\"0\":\"'.tr('Nessuno').'\",\"sum\":\"'.tr('Somma').'\",\"avg\":\"'.tr('Media').'\"", "value": "'.( $field->summable ? 'sum' : ($field->avg ? 'avg' : '' )).'", "help": "'.tr('Scegli quale tipo di totale valori vuoi calcolare a fine tabella').'" ]} + {[ "type": "select", "label": "'.tr('Calcolo a fine colonna').'", "name": "sum-avg['.$key.']", "values": "list=\"0\":\"'.tr('Nessuno').'\",\"sum\":\"'.tr('Somma').'\",\"avg\":\"'.tr('Media').'\"", "value": "'.($field->summable ? 'sum' : ($field->avg ? 'avg' : '')).'", "help": "'.tr('Scegli quale tipo di totale valori vuoi calcolare a fine tabella').'" ]}
    diff --git a/plugins/presentazioni_bancarie/src/Gestore.php b/plugins/presentazioni_bancarie/src/Gestore.php index f5c4fdc3c..17515e11e 100644 --- a/plugins/presentazioni_bancarie/src/Gestore.php +++ b/plugins/presentazioni_bancarie/src/Gestore.php @@ -521,7 +521,7 @@ class Gestore ->setNumberOfTransactions($this->numero_transazioni_debito_diretto); $this->debito_diretto->setGroupHeader($groupHeader); - if($groupHeader->getNumberOfTransactions() > 0) { + if ($groupHeader->getNumberOfTransactions() > 0) { $xml = $this->debito_diretto->xml(); // Generazione filename diff --git a/shortcuts.php b/shortcuts.php index 3dfc62b53..9adaceb4f 100644 --- a/shortcuts.php +++ b/shortcuts.php @@ -23,7 +23,6 @@ $pageTitle = tr('Scorciatoie'); include_once App::filepath('include|custom|', 'top.php'); - echo '
    @@ -53,5 +52,5 @@ if (setting('Attiva scorciatoie da tastiera')) { '_LINK_IMPOSTAZIONI_' => Modules::link('Impostazioni', null, tr('Strumenti » Impostazioni » Generali » Abilita scorciatoie da tastiera')), ]).'.

    '; } -echo' +echo '
    '; diff --git a/src/HTMLBuilder/Handler/DefaultHandler.php b/src/HTMLBuilder/Handler/DefaultHandler.php index ebb096317..c2cc7865e 100755 --- a/src/HTMLBuilder/Handler/DefaultHandler.php +++ b/src/HTMLBuilder/Handler/DefaultHandler.php @@ -101,7 +101,6 @@ class DefaultHandler implements HandlerInterface */ protected function password(&$values, &$extras) { - $result = '