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

{[ "type": "text", "label": "", "name": "name", "value": "$name$", "required": 1, "extra": "" ]}
{[ "type": "span", "label": "", "name": "module", "values": "query=SELECT id, title AS descrizione FROM zz_modules WHERE enabled = 1", "value": "" ]}
{[ "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": "icon", "value": "" ,"help":"" ]}
{[ "type": "text", "label": "", "name": "cc", "value": "$cc$", "help": "" ]}
{[ "type": "text", "label": "", "name": "bcc", "value": "$bcc$", "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 id, title AS text FROM zz_prints WHERE id_module = '.prepare($record['id_module']).' AND enabled=1" ]}
{[ "type": "select", "multiple": "1", "label": "'.tr('Mansioni').'", "name": "idmansioni[]", "value": "'.implode(',', $selected_mansioni).'", "ajax-source": "mansioni" ]}
'; ?>
{[ "type": "ckeditor", "label": "", "name": "body", "value": "$body$" ]}
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']) { ?>