168 lines
8.3 KiB
Smarty
168 lines
8.3 KiB
Smarty
{*
|
|
* 2007-2021 ETS-Soft
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This file is not open source! Each license that you purchased is only available for 1 wesite only.
|
|
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
|
|
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please, contact us for extra customization service at an affordable price
|
|
*
|
|
* @author ETS-Soft <etssoft.jsc@gmail.com>
|
|
* @copyright 2007-2021 ETS-Soft
|
|
* @license Valid for 1 website (or project) for each purchase of license
|
|
* International Registered Trademark & Property of ETS-Soft
|
|
*}
|
|
<div class="panel view-message" id="message">
|
|
<div class="panel-heading">
|
|
<i class="icon-envelope"></i>
|
|
[#{$message.id_contact_message|intval}]
|
|
{$message.subject|escape:'html':'UTF-8'}
|
|
{if $message.reply_to_check}
|
|
<span class="panel-heading-action">
|
|
<span class="{if $message.reply_to_check}action-reply-message{else}action-reply-message-disable{/if}">
|
|
<i class="process-icon-reply"></i>{l s='Reply' mod='ets_cfultimate'}
|
|
</span>
|
|
</span>
|
|
{/if}
|
|
</div>
|
|
<div class="message-from">
|
|
<ul class="heade_if_form">
|
|
<li><strong>{l s='Sent by:' mod='ets_cfultimate'}</strong>{$message.sender|escape:'html':'UTF-8'}</li>
|
|
<li><strong>{l s='Date:' mod='ets_cfultimate'}</strong>{$message.date_add|escape:'html':'UTF-8'}</li>
|
|
<li>
|
|
<strong>{l s='Ip:' mod='ets_cfultimate'}</strong>
|
|
<a class="link_ip"
|
|
href="https://www.infobyip.com/ip-{$message.ip|escape:'html':'UTF-8'}.html"
|
|
target="_blank">{$message.ip|escape:'html':'UTF-8'}</a>
|
|
</li>
|
|
</ul>
|
|
{if $message.id_customer}
|
|
<span class="customer_message">
|
|
{l s='Identified customer:' mod='ets_cfultimate'}
|
|
{if isset($is170) && $is170}
|
|
{assign var="linkCustomer" value="{$link->getAdminLink('AdminCustomers',true,['id_customer'=>{$message.id_customer|intval},'updatecustomer'=>1])|escape:'html':'UTF-8'}"}
|
|
{else}
|
|
{assign var="linkCustomer" value="{$link->getAdminLink('AdminCustomers')|escape:'html':'UTF-8'}&viewcustomer&id_customer={$message.id_customer|intval}"}
|
|
{/if}
|
|
|
|
<a href="{$linkCustomer|escape:'html':'UTF-8'}">
|
|
{$message.customer_name|escape:'html':'UTF-8'}
|
|
</a>
|
|
</span>
|
|
{/if}
|
|
</div>
|
|
<div id="message-content">
|
|
{$message.body nofilter}
|
|
</div>
|
|
{if $message.attachments}
|
|
{if $message.save_attachments}
|
|
<div class="ctf7_attachments">
|
|
<div><strong>{l s='Attachments: ' mod='ets_cfultimate'}</strong></div>
|
|
<ul id="list-attachments">
|
|
{assign var='index' value=1}
|
|
{foreach from =$message.attachments item='attachment'}
|
|
{if trim($attachment)}
|
|
{assign var='atts' value=explode('-',$attachment)}
|
|
{if count($atts)>1 && array_shift($atts)}
|
|
{assign var='attachment2' value=implode('-',$atts)}
|
|
{else}
|
|
{assign var='attachment2' value=$attachment}
|
|
{/if}
|
|
<li>
|
|
<a href="{$base_url|escape:'html':'UTF-8'}/modules/ets_cfultimate/views/img/etscfu_upload/{$attachment|escape:'html':'UTF-8'}"
|
|
target="_blank">{$attachment2|escape:'html':'UTF-8'}</a></li>
|
|
{/if}
|
|
{assign var='index' value=$index+1}
|
|
{/foreach}
|
|
</ul>
|
|
</div>
|
|
{else}
|
|
<p class="alert alert-warning">{l s='Attachments were sent via email' mod='ets_cfultimate'}</p>
|
|
{/if}
|
|
{/if}
|
|
<ul id="list-replies">
|
|
{if $replies}
|
|
{foreach from=$replies key='key' item='reply'}
|
|
<li>
|
|
<span class="content-reply">
|
|
<b>{l s='Reply' mod='ets_cfultimate'} {$key|intval+1}: </b>{$reply.content|strip_tags:'UTF-8'|truncate:150:'...'}
|
|
</span>
|
|
<span class="content-reply-full">
|
|
<p>
|
|
<b>{l s='Reply to:' mod='ets_cfultimate'}</b> {$reply.reply_to|escape:'html':'UTF-8'} {$reply.date_add|escape:'html':'UTF-8'}
|
|
</p>
|
|
<p>
|
|
<b>{l s='Subject:' mod='ets_cfultimate'}</b> {$reply.subject|escape:'html':'UTF-8'}
|
|
</p>
|
|
<p class="content-message">
|
|
<b>{l s='Content:' mod='ets_cfultimate'}</b> {$reply.content nofilter}
|
|
</p>
|
|
</span>
|
|
</li>
|
|
{/foreach}
|
|
{/if}
|
|
</ul>
|
|
</div>
|
|
<form id="module_form_reply-message" style="display:none;" class="defaultForm form-horizontal" novalidate=""
|
|
enctype="multipart/form-data" method="post" action="">
|
|
<div class="panel" id="replay-message-form">
|
|
<div class="panel-heading">
|
|
<i class="icon-envelope"></i>
|
|
{l s='Reply message:' mod='ets_cfultimate'} [#{$message.id_contact_message|intval}
|
|
] {$message.subject|escape:'html':'UTF-8'}
|
|
</div>
|
|
<div class="form-wrapper">
|
|
<input type="hidden" value="{$message.id_contact_message|intval}" name="id_message"/>
|
|
<div class="form-group">
|
|
<label class="control-label col-lg-2 required">{l s='From:' mod='ets_cfultimate'} </label>
|
|
<div class="col-lg-10">
|
|
<input name="from_reply" value="{$message.from_reply|escape:'html':'UTF-8'}" type="text"/>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-lg-2 required">{l s='To:' mod='ets_cfultimate'} </label>
|
|
<div class="col-lg-10">
|
|
<input name="reply_to" value="{$message.reply_to|escape:'html':'UTF-8'}" type="text"/>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-lg-2 required">{l s='Subject' mod='ets_cfultimate'}</label>
|
|
<div class="col-lg-10">
|
|
<input name="reply_subject"
|
|
value="{l s='Reply' mod='ets_cfultimate'}: {$message.subject|escape:'html':'UTF-8'}"
|
|
type="text"/>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-lg-2 required">{l s='Reply to' mod='ets_cfultimate'}</label>
|
|
<div class="col-lg-10">
|
|
<input name="reply_to_reply" value="{$message.email_to|escape:'html':'UTF-8'}" type="text"/>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-lg-2 required">{l s='Message' mod='ets_cfultimate'} </label>
|
|
<div class="col-lg-10">
|
|
<textarea name="message_reply" placeholder="{l s='Message' mod='ets_cfultimate'}"></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="panel-footer">
|
|
<button id="module_form_submit_btn_reply" class="btn btn-default pull-right" name="etsCfuSubmitReplyMessage"
|
|
value="1" type="submit">
|
|
<i class="icon process-icon-reply"></i>
|
|
{l s='Send' mod='ets_cfultimate'}
|
|
</button>
|
|
<button id="module_form_submit_btn_back" class="btn btn-default pull-left" name="backReplyMessage"
|
|
value="1" type="button">
|
|
<i class="icon process-icon-back"></i>
|
|
{l s='Back' mod='ets_cfultimate'}
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form> |