. */ include_once __DIR__.'/../../core.php'; use Models\Module; if (!$record['predefined']) { $attr = ''; } else { $attr = 'readonly'; echo '
'.tr('Alcune impostazioni non possono essere modificate per questo template.').'
'; } ?>

{[ "type": "text", "label": "", "name": "name", "value": "$title$", "required": 1, "extra": "" ]}
{[ "type": "span", "label": "", "name": "module", "values": "query=SELECT `zz_modules`.`id`, `title` AS descrizione FROM `zz_modules` LEFT JOIN `zz_modules_lang` ON (`zz_modules`.`id` = `zz_modules_lang`.`id_record` AND `zz_modules_lang`.`id_lang` = id); ?>) WHERE `enabled` = 1", "value": "getTranslation('title'); ?>" ]}
{[ "type": "select", "label": "", "name": "smtp", "value": "$id_account$", "ajax-source": "smtp" ]}
{[ "type": "checkbox", "label": "", "name": "read_notify", "value": "$read_notify$", "placeholder": "" ]}
{[ "type": "text", "label": "", "name": "subject", "value": "$subject$" ]}
{[ "type": "text", "label": "", "name": "cc", "value": "$cc$", "help": "" ]}
{[ "type": "text", "label": "", "name": "bcc", "value": "$bcc$", "help": "" ]}
{[ "type": "text", "label": "", "name": "icon", "value": "" ,"help":"" ]}
{[ "type": "select", "label": "", "name": "tipo_reply_to", "values": "list=\"0\":\"Mittente (predefinito)\", \"email_user\":\"Email dell'utente che esegue l'invio\", \"email_fissa\":\"Destinatario fisso\"", "value": "$tipo_reply_to$", "help": "" ]}
{[ "type": "email", "label": "", "name": "reply_to", "value": "$reply_to$", "help": "" ]}
fetchArray('SELECT id_print FROM em_print_template WHERE id_template = '.prepare($id_record)); $selected_prints = array_column($selected_prints, 'id_print'); $selected_mansioni = $dbo->fetchArray('SELECT idmansione FROM em_mansioni_template WHERE id_template = '.prepare($id_record)); $selected_mansioni = array_column($selected_mansioni, 'idmansione'); echo '
{[ "type": "select", "multiple": "1", "label": "'.tr('Stampe').'", "name": "prints[]", "value": "'.implode(',', $selected_prints).'", "values": "query=SELECT `zz_prints`.`id`, `zz_prints_lang`.`title` AS text FROM `zz_prints` LEFT JOIN `zz_prints_lang` ON (`zz_prints`.`id` = `zz_prints_lang`.`id_record` AND `zz_prints_lang`.`id_lang` = '.prepare(Models\Locale::getDefault()->id).') WHERE `id_module` = '.prepare($record['id_module']).' AND `enabled`=1 AND `is_record`=1" ]}
{[ "type": "select", "multiple": "1", "label": "'.tr('Mansioni').'", "name": "idmansioni[]", "value": "'.implode(',', $selected_mansioni).'", "ajax-source": "mansioni" ]}
'; ?>
'ckeditor', 'use_full_ckeditor' => 1, 'label' => tr('Contenuto'), 'name' => 'body', 'value' => $record['body'], ]); ?>
{[ "type": "textarea", "label": "", "name": "note_aggiuntive", "value": "$note_aggiuntive$", "class": "unblockable" ]}
getPlaceholders($id_record); echo '

'.tr('Variabili').'

'; if (!empty($variables)) { echo '

'.tr("Puoi utilizzare le seguenti variabili nell'oggetto e nel corpo della mail").':

    '; foreach ($variables as $variable => $value) { echo '
  • '.$variable.'
  • '; } echo '
'; } else { echo '

'.tr('Non sono state definite variabili da utilizzare nel template').'.

'; } echo '

'; ?>
'.tr('Questo template non può essere rimosso dal sistema perchè collegato alle seguenti newsletter:').' '; } elseif (!$record['predefined']) { ?>