Compare commits

...

3 Commits

Author SHA1 Message Date
valentina 37dafc4eaa Fix minore 2024-07-17 09:57:30 +02:00
valentina 6d1ac5e1f8 Fix minore 2024-07-17 09:09:50 +02:00
valentina 3225ce744a Formattazione codice 2024-07-17 08:58:19 +02:00
9 changed files with 23 additions and 25 deletions

View File

@ -138,7 +138,6 @@ switch (post('op')) {
$operations = [];
$operations['delete-bulk'] = [
'text' => '<span><i class="fa fa-trash"></i> '.tr('Elimina selezionati').'</span>',
'data' => [
@ -148,7 +147,6 @@ $operations['delete-bulk'] = [
],
];
$operations['export-csv'] = [
'text' => '<span><i class="fa fa-download"></i> '.tr('Esporta selezionati').'</span>',
'data' => [

View File

@ -47,7 +47,7 @@ $utilizza_codice_barcode = setting('Utilizza codice articolo come barcode');
</div>
<div class="col-md-6">
{[ "type": "text", "label": "<?php echo tr('Barcode'); ?>", "name": "barcode", "value": "<?php echo ($utilizza_codice_barcode ? '$codice$' : '$barcode$'); ?>", "disabled": "<?php echo $utilizza_codice_barcode; ?>" ]}
{[ "type": "text", "label": "<?php echo tr('Barcode'); ?>", "name": "barcode", "value": "<?php echo $utilizza_codice_barcode ? '$codice$' : '$barcode$'; ?>", "disabled": "<?php echo $utilizza_codice_barcode; ?>" ]}
</div>
</div>

View File

@ -61,13 +61,13 @@ if (!function_exists('renderChecklist')) {
$result .= '
<td style="width:500px;border-top:0px;">
'.input([
'type' => 'textarea',
'name' => '',
'id' => 'note_'.$check->id,
'class' => 'unblockable',
'placeholder' => tr('Note').'...',
'value' => $check->note,
]).'
'type' => 'textarea',
'name' => '',
'id' => 'note_'.$check->id,
'class' => 'unblockable',
'placeholder' => tr('Note').'...',
'value' => $check->note,
]).'
</td>';
$result .= '

View File

@ -128,11 +128,11 @@ if (!empty($sessioni)) {
<td>
'.$sessione['descrizione_tipo'].' '.(($sessione['tipo_deleted_at']) ? '<small class="text-danger"><em>('.tr('Eliminato').')</em></small>' : '');
if ($sessione['note']) {
echo '
<br><small class="text-muted">'.$sessione['note'].'</small>';
}
if ($sessione['note']) {
echo '
<br><small class="text-muted">'.$sessione['note'].'</small>';
}
echo '
</td>';
// Orario di inizio

View File

@ -31,8 +31,8 @@ echo '
<button class="btn btn-warning btn-xs" onclick="add_calendar()">
<i class="fa fa-plus"></i> '.tr('Aggiungi periodo').'
</button>
<button type="button" class="btn btn-tool" data-widget="collapse">
<i class="fa fa-minus"></i>
<button type="button" class="btn btn-tool" data-card-widget="collapse">
<i class="fa fa-plus"></i>
</button>
</div>
</div>

View File

@ -70,7 +70,7 @@ class Impianti extends AppResource
// Da applicazione, i Clienti sono sincronizzati prima degli Interventi: last_sync_at permette di identificare le stesse modifiche
$interventi = $risorsa_interventi->getModifiedRecords(null);
$id_interventi = array_keys($interventi);
$rs_impianti = database()->fetchArray('SELECT idimpianto FROM my_impianti_interventi WHERE idintervento IN ('.implode(',', $id_interventi).')');
$id_impianti = array_column($rs_impianti, 'idimpianto');

View File

@ -102,7 +102,7 @@ class DefaultHandler implements HandlerInterface
protected function password(&$values, &$extras)
{
$values['icon-after'] = ' <i onclick="togglePassword_'.$values['id'].'()" class="clickable fa" id="'.$values['id'].'_toggle"></i> ';
$result = '
<script>
const characters ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!%-()*[]";
@ -142,10 +142,10 @@ class DefaultHandler implements HandlerInterface
togglePassword_'.$values['id'].'();
});
</script>';
if (!empty($values['strength'])) {
$values['icon-after'] .= '&nbsp;&nbsp;|&nbsp;&nbsp;<i onclick="generatePassword_'.$values['id'].'()" class="clickable fa fa-cog" id="'.$values['id'].'_generate"></i>';
$result .= '
<div id="'.$values['id'].'_viewport_progress"></div>
@ -196,10 +196,10 @@ class DefaultHandler implements HandlerInterface
});
</script>';
}
// Delega al metodo "text", per la generazione del codice HTML
$result .= $this->text($values, $extras);
return $result;
}

View File

@ -93,7 +93,7 @@ foreach ($liv2_patrimoniale as $liv2_p) {
echo '
<tr>
<td colspan="2"><h6><b>Totale Attività</b></h6></td>
<td class="text-right" style="font-size:8pt;"><b>'.($totale_attivita ? numberFormat(abs($totale_attivita), 2): '').'</b></td>
<td class="text-right" style="font-size:8pt;"><b>'.($totale_attivita ? numberFormat(abs($totale_attivita), 2) : '').'</b></td>
</tr>';
if ($utile_perdita > 0) {
echo '
@ -182,7 +182,7 @@ foreach ($liv2_patrimoniale as $liv2_p) {
echo '
<tr>
<td colspan="2"><h6><b>Totale Passività</b></h6></td>
<td class="text-right" style="font-size:8pt;"><b>'.($totale_passivita ? numberFormat(abs($totale_passivita), 2):'').'</b></td>
<td class="text-right" style="font-size:8pt;"><b>'.($totale_passivita ? numberFormat(abs($totale_passivita), 2) : '').'</b></td>
</tr>';
if ($utile_perdita < 0) {
echo '

View File

@ -119,7 +119,7 @@ INSERT INTO `zz_settings_lang` (`id_lang`, `id_record`, `title`, `help`) VALUES
ALTER TABLE `in_interventi_tecnici` ADD `note` TEXT NOT NULL AFTER `tipo_scontokm`;
-- Fix campo id visibile in vista Fasce orarie
UPDATE `zz_views` SET `visible` = '0' WHERE `zz_views`.`name` = 'id' AND `zz_views`.`id_module` = (SELECT `id` FROM `zz_modules` WHERE `name` = 'Fasce orarie')
UPDATE `zz_views` SET `visible` = '0' WHERE `zz_views`.`name` = 'id' AND `zz_views`.`id_module` = (SELECT `id` FROM `zz_modules` WHERE `name` = 'Fasce orarie');
-- Fix widget Anagrafiche in modulo Anagrafiche
UPDATE `zz_widgets` SET `more_link` = "if($(\'#th_Tipo input\').val()!= \'Cliente\'){ $(\'#th_Tipo input\').val(\'Cliente\').trigger(\'keyup\');} else { $(\'#th_Tipo input\').val(\'\').trigger(\'keyup\');}" WHERE `zz_widgets`.`name` = 'Numero di clienti';