diff --git a/mail.php b/mail.php index 610cf213a..5e5a34d59 100755 --- a/mail.php +++ b/mail.php @@ -171,9 +171,18 @@ echo ' echo '
-
- {[ "type": "ckeditor", "use_full_ckeditor": 1, "label": "'.tr('Contenuto').'", "name": "body", "id": "body_'.rand(0, 999).'", "value": '.json_encode($body).' ]} -
+
'; + echo input([ + 'type' => 'ckeditor', + 'use_full_ckeditor' => 1, + 'label' => tr('Contenuto'), + 'name' => 'body', + 'id' => 'body_'.rand(0, 999), + 'value' => json_encode($body), + ]); + + echo' +
'; echo ' diff --git a/modules/emails/edit.php b/modules/emails/edit.php index 0492b13d8..fd25b1b6b 100755 --- a/modules/emails/edit.php +++ b/modules/emails/edit.php @@ -110,7 +110,15 @@ echo '
- {[ "type": "ckeditor", "use_full_ckeditor": 1, "label": "", "name": "body", "value": "$body$" ]} + 'ckeditor', + 'use_full_ckeditor' => 1, + 'label' => tr('Contenuto'), + 'name' => 'body', + 'value' => $record['body'], + ]); + ?>
diff --git a/modules/gestione_documentale/edit.php b/modules/gestione_documentale/edit.php index b98efd5bf..12dbaa8bd 100755 --- a/modules/gestione_documentale/edit.php +++ b/modules/gestione_documentale/edit.php @@ -50,7 +50,15 @@ include_once __DIR__.'/../../core.php';
- {[ "type": "ckeditor", "use_full_ckeditor": 1, "label": "", "name": "descrizione", "value": "$descrizione$" ]} + 'ckeditor', + 'use_full_ckeditor' => 1, + 'label' => tr('Descrizione'), + 'name' => 'descrizione', + 'value' => $record['descrizione'], + ]); + ?>
diff --git a/modules/interventi/add.php b/modules/interventi/add.php index b86358417..ed8f0593d 100755 --- a/modules/interventi/add.php +++ b/modules/interventi/add.php @@ -213,9 +213,18 @@ echo '
-
- {[ "type": "ckeditor", "label": "'.tr('Richiesta').'", "name": "richiesta", "id": "richiesta_add", "required": 1, "value": "'.htmlentities($richiesta).'", "extra": "style=\'max-height:80px;\'" ]} -
+
'; + echo input([ + 'type' => 'ckeditor', + 'label' => tr('Richiesta'), + 'name' => 'richiesta', + 'id' => 'richiesta_add', + 'required' => 1, + 'value' => htmlentities($record['richiesta']), + 'extra' => 'style=\'max-height:80px;\'', + ]); + echo ' +
'; diff --git a/modules/newsletter/edit.php b/modules/newsletter/edit.php index 4c1e65b56..7cc64a80b 100755 --- a/modules/newsletter/edit.php +++ b/modules/newsletter/edit.php @@ -84,9 +84,16 @@ echo '
-
- {[ "type": "ckeditor", "use_full_ckeditor": 1, "label": "'.tr('Contenuto').'", "name": "content", "value": "$content$" ]} -
+
'; + echo input([ + 'type' => 'ckeditor', + 'use_full_ckeditor' => 1, + 'label' => tr('Contenuto'), + 'name' => 'content', + 'value' => $record['content'], + ]); + echo' +
diff --git a/modules/ordini/edit.php b/modules/ordini/edit.php index b1742ff96..0da8a1047 100755 --- a/modules/ordini/edit.php +++ b/modules/ordini/edit.php @@ -144,8 +144,16 @@ echo '
- {[ "type": "ckeditor", "use_full_ckeditor": 0, "label": "", "name": "condizioni_fornitura", "class": "autosize", "value": "$condizioni_fornitura$" ]} -
+ 'ckeditor', + 'use_full_ckeditor' => 0, + 'label' => tr('Condizioni generali di fornitura'), + 'name' => 'condizioni_fornitura', + 'value' => $record['condizioni_fornitura'], + ]); + ?> +
diff --git a/plugins/componenti/edit.php b/plugins/componenti/edit.php index 2933355a0..2a6e6db82 100644 --- a/plugins/componenti/edit.php +++ b/plugins/componenti/edit.php @@ -166,8 +166,16 @@ foreach ($elenchi as $elenco) {
-
- {[ "type": "ckeditor", "label": "'.tr('Note').'", "name": "note", "id": "note_'.$componente->id.'", "value": "'.$componente['note'].'" ]} +
'; + + echo input([ + 'type' => 'ckeditor', + 'label' => tr('Note'), + 'name' => 'note', + 'id' => 'note_'.$componente->id, + 'value' => $componente['note'], + ]); + echo'
diff --git a/plugins/notes.php b/plugins/notes.php index 6d2d1f128..57c01193b 100755 --- a/plugins/notes.php +++ b/plugins/notes.php @@ -94,8 +94,15 @@ if ($structure->permission == 'rw') {
-
- {[ "type": "ckeditor", "label": "'.tr('Nuova nota').'", "name": "contenuto", "required": 1, "class": "unblockable" ]} +
'; + echo input([ + 'type' => 'ckeditor', + 'label' => tr('Nuova nota'), + 'name' => 'contenuto', + 'required' => 1, + 'class' => 'unblockable', + ]); + echo'
{[ "type": "date", "label": "'.tr('Data di notifica').'", "name": "data_notifica", "class": "unblockable", "help": "'.tr('Eventuale data di notifica di un promemoria di questa nota.').'" ]}