{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}> $smarty.const.MSG_MAIL} style="display: none;"{/if}> $smarty.const.MSG_MAIL} style="display: none;"{/if}> $smarty.const.MSG_MAIL} style="display: none;"{/if}> $smarty.const.MSG_MAIL} style="display: none;"{/if}> {if $users} {/if} {capture assign="content_hint"}{strip} Supported substitutions/variables:
%customer - customer first name and last name or name,
%balance, %totalsaldo, %totalB - customer total balance,
%commented_balance - customer total balance as absolute value with text comment explaining customer billing status,
%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_login - customer node login (node name is used when login is empty),
%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")} {hint text=trans("Enter message subject.")|cat:"

"|cat:trans($content_hint)}
{icon name="document"} {trans("Message template")}
{icon name="edit"} {trans("Message body")}
{hint text=trans("Enter message body.")|cat:"

"|cat:trans($content_hint)} {speech_recognition target="#mailtext"}
{icon name="edit"} {trans("Message body")}
{hint text=trans("Enter message body.")|cat:"

"|cat:trans($content_hint)} {speech_recognition target="#smstext"}
   

{trans("Characters")} 0
{icon name="attachment"} {trans("Attachments")} {fileupload id="files" fileupload=$fileupload form="message"} {if !empty($message['file-container'])}
{trans("from earlier sent message")}
    {foreach $message['file-container'].files as $file} {$deleted = !empty($file.deleted)} {button type="link" icon="trash" class="file-delete" style="{if $deleted} display: none;{/if}"} {button type="link" icon="restore" class="file-restore" visible="false" style="{if !$deleted} display: none;{/if}"} {capture assign="filename"} {$file.filename|escape} ({$file.sizestr}) {/capture} {documentview id="file-{$file.id}" type=$file.contenttype name=$filename url="?m=attachments&attachmentaction=viewfile&type=messageid&id={$message['file-container'].id}&fileid={$file.id}" } {/foreach}
{/if}
{button icon="quick-send" id="submit-button" label="Send"}
{/block}