{extends file="layout.html"} {block name=title}LMS: {$layout.pagetitle|striphtml}{/block} {block name=module_content} {$xajax}

{$layout.pagetitle}

{if !empty($message.customers)} {/if} {if !empty($message.customers)} {if count($message.customers) == 1} {$customer = reset($message.customers)} {/if} {else} {/if} {if $message.emailcount} {/if} {if $message.phonecount} {/if} $smarty.const.MSG_MAIL} style="display: none;"{/if}> $smarty.const.MSG_MAIL} style="display: none;"{/if}> {if $users} {/if} {capture assign="body_hint"}{strip} Enter message body.

Supported substitutions/variables:
%customer - customer first name and last name or name,
%balance, %totalsaldo, %totalB - customer total balance,
%b - customer expired liability balance amount to pay,
%totalb - customer total balance amount to pay,
%B, %saldo - customer expired liability balance,
%cid - customer identifier,
%pin - customer pin,
%bankaccount - bank account for payments,
%services - customer service summary,
%last_N_in_a_table - last N operation in customer financial history (N means number),
%date-y - current year
%date-m - current month,
%date-d - current day.

Substitution/variables supported while customer node is selected:
%node_name - customer node name,
%node_password - customer node password,
%node_ip - customer node ip address,
%node_ip_pub - customer node public ip address,
%node_mac - customer node mac addresses.
{/strip}{/capture} $smarty.const.MSG_MAIL && $message.type < $smarty.const.MSG_WWW} style="display: none"{/if}> $smarty.const.MSG_ANYSMS} style="display: none"{/if}> $smarty.const.MSG_ANYSMS} style="display: none"{/if}> $smarty.const.MSG_MAIL} style="display: none"{/if}>
{icon name="filter"} {trans("Type")} {if $message.emailcount || empty($message.customers)} {/if} {if $message.phonecount || empty($message.customers)} {/if}
{icon name="customer"} {$customer.name} ({$customer.customerid|string_format:"%04d"})
{if empty($nodes)} {else} {trans("Node:")} {/if}
{icon name="mail"} {trans("Sender E-mail")} 1}style="display: none;"{/if}>
{icon name="user"} {trans("Sender")}
{icon name="message"} {trans("Subject")}
{icon name="document"} {trans("Message template")}
{icon name="edit"} {trans("Message body")}
{hint content=$body_hint} {speech_recognition target="#mailtext"}
{icon name="edit"} {trans("Message body")}
{hint content=$body_hint} {speech_recognition target="#smstext"}
   

{trans("Characters")} 0
{icon name="attachment"} {trans("Attachments")} {fileupload id="files" fileupload=$fileupload form="message"}
{button icon="quick-send" id="submit-button" label="Send"}
{/block}