From 852236eb017bb294b9a722d4c4a7e70880668641 Mon Sep 17 00:00:00 2001 From: loviuz Date: Sat, 29 Jun 2024 01:42:16 +0200 Subject: [PATCH] Unificazione pulsanti su unica riga --- editor.php | 52 +++++++++++++++------------------- modules/interventi/buttons.php | 9 ++++-- 2 files changed, 29 insertions(+), 32 deletions(-) diff --git a/editor.php b/editor.php index 4bffa7dbf..78abe7054 100755 --- a/editor.php +++ b/editor.php @@ -172,7 +172,16 @@ if (empty($record) || !$has_access) { '.tr("Torna all'elenco").' -
+
'; + + // Pulsanti personalizzati + $buttons = $structure->filepath('buttons.php'); + + if (!empty($buttons)) { + include $buttons; + } + + echo ' {( "name": "button", "type": "print", "id_module": "'.$id_module.'", "id_plugin": "'.$id_plugin.'", "id_record": "'.$id_record.'" )} {( "name": "button", "type": "email", "id_module": "'.$id_module.'", "id_plugin": "'.$id_plugin.'", "id_record": "'.$id_record.'" )}'; @@ -225,36 +234,21 @@ if (empty($record) || !$has_access) {

'; - // Pulsanti personalizzati - $buttons = $structure->filepath('buttons.php'); - if (!empty($buttons)) { + // Eventuale header personalizzato + $module_header = $structure->filepath('header.php'); + $module_header_html = ''; + + if (!empty($module_header)) { ob_start(); - include $buttons; - $buttons = ob_get_clean(); + include $module_header; + $module_header_html = ob_get_clean(); + } - echo ' -
- '.$buttons.' -
- -
-
'; - // Eventuale header personalizzato - $module_header = $structure->filepath('header.php'); - $module_header_html = ''; - - if (!empty($module_header)) { - ob_start(); - include $module_header; - $module_header_html = ob_get_clean(); - } - - // Eventuale header personalizzato - if ($module_header_html) { - echo '
'; - echo $module_header_html; - echo '
'; - } + // Eventuale header personalizzato + if ($module_header_html) { + echo '
'; + echo $module_header_html; + echo '
'; } // Contenuti del modulo diff --git a/modules/interventi/buttons.php b/modules/interventi/buttons.php index 7bfd71fd1..5e23984af 100755 --- a/modules/interventi/buttons.php +++ b/modules/interventi/buttons.php @@ -39,15 +39,18 @@ echo ' +'; - + +// TODO: da standardizzare in struttura per tutti i moduli di tipo table +/* '.tr('Precedente').' '.tr('Successivo').' - +*/ +echo '