mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-17 03:51:06 +01:00
Compare commits
4 Commits
dead0b1db6
...
8be11862d9
Author | SHA1 | Date | |
---|---|---|---|
|
8be11862d9 | ||
|
3337c78b4e | ||
|
37cb653565 | ||
|
03b1cd6bd4 |
@ -170,9 +170,13 @@ if (empty($record) || !$has_access) {
|
||||
<div id="pulsanti">
|
||||
<a class="btn btn-default" id="back" href="'.base_path().'/controller.php?id_module='.$id_module.'">
|
||||
<i class="fa fa-chevron-left"></i> '.tr("Torna all'elenco").'
|
||||
</a>
|
||||
</a>';
|
||||
|
||||
<div class="float-right d-none d-sm-inline">';
|
||||
if (isMobile()) {
|
||||
echo '<div>';
|
||||
} else {
|
||||
echo '<div class="float-right d-none d-sm-inline">';
|
||||
}
|
||||
|
||||
// Pulsanti personalizzati
|
||||
$buttons = $structure->filepath('buttons.php');
|
||||
|
@ -54,7 +54,7 @@ foreach ($modules as $name => $values) {
|
||||
|
||||
$status = isset($available_modules) ? in_array($name, $available_modules) : $_SERVER[$values['server']] == 'On';
|
||||
|
||||
if ($name == 'mod_mime' && $php_interface != 'apache') {
|
||||
if ($name == 'mod_mime' && $php_interface != 'apache' && $dbo->isConnected() ) {
|
||||
$headers = get_headers((!empty($config['redirectHTTPS']) && !isHTTPS(true)) ? 'https://' : 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], true);
|
||||
if (isset($headers['Content-Type'])) {
|
||||
$status = 1;
|
||||
|
@ -98,13 +98,14 @@ switch ($resource) {
|
||||
break;
|
||||
|
||||
case 'liste_newsletter':
|
||||
$query = "SELECT `em_lists`.`id`, CONCAT(`em_lists_lang`.`title`, ' (', COUNT(*), ' `destinatari`)') AS descrizione FROM `em_lists` LEFT JOIN `em_lists_lang` ON (`em_lists_lang`.`id_record` = `em_lists`.`id` AND `em_lists_lang`.`id_lang` = ".prepare(Models\Locale::getDefault()->id).') INNER JOIN `em_list_receiver` ON `em_lists`.`id` = `em_list_receiver`.`id_list` WHERE 1=1 |where| ORDER BY `title` ASC';
|
||||
$query = "SELECT `em_lists`.`id`, CONCAT(`em_lists_lang`.`title`, ' (', COUNT(*), ' destinatari)') AS descrizione FROM `em_lists` LEFT JOIN `em_lists_lang` ON (`em_lists_lang`.`id_record` = `em_lists`.`id` AND `em_lists_lang`.`id_lang` = ".prepare(Models\Locale::getDefault()->id).') INNER JOIN `em_list_receiver` ON `em_lists`.`id` = `em_list_receiver`.`id_list` |where| GROUP BY `em_lists`.`id` ORDER BY `title` ASC';
|
||||
|
||||
foreach ($elements as $element) {
|
||||
$filter[] = '`id`='.prepare($element);
|
||||
}
|
||||
|
||||
if (empty($filter)) {
|
||||
$where[] = '1=1';
|
||||
$where[] = '`deleted_at` IS NULL';
|
||||
}
|
||||
|
||||
|
@ -67,12 +67,12 @@ class Ricevuta
|
||||
} else {
|
||||
$this->file = $file;
|
||||
$this->xml = XML::readFile($this->file);
|
||||
|
||||
|
||||
$filename = explode('.', (string) $name)[0];
|
||||
$pieces = explode('_', $filename);
|
||||
|
||||
|
||||
$progressivo_invio = $pieces[1];
|
||||
|
||||
|
||||
$this->fattura = Fattura::where([
|
||||
'progressivo_invio' => $progressivo_invio,
|
||||
])->first();
|
||||
|
@ -28,14 +28,14 @@ use Monolog\Handler\AbstractProcessingHandler;
|
||||
*/
|
||||
class MessageHandler extends AbstractProcessingHandler
|
||||
{
|
||||
protected function write(array $record): void
|
||||
protected function write(array $record): void
|
||||
{
|
||||
// Controlla se la richiesta è AJAX
|
||||
// Controlla se la richiesta è AJAX
|
||||
if (\Whoops\Util\Misc::isAjaxRequest()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Costruisci il messaggio di errore
|
||||
// Costruisci il messaggio di errore
|
||||
$message = tr('Si è verificato un errore').' <i>[uid: '.$record['extra']['uid'].']</i>.';
|
||||
|
||||
// Aggiungi informazioni utente se autenticato
|
||||
@ -55,7 +55,7 @@ class MessageHandler extends AbstractProcessingHandler
|
||||
try {
|
||||
flash()->error($message);
|
||||
} catch (\Exception) {
|
||||
// Gestisci l'eccezione se necessario
|
||||
// Gestisci l'eccezione se necessario
|
||||
}
|
||||
|
||||
// Messaggio visivo immediato
|
||||
|
@ -94,7 +94,7 @@ foreach ($righe as $riga) {
|
||||
$text = $text.'<b>Ordine n. '.$riga_ordine['numero_cliente'].' del '.Translator::dateToLocale($riga_ordine['data_cliente']).'</b><br>';
|
||||
}
|
||||
$r['descrizione'] = str_replace('Rif. '.strtolower((string) $key), '', $r['descrizione']);
|
||||
|
||||
|
||||
if (preg_match("/Rif\.(.*)/s", $r['descrizione'], $rif2)) {
|
||||
$r['descrizione'] = str_replace('Rif.'.strtolower($rif2[1]), '', $r['descrizione']);
|
||||
$text .= '<b>'.$rif2[0].'</b>';
|
||||
|
@ -105,7 +105,7 @@ foreach ($righe as $riga) {
|
||||
}
|
||||
}
|
||||
$r['descrizione'] = str_replace('Rif. '.strtolower((string) $key), '', $r['descrizione']);
|
||||
|
||||
|
||||
if (preg_match("/Rif\.(.*)/s", $r['descrizione'], $rif2)) {
|
||||
$r['descrizione'] = str_replace('Rif.'.strtolower($rif2[1] ?: ''), '', $r['descrizione']);
|
||||
$text .= '<b>'.$rif2[0].'</b>';
|
||||
|
@ -22,8 +22,8 @@ include_once __DIR__.'/../../core.php';
|
||||
echo '
|
||||
<tr>
|
||||
<th colspan="4" class="text-right">TOTALE GENERALE</th>
|
||||
<th class="text-right">'.moneyFormat(abs($totale_dare?:0), 2).'</th>
|
||||
<th class="text-right">'.moneyFormat(abs($totale_avere?:0), 2).'</th>
|
||||
<th class="text-right">'.moneyFormat(abs($totale_dare ?: 0), 2).'</th>
|
||||
<th class="text-right">'.moneyFormat(abs($totale_avere ?: 0), 2).'</th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>';
|
||||
|
@ -123,14 +123,14 @@ foreach ($righe as $riga) {
|
||||
$text = $text.'<b>Ordine n. '.$riga_ordine['numero_cliente'].' del '.Translator::dateToLocale($riga_ordine['data_cliente']).'</b><br>';
|
||||
}
|
||||
$r['descrizione'] = str_replace('Rif. '.strtolower((string) $key), '', $r['descrizione']);
|
||||
|
||||
|
||||
if (preg_match("/Rif\.(.*)/s", $r['descrizione'], $rif2)) {
|
||||
$r['descrizione'] = str_replace('Rif.'.strtolower($rif2[1] ?: ''), '', $r['descrizione']);
|
||||
$text .= '<b>'.$rif2[0].'</b>';
|
||||
}
|
||||
|
||||
$text .= '<b>'.$key.'</b></td>';
|
||||
|
||||
|
||||
if ($options['pricing']) {
|
||||
$text .= '
|
||||
<td></td>
|
||||
|
Loading…
x
Reference in New Issue
Block a user