// orders cleanup
This commit is contained in:
@@ -65,102 +65,114 @@
|
||||
<div class="bloc-command panel">
|
||||
<div class="button-command">
|
||||
{if (count($invoices_collection))}
|
||||
<a class="button" href="{$link->getAdminLink('AdminPdf')|escape:'htmlall':'UTF-8'}&submitAction=generateInvoicePDF&id_order={$order->id}" target="_blank">
|
||||
<a class="btn btn-default" href="{$link->getAdminLink('AdminPdf')|escape:'htmlall':'UTF-8'}&submitAction=generateInvoicePDF&id_order={$order->id}" target="_blank">
|
||||
<img src="../img/admin/charged_ok.gif" alt="{l s='View invoice'}" /> {l s='View invoice'}
|
||||
</a>
|
||||
{else}
|
||||
<img src="../img/admin/charged_ko.gif" alt="{l s='No invoice'}" /> {l s='No invoice'}
|
||||
{/if}
|
||||
|
|
||||
{if (($currentState && $currentState->delivery) || $order->delivery_number)}
|
||||
<a class="button" href="{$link->getAdminLink('AdminPdf')|escape:'htmlall':'UTF-8'}&submitAction=generateDeliverySlipPDF&id_order={$order->id}" target="_blank">
|
||||
<img src="../img/admin/delivery.gif" alt="{l s='View delivery slip'}" /> {l s='View delivery slip'}
|
||||
<a class="btn btn-default" href="{$link->getAdminLink('AdminPdf')|escape:'htmlall':'UTF-8'}&submitAction=generateDeliverySlipPDF&id_order={$order->id}" target="_blank">
|
||||
<img src="../img/admin/delivery.gif" alt="{l s='View delivery slip'}" />
|
||||
{l s='View delivery slip'}
|
||||
</a>
|
||||
{else}
|
||||
<img src="../img/admin/delivery_ko.gif" alt="{l s='No delivery slip'}" /> {l s='No delivery slip'}
|
||||
<img src="../img/admin/delivery_ko.gif" alt="{l s='No delivery slip'}" />
|
||||
{l s='No delivery slip'}
|
||||
{/if}
|
||||
|
|
||||
<a class="button" href="javascript:window.print()"><img src="../img/admin/printer.gif" alt="{l s='Print order'}" title="{l s='Print order'}" /> {l s='Print order'}</a>
|
||||
<a class="btn btn-default" href="javascript:window.print()">
|
||||
<img src="../img/admin/printer.gif" alt="{l s='Print order'}" title="{l s='Print order'}" />
|
||||
{l s='Print order'}
|
||||
</a>
|
||||
</div>
|
||||
<div class="metadata-command">
|
||||
<dl>
|
||||
<dt>{l s='Date'} </dt>
|
||||
<dd>{dateFormat date=$order->date_add full=true}</dd>
|
||||
|</dl>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>{l s='Messages:'}</dt>
|
||||
<dd>{sizeof($messages)}</dd>
|
||||
|</dl>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt><a href="{$link->getAdminLink('AdminCustomerThreads')|escape:'htmlall':'UTF-8'}">{l s='New Customer Messages:'}</a></dt>
|
||||
<dd><a href="{$link->getAdminLink('AdminCustomerThreads')|escape:'htmlall':'UTF-8'}">{sizeof($customer_thread_message)}</a></dd>
|
||||
|</dl>
|
||||
<dt>
|
||||
<a href="{$link->getAdminLink('AdminCustomerThreads')|escape:'htmlall':'UTF-8'}">{l s='New Customer Messages:'}</a>
|
||||
</dt>
|
||||
<dd>
|
||||
<a href="{$link->getAdminLink('AdminCustomerThreads')|escape:'htmlall':'UTF-8'}">{sizeof($customer_thread_message)}</a>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>{l s='Products:'}</dt>
|
||||
<dd id="product_number">{sizeof($products)}</dd>
|
||||
|</dl>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>{l s='Total'}</dt>
|
||||
<dd class="total_paid">{displayPrice price=$order->total_paid_tax_incl currency=$currency->id}</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container-command">
|
||||
<!-- Left column -->
|
||||
<div>
|
||||
<!-- Change status form -->
|
||||
<form action="{$currentIndex}&vieworder&token={$smarty.get.token}" method="post">
|
||||
<form class="panel" action="{$currentIndex}&vieworder&token={$smarty.get.token}" method="post">
|
||||
<select id="id_order_state" name="id_order_state">
|
||||
{foreach from=$states item=state}
|
||||
<option value="{$state['id_order_state']}"{if $state['id_order_state'] == $currentState->id} selected="selected" disabled="disabled"{/if}>{$state['name']|stripslashes}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<input type="hidden" name="id_order" value="{$order->id}" />
|
||||
<input type="submit" name="submitState" value="{l s='Add'}" class="button" />
|
||||
<input type="submit" name="submitState" value="{l s='Add'}" class="btn btn-default" />
|
||||
</form>
|
||||
<!-- History of status -->
|
||||
<table class="table history-status">
|
||||
<colgroup>
|
||||
<col width="1%">
|
||||
<col width="">
|
||||
<col width="20%">
|
||||
<col width="20%">
|
||||
</colgroup>
|
||||
{foreach from=$history item=row key=key}
|
||||
{if ($key == 0)}
|
||||
<tr>
|
||||
<th><img src="../img/os/{$row['id_order_state']}.gif" /></th>
|
||||
<th>{$row['ostate_name']|stripslashes}</th>
|
||||
<th>{if $row['employee_lastname']}{$row['employee_firstname']|stripslashes} {$row['employee_lastname']|stripslashes}{/if}</th>
|
||||
<th>{dateFormat date=$row['date_add'] full=true}</th>
|
||||
</tr>
|
||||
{else}
|
||||
<tr class="{if ($key % 2)}alt_row{/if}">
|
||||
<td><img src="../img/os/{$row['id_order_state']}.gif" /></td>
|
||||
<td>{$row['ostate_name']|stripslashes}</td>
|
||||
<td>{if $row['employee_lastname']}{$row['employee_firstname']|stripslashes} {$row['employee_lastname']|stripslashes}{else} {/if}</td>
|
||||
<td>{dateFormat date=$row['date_add'] full=true}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</table>
|
||||
|
||||
<div class="panel">
|
||||
<table class="table history-status">
|
||||
<tbody>
|
||||
{foreach from=$history item=row key=key}
|
||||
{if ($key == 0)}
|
||||
<tr class="highlighted">
|
||||
<td><img src="../img/os/{$row['id_order_state']}.gif" /></td>
|
||||
<td><span class="title_box ">{$row['ostate_name']|stripslashes}</span></td>
|
||||
<td><span class="title_box ">{if $row['employee_lastname']}{$row['employee_firstname']|stripslashes} {$row['employee_lastname']|stripslashes}{/if}</span></td>
|
||||
<td><span class="title_box ">{dateFormat date=$row['date_add'] full=true}</span></td>
|
||||
</tr>
|
||||
{else}
|
||||
<tr>
|
||||
<td><img src="../img/os/{$row['id_order_state']}.gif" /></td>
|
||||
<td>{$row['ostate_name']|stripslashes}</td>
|
||||
<td>{if $row['employee_lastname']}{$row['employee_firstname']|stripslashes} {$row['employee_lastname']|stripslashes}{else} {/if}</td>
|
||||
<td>{dateFormat date=$row['date_add'] full=true}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{if $customer->id}
|
||||
<!-- Customer informations -->
|
||||
<fieldset>
|
||||
<h3><img src="../img/admin/tab-customers.gif" /> {l s='Customer information'}</h3>
|
||||
<span style="font-weight: bold; font-size: 14px;"><a href="?tab=AdminCustomers&id_customer={$customer->id}&viewcustomer&token={getAdminToken tab='AdminCustomers'}"> {$customer->firstname} {$customer->lastname}</a></span> ({l s='#'}{$customer->id})
|
||||
<h3>
|
||||
<i class="icon-user"></i>
|
||||
{l s='Customer information'}
|
||||
</h3>
|
||||
<span>
|
||||
<a href="?tab=AdminCustomers&id_customer={$customer->id}&viewcustomer&token={getAdminToken tab='AdminCustomers'}"> {$customer->firstname} {$customer->lastname}</a>
|
||||
</span> ({l s='#'}{$customer->id})
|
||||
(<a href="mailto:{$customer->email}">{$customer->email}</a>)
|
||||
{if ($customer->isGuest())}
|
||||
{l s='This order has been placed by a guest.'}
|
||||
{if (!Customer::customerExists($customer->email))}
|
||||
<form method="post" action="index.php?tab=AdminCustomers&id_customer={$customer->id}&token={getAdminToken tab='AdminCustomers'}">
|
||||
<input type="hidden" name="id_lang" value="{$order->id_lang}" />
|
||||
<p class="center"><input class="button" type="submit" name="submitGuestToCustomer" value="{l s='Transform a guest into a customer'}" /></p>
|
||||
<p class="center"><input class="btn btn-default" type="submit" name="submitGuestToCustomer" value="{l s='Transform a guest into a customer'}" /></p>
|
||||
{l s='This feature will generate a random password and send an email to the customer.'}
|
||||
</form>
|
||||
{else}
|
||||
<div><b style="color:red;">{l s='A registered customer account has already claimed this email address'}</b></div>
|
||||
<div>
|
||||
<b style="color:red;">{l s='A registered customer account has already claimed this email address'}</b>
|
||||
</div>
|
||||
{/if}
|
||||
{else}
|
||||
{l s='Account registered:'} <b>{dateFormat date=$customer->date_add full=true}</b><br />
|
||||
@@ -173,7 +185,10 @@
|
||||
<!-- Sources block -->
|
||||
{if (sizeof($sources))}
|
||||
<fieldset>
|
||||
<h3><img src="../img/admin/tab-stats.gif" /> {l s='Sources'}</h3>
|
||||
<h3>
|
||||
<img src="../img/admin/tab-stats.gif" />
|
||||
{l s='Sources'}
|
||||
</h3>
|
||||
<ul {if sizeof($sources) > 3}style="height: 200px; overflow-y: scroll;"{/if}>
|
||||
{foreach from=$sources item=source}
|
||||
<li>
|
||||
@@ -194,31 +209,32 @@
|
||||
|
||||
<!-- Right column -->
|
||||
<div>
|
||||
<div class="button-command-prev-next">
|
||||
<div class="button-command-prev-next panel">
|
||||
<b>{l s='Orders'}</b> :
|
||||
{if $previousOrder}<a class="button" href="{$link->getAdminLink('AdminOrders')|escape:'htmlall':'UTF-8'}&vieworder&id_order={$previousOrder}">{l s='< Prev'}</a>{/if}
|
||||
{if $nextOrder}<a class="button" href="{$link->getAdminLink('AdminOrders')|escape:'htmlall':'UTF-8'}&vieworder&id_order={$nextOrder}">{l s='Next >'}</a>{/if}
|
||||
{if $previousOrder}<a class="btn btn-default" href="{$link->getAdminLink('AdminOrders')|escape:'htmlall':'UTF-8'}&vieworder&id_order={$previousOrder}">{l s='< Prev'}</a>{/if}
|
||||
{if $nextOrder}<a class="btn btn-default" href="{$link->getAdminLink('AdminOrders')|escape:'htmlall':'UTF-8'}&vieworder&id_order={$nextOrder}">{l s='Next >'}</a>{/if}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<!-- linked orders block -->
|
||||
{if count($order->getBrother()) > 0}
|
||||
<fieldset>
|
||||
<h3><img src="../img/admin/tab-orders.gif" /> {l s='Linked orders'}</h3>
|
||||
<h3>
|
||||
<img src="../img/admin/tab-orders.gif" />
|
||||
{l s='Linked orders'}
|
||||
</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="10%">
|
||||
<th>
|
||||
{l s='Order no. '}
|
||||
</th>
|
||||
<th>
|
||||
{l s='Status'}
|
||||
</th>
|
||||
<th width="10%">
|
||||
<th>
|
||||
{l s='Amount'}
|
||||
</th>
|
||||
<th width="5%">
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -245,7 +261,10 @@
|
||||
|
||||
<!-- Documents block -->
|
||||
<fieldset>
|
||||
<h3><img src="../img/admin/details.gif" /> {l s='Documents'}</h3>
|
||||
<h3>
|
||||
<i class="icon-file"></i>
|
||||
{l s='Documents'}
|
||||
</h3>
|
||||
|
||||
{* Include document template *}
|
||||
{include file='controllers/orders/_documents.tpl'}
|
||||
@@ -253,8 +272,10 @@
|
||||
|
||||
<!-- Payments block -->
|
||||
<fieldset>
|
||||
<h3><img src="../img/admin/money.gif" /> {l s='Payment: '}</h3>
|
||||
|
||||
<h3>
|
||||
<i class="icon-money"></i>
|
||||
{l s='Payment: '}
|
||||
</h3>
|
||||
{if (!$order->valid && sizeof($currencies) > 1)}
|
||||
<form method="post" action="{$currentIndex}&vieworder&id_order={$order->id}&token={$smarty.get.token|escape:'htmlall':'UTF-8'}">
|
||||
<p class="warn">{l s='Do not forget to update your exchange rate before making this change.'}</p>
|
||||
@@ -266,11 +287,10 @@
|
||||
{/if}
|
||||
{/foreach}
|
||||
</select>
|
||||
<input type="submit" class="button" name="submitChangeCurrency" value="{l s='Change'}" />
|
||||
<input type="submit" class="btn btn-default" name="submitChangeCurrency" value="{l s='Change'}" />
|
||||
</form>
|
||||
<hr class="clear"/>
|
||||
{/if}
|
||||
|
||||
|
||||
{if count($order->getOrderPayments()) > 0}
|
||||
<p class="error" style="{if round($orders_total_paid_tax_incl, 2) == round($total_paid, 2) || $currentState->id == 6}display: none;{/if}">
|
||||
{l s='Warning'} {displayPrice price=$total_paid currency=$currency->id}
|
||||
@@ -290,23 +310,15 @@
|
||||
{/if}
|
||||
|
||||
<form id="formAddPayment" method="post" action="{$current_index}&vieworder&id_order={$order->id}&token={$smarty.get.token|escape:'htmlall':'UTF-8'}">
|
||||
<table class="table" width="100%" cellspacing="0" cellpadding="0">
|
||||
<colgroup>
|
||||
<col width="15%">
|
||||
<col width="">
|
||||
<col width="20%">
|
||||
<col width="10%">
|
||||
<col width="10%">
|
||||
<col width="1%">
|
||||
</colgroup>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{l s='Date'}</th>
|
||||
<th>{l s='Payment method'}</th>
|
||||
<th>{l s='Transaction ID'}</th>
|
||||
<th>{l s='Amount'}</th>
|
||||
<th>{l s='Invoice'}</th>
|
||||
<th> </th>
|
||||
<th><span class="title_box ">{l s='Date'}</span></th>
|
||||
<th><span class="title_box ">{l s='Payment method'}</span></th>
|
||||
<th><span class="title_box ">{l s='Transaction ID'}</span></th>
|
||||
<th><span class="title_box ">{l s='Amount'}</span></th>
|
||||
<th><span class="title_box ">{l s='Invoice'}</span></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -323,7 +335,7 @@
|
||||
{l s='No invoice'}
|
||||
{/if}
|
||||
</td>
|
||||
<td class="right">
|
||||
<td>
|
||||
<a href="#" class="open_payment_information"><img src="../img/admin/details.gif" title="{l s='See payment information'}" alt="{l s='See payment information'}" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -402,7 +414,7 @@
|
||||
</select>
|
||||
</td>
|
||||
{/if}
|
||||
<td><input class="button" type="submit" name="submitAddPayment" value="{l s='Add'}" /></td>
|
||||
<td><input class="btn btn-default" type="submit" name="submitAddPayment" value="{l s='Add'}" /></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -412,9 +424,11 @@
|
||||
<!-- Shipping block -->
|
||||
{if !$order->isVirtual()}
|
||||
<fieldset>
|
||||
<h3><img src="../img/admin/delivery.gif" /> {l s='Shipping'}</h3>
|
||||
|
||||
<div class="clear" style="float: left; margin-right: 10px;">
|
||||
<h3>
|
||||
<i class="icon-truck"></i>
|
||||
{l s='Shipping'}
|
||||
</h3>
|
||||
<div>
|
||||
<span>{l s='Recycled packaging'}</span>
|
||||
{if $order->recyclable}
|
||||
<img src="../img/admin/enabled.gif" />
|
||||
@@ -422,14 +436,14 @@
|
||||
<img src="../img/admin/disabled.gif" />
|
||||
{/if}
|
||||
</div>
|
||||
<div style="float: left;">
|
||||
<div>
|
||||
<span>{l s='Gift wrapping'}</span>
|
||||
{if $order->gift}
|
||||
<img src="../img/admin/enabled.gif" />
|
||||
</div>
|
||||
<div style="clear: left; margin: 0px 42px 0px 42px; padding-top: 2px;">
|
||||
<div>
|
||||
{if $order->gift_message}
|
||||
<div style="border: 1px dashed #999; padding: 5px; margin-top: 8px;"><b>{l s='Message'}</b><br />{$order->gift_message|nl2br}</div>
|
||||
<div><b>{l s='Message'}</b><br />{$order->gift_message|nl2br}</div>
|
||||
{/if}
|
||||
{else}
|
||||
<img src="../img/admin/disabled.gif" />
|
||||
@@ -445,16 +459,19 @@
|
||||
|
||||
<!-- Return block -->
|
||||
<fieldset>
|
||||
<h3><img src="../img/admin/delivery.gif" /> {l s='Merchandise returns'}</h3>
|
||||
<h3>
|
||||
<i class="icon-reply"></i>
|
||||
{l s='Merchandise returns'}
|
||||
</h3>
|
||||
|
||||
{if $order->getReturn()|count > 0}
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:30%">Date</th>
|
||||
<th>Type</th>
|
||||
<th style="width:20%">Carrier</th>
|
||||
<th style="width:30%">Tracking number</th>
|
||||
<th><span class="title_box ">Date</span></th>
|
||||
<th><span class="title_box ">Type</span></th>
|
||||
<th><span class="title_box ">Carrier</span></th>
|
||||
<th><span class="title_box ">Tracking number</span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -466,13 +483,17 @@
|
||||
<td>
|
||||
<span id="shipping_number_show">{if isset($line.url) && isset($line.tracking_number)}<a href="{$line.url|replace:'@':$line.tracking_number}">{$line.tracking_number}</a>{elseif isset($line.tracking_number)}{$line.tracking_number}{/if}</span>
|
||||
{if $line.can_edit}
|
||||
<form style="display: inline;" method="post" action="{$link->getAdminLink('AdminOrders')|escape:'htmlall':'UTF-8'}&vieworder&id_order={$order->id}&id_order_invoice={if $line.id_order_invoice}{$line.id_order_invoice|escape:'htmlall':'UTF-8'}{else}0{/if}&id_carrier={if $line.id_carrier}{$line.id_carrier|escape:'htmlall':'UTF-8'}{else}0{/if}">
|
||||
<form method="post" action="{$link->getAdminLink('AdminOrders')|escape:'htmlall':'UTF-8'}&vieworder&id_order={$order->id}&id_order_invoice={if $line.id_order_invoice}{$line.id_order_invoice|escape:'htmlall':'UTF-8'}{else}0{/if}&id_carrier={if $line.id_carrier}{$line.id_carrier|escape:'htmlall':'UTF-8'}{else}0{/if}">
|
||||
<span class="shipping_number_edit" style="display:none;">
|
||||
<input type="text" name="tracking_number" value="{$line.tracking_number|htmlentities}" />
|
||||
<input type="submit" class="button" name="submitShippingNumber" value="{l s='Update'}" />
|
||||
<input type="submit" class="btn btn-default" name="submitShippingNumber" value="{l s='Update'}" />
|
||||
</span>
|
||||
<a href="#" class="edit_shipping_number_link"><img src="../img/admin/edit.gif" alt="{l s='Edit'}" /></a>
|
||||
<a href="#" class="cancel_shipping_number_link" style="display: none;"><img src="../img/admin/disabled.gif" alt="{l s='Cancel'}" /></a>
|
||||
<a href="#" class="edit_shipping_number_link">
|
||||
<img src="../img/admin/edit.gif" alt="{l s='Edit'}" />
|
||||
</a>
|
||||
<a href="#" class="cancel_shipping_number_link" style="display: none;">
|
||||
<img src="../img/admin/disabled.gif" alt="{l s='Cancel'}" />
|
||||
</a>
|
||||
</form>
|
||||
{/if}
|
||||
</td>
|
||||
@@ -491,33 +512,34 @@
|
||||
{/if}
|
||||
</div>
|
||||
<!-- END Right column -->
|
||||
<div class="clear" style="margin-bottom: 10px;"></div>
|
||||
</div>
|
||||
|
||||
<div class="container-command container-command-top-spacing">
|
||||
<!-- Addresses -->
|
||||
{if !$order->isVirtual()}
|
||||
<div style="width: 49%; float:left;">
|
||||
<div>
|
||||
<!-- Shipping address -->
|
||||
<fieldset>
|
||||
<h3><img src="../img/admin/delivery.gif" alt="{l s='Shipping address'}" />{l s='Shipping address'}</h3>
|
||||
|
||||
<h3>
|
||||
<i class="icon-map-marker"></i>
|
||||
{l s='Shipping address'}
|
||||
</h3>
|
||||
{if $can_edit}
|
||||
<form method="post" action="{$link->getAdminLink('AdminOrders')|escape:'htmlall':'UTF-8'}&vieworder&id_order={$order->id}">
|
||||
<div style="margin-bottom:5px;">
|
||||
<div>
|
||||
<p>
|
||||
<select name="id_address">
|
||||
{foreach from=$customer_addresses item=address}
|
||||
<option value="{$address['id_address']}"{if $address['id_address'] == $order->id_address_delivery} selected="selected"{/if}>{$address['alias']} - {$address['address1']} {$address['postcode']} {$address['city']}{if !empty($address['state'])} {$address['state']}{/if}, {$address['country']}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<input class="button" type="submit" name="submitAddressShipping" value="{l s='Change'}" />
|
||||
<input class="btn btn-default" type="submit" name="submitAddressShipping" value="{l s='Change'}" />
|
||||
</p>
|
||||
</div>
|
||||
</form>
|
||||
{/if}
|
||||
|
||||
<div style="float: right">
|
||||
<div>
|
||||
<a href="?tab=AdminAddresses&id_address={$addresses.delivery->id}&addaddress&realedit=1&id_order={$order->id}{if ($addresses.delivery->id == $addresses.invoice->id)}&address_type=1{/if}&token={getAdminToken tab='AdminAddresses'}&back={$smarty.server.REQUEST_URI|urlencode}"><img src="../img/admin/edit.gif" /></a>
|
||||
<a href="http://maps.google.com/maps?f=q&hl={$iso_code_lang}&geocode=&q={$addresses.delivery->address1} {$addresses.delivery->postcode} {$addresses.delivery->city} {if ($addresses.delivery->id_state)} {$addresses.deliveryState->name}{/if}" target="_blank"><img src="../img/admin/google.gif" alt="" class="middle" /></a>
|
||||
</div>
|
||||
@@ -527,27 +549,30 @@
|
||||
</fieldset>
|
||||
</div>
|
||||
{/if}
|
||||
<div style="width: 49%; float:right;">
|
||||
<div>
|
||||
<!-- Invoice address -->
|
||||
<fieldset>
|
||||
<h3><img src="../img/admin/invoice.gif" alt="{l s='Invoice address'}" />{l s='Invoice address'}</h3>
|
||||
<h3>
|
||||
<i class="icon-file-text"></i>
|
||||
{l s='Invoice address'}
|
||||
</h3>
|
||||
|
||||
{if $can_edit}
|
||||
<form method="post" action="{$link->getAdminLink('AdminOrders')|escape:'htmlall':'UTF-8'}&vieworder&id_order={$order->id}">
|
||||
<div style="margin-bottom:5px;">
|
||||
<div>
|
||||
<p>
|
||||
<select name="id_address">
|
||||
{foreach from=$customer_addresses item=address}
|
||||
<option value="{$address['id_address']}"{if $address['id_address'] == $order->id_address_invoice} selected="selected"{/if}>{$address['alias']} - {$address['address1']} {$address['postcode']} {$address['city']}{if !empty($address['state'])} {$address['state']}{/if}, {$address['country']}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<input class="button" type="submit" name="submitAddressInvoice" value="{l s='Change'}" />
|
||||
<input class="btn btn-default" type="submit" name="submitAddressInvoice" value="{l s='Change'}" />
|
||||
</p>
|
||||
</div>
|
||||
</form>
|
||||
{/if}
|
||||
|
||||
<div style="float: right">
|
||||
<div>
|
||||
<a href="?tab=AdminAddresses&id_address={$addresses.invoice->id}&addaddress&realedit=1&id_order={$order->id}{if ($addresses.delivery->id == $addresses.invoice->id)}&address_type=2{/if}&back={$smarty.server.REQUEST_URI|urlencode}&token={getAdminToken tab='AdminAddresses'}"><img src="../img/admin/edit.gif" /></a>
|
||||
</div>
|
||||
|
||||
@@ -555,58 +580,68 @@
|
||||
{if $addresses.invoice->other}<hr />{$addresses.invoice->other}<br />{/if}
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="clear" style="margin-bottom: 10px;"></div>
|
||||
</div>
|
||||
|
||||
<form style="width: 98%" class="container-command-top-spacing" action="{$current_index}&vieworder&token={$smarty.get.token}&id_order={$order->id}" method="post" onsubmit="return orderDeleteProduct('{l s='This product cannot be returned.'}', '{l s='Quantity to cancel is greater than quantity available.'}');">
|
||||
<form class="container-command-top-spacing" action="{$current_index}&vieworder&token={$smarty.get.token}&id_order={$order->id}" method="post" onsubmit="return orderDeleteProduct('{l s='This product cannot be returned.'}', '{l s='Quantity to cancel is greater than quantity available.'}');">
|
||||
<input type="hidden" name="id_order" value="{$order->id}" />
|
||||
<fieldset style="width: 100%; ">
|
||||
<fieldset >
|
||||
<div style="display: none">
|
||||
<input type="hidden" value="{$order->getWarehouseList()|implode}" id="warehouse_list" />
|
||||
</div>
|
||||
<h3><img src="../img/admin/cart.gif" alt="{l s='Products:'}" />{l s='Products:'}</h3>
|
||||
<div style="float:left;width: 100%;">
|
||||
<h3>
|
||||
<i class="icon-shopping-cart"></i>
|
||||
{l s='Products:'}
|
||||
</h3>
|
||||
<div >
|
||||
{if $can_edit}
|
||||
{if !$order->hasBeenDelivered()}<div style="float: left;"><a href="#" class="add_product button"><img src="../img/admin/add.gif" alt="{l s='Add a product'}" /> {l s='Add a product'}</a></div>{/if}
|
||||
<div style="float: right; margin-right: 10px" id="refundForm">
|
||||
{if !$order->hasBeenDelivered()}
|
||||
<div >
|
||||
<a href="#" class="add_product btn btn-default">
|
||||
<i class="icon-plus-sign"></i>
|
||||
{l s='Add a product'}
|
||||
</a>
|
||||
</div>
|
||||
{/if}
|
||||
<div id="refundForm">
|
||||
<!--
|
||||
<a href="#" class="standard_refund"><img src="../img/admin/add.gif" alt="{l s='Process a standard refund'}" /> {l s='Process a standard refund'}</a>
|
||||
<a href="#" class="partial_refund"><img src="../img/admin/add.gif" alt="{l s='Process a partial refund'}" /> {l s='Process a partial refund'}</a>
|
||||
-->
|
||||
</div>
|
||||
{/if}
|
||||
<table style="width: 100%;" cellspacing="0" cellpadding="0" class="table" id="orderProducts">
|
||||
<tr>
|
||||
<th height="39" align="center" style="width: 7%"> </th>
|
||||
<th>{l s='Product'}</th>
|
||||
<th style="width: 15%; text-align: center">{l s='Unit Price'} <sup>*</sup></th>
|
||||
<th style="width: 4%; text-align: center">{l s='Qty'}</th>
|
||||
{if $display_warehouse}<th style="text-align: center">{l s='Warehouse'}</th>{/if}
|
||||
{if ($order->hasBeenPaid())}<th style="width: 3%; text-align: center">{l s='Refunded'}</th>{/if}
|
||||
{if ($order->hasBeenDelivered() || $order->hasProductReturned())}<th style="width: 3%; text-align: center">{l s='Returned'}</th>{/if}
|
||||
{if $stock_management}<th style="width: 10%; text-align: center">{l s='Available quantity'}</th>{/if}
|
||||
<th style="width: 10%; text-align: center">{l s='Total'} <sup>*</sup></th>
|
||||
<th colspan="2" style="display: none;" class="add_product_fields"> </th>
|
||||
<th colspan="2" style="display: none;" class="edit_product_fields"> </th>
|
||||
<th colspan="2" style="display: none;" class="standard_refund_fields"><img src="../img/admin/delete.gif" alt="{l s='Products:'}" />
|
||||
{if ($order->hasBeenDelivered() || $order->hasBeenShipped())}
|
||||
{l s='Return'}
|
||||
{elseif ($order->hasBeenPaid())}
|
||||
{l s='Refund'}
|
||||
{else}
|
||||
{l s='Cancel'}
|
||||
<table class="table" id="orderProducts">
|
||||
<thead>
|
||||
<tr>
|
||||
<th> </th>
|
||||
<th><span class="title_box ">{l s='Product'}</span></th>
|
||||
<th><span class="title_box ">{l s='Unit Price'} <sup>*</sup></span></th>
|
||||
<th><span class="title_box ">{l s='Qty'}</th>
|
||||
{if $display_warehouse}<th><span class="title_box ">{l s='Warehouse'}</span></th>{/if}
|
||||
{if ($order->hasBeenPaid())}<th><span class="title_box ">{l s='Refunded'}</span></th>{/if}
|
||||
{if ($order->hasBeenDelivered() || $order->hasProductReturned())}<th><span class="title_box ">{l s='Returned'}</span></th>{/if}
|
||||
{if $stock_management}<th><span class="title_box ">{l s='Available quantity'}</span></th>{/if}
|
||||
<th><span class="title_box ">{l s='Total'} <sup>*</sup></span></th>
|
||||
<th colspan="2" style="display: none;" class="add_product_fields"></th>
|
||||
<th colspan="2" style="display: none;" class="edit_product_fields"></th>
|
||||
<th colspan="2" style="display: none;" class="standard_refund_fields">
|
||||
<i class="icon-minus-sign"></i>
|
||||
{if ($order->hasBeenDelivered() || $order->hasBeenShipped())}
|
||||
{l s='Return'}
|
||||
{elseif ($order->hasBeenPaid())}
|
||||
{l s='Refund'}
|
||||
{else}
|
||||
{l s='Cancel'}
|
||||
{/if}
|
||||
</th>
|
||||
<th style="display:none" class="partial_refund_fields">
|
||||
{l s='Partial refund'}
|
||||
</th>
|
||||
{if !$order->hasBeenDelivered()}
|
||||
<th></th>
|
||||
{/if}
|
||||
</th>
|
||||
<th style="width: 12%;text-align:right;display:none" class="partial_refund_fields">
|
||||
{l s='Partial refund'}
|
||||
</th>
|
||||
{if !$order->hasBeenDelivered()}
|
||||
<th style="width: 8%;text-align:center;">
|
||||
{l s='Action'}
|
||||
</th>
|
||||
{/if}
|
||||
</tr>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$products item=product key=k}
|
||||
{* Include customized datas partial *}
|
||||
{include file='controllers/orders/_customized_data.tpl'}
|
||||
@@ -617,124 +652,147 @@
|
||||
{if $can_edit}
|
||||
{include file='controllers/orders/_new_product.tpl'}
|
||||
{/if}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div style="float:left; width:280px; margin-top:15px;">
|
||||
<div class="alert alert-warning">
|
||||
<sup>*</sup> {l s='For this customer group, prices are displayed as:'}
|
||||
{if ($order->getTaxCalculationMethod() == $smarty.const.PS_TAX_EXC)}
|
||||
{l s='tax excluded.'}
|
||||
{else}
|
||||
{l s='tax included.'}
|
||||
{/if}
|
||||
|
||||
{if !Configuration::get('PS_ORDER_RETURN')}
|
||||
<br /><br />{l s='Merchandise returns are disabled'}
|
||||
{l s='Merchandise returns are disabled'}
|
||||
{/if}
|
||||
</div>
|
||||
<div style="float:right; margin-top: 20px;">
|
||||
<table class="table" width="450px;" style="border-radius:0px;"cellspacing="0" cellpadding="0">
|
||||
<div>
|
||||
<table class="table">
|
||||
<tr id="total_products">
|
||||
<td width="150px;"><b>{l s='Products:'}</b></td>
|
||||
<td class="amount" align="right">{displayPrice price=$order->total_products_wt currency=$currency->id}</td>
|
||||
<td>{l s='Products:'}</td>
|
||||
<td class="amount">{displayPrice price=$order->total_products_wt currency=$currency->id}</td>
|
||||
<td class="partial_refund_fields current-edit" style="display:none;"> </td>
|
||||
</tr>
|
||||
<tr id="total_discounts" {if $order->total_discounts_tax_incl == 0}style="display: none;"{/if}>
|
||||
<td><b>{l s='Discounts'}</b></td>
|
||||
<td class="amount" align="right">-{displayPrice price=$order->total_discounts_tax_incl currency=$currency->id}</td>
|
||||
<td>{l s='Discounts'}</td>
|
||||
<td class="amount">-{displayPrice price=$order->total_discounts_tax_incl currency=$currency->id}</td>
|
||||
<td class="partial_refund_fields current-edit" style="display:none;"> </td>
|
||||
</tr>
|
||||
<tr id="total_wrapping" {if $order->total_wrapping_tax_incl == 0}style="display: none;"{/if}>
|
||||
<td><b>{l s='Wrapping'}</b></td>
|
||||
<td class="amount" align="right">{displayPrice price=$order->total_wrapping_tax_incl currency=$currency->id}</td>
|
||||
<td>{l s='Wrapping'}</td>
|
||||
<td class="amount">{displayPrice price=$order->total_wrapping_tax_incl currency=$currency->id}</td>
|
||||
<td class="partial_refund_fields current-edit" style="display:none;"> </td>
|
||||
</tr>
|
||||
<tr id="total_shipping">
|
||||
<td><b>{l s='Shipping'}</b></td>
|
||||
<td class="amount" align="right">{displayPrice price=$order->total_shipping_tax_incl currency=$currency->id}</td>
|
||||
<td class="partial_refund_fields current-edit" style="display:none;">{$currency->prefix}<input type="text" size="3" name="partialRefundShippingCost" value="0" />{$currency->suffix}</td>
|
||||
<td>{l s='Shipping'}</td>
|
||||
<td class="amount" >{displayPrice price=$order->total_shipping_tax_incl currency=$currency->id}</td>
|
||||
<td class="partial_refund_fields current-edit" style="display:none;">
|
||||
{$currency->prefix}
|
||||
<input type="text" size="3" name="partialRefundShippingCost" value="0" />
|
||||
{$currency->suffix}
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="font-size: 20px" id="total_order">
|
||||
<td style="font-size: 20px">{l s='Total'}</td>
|
||||
<td class="amount" style="font-size: 20px" align="right">
|
||||
<tr id="total_order">
|
||||
<td>{l s='Total'}</td>
|
||||
<td class="amount">
|
||||
{displayPrice price=$order->total_paid_tax_incl currency=$currency->id}
|
||||
</td>
|
||||
<td class="partial_refund_fields current-edit" style="display:none;"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
{if (sizeof($discounts) || $can_edit)}
|
||||
<div style="float:right; width:450px; margin-top:15px;">
|
||||
<table cellspacing="0" cellpadding="0" class="table" style="width:100%;">
|
||||
<div>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><img src="../img/admin/coupon.gif" alt="{l s='Discounts'}" />{l s='Discount name'}</th>
|
||||
<th align="center" style="width: 100px">{l s='Value'}</th>
|
||||
{if $can_edit}<th align="center" style="width: 30px">{l s='Action'}</th>{/if}
|
||||
<th>
|
||||
<span class="title_box ">
|
||||
<img src="../img/admin/coupon.gif" alt="{l s='Discounts'}" />
|
||||
{l s='Discount name'}
|
||||
</span>
|
||||
</th>
|
||||
<th><span class="title_box ">{l s='Value'}</span></th>
|
||||
{if $can_edit}<th></th>{/if}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$discounts item=discount}
|
||||
<tr>
|
||||
<td>{$discount['name']}</td>
|
||||
<td align="center">
|
||||
<td>
|
||||
{if $discount['value'] != 0.00}
|
||||
-
|
||||
{/if}
|
||||
{displayPrice price=$discount['value'] currency=$currency->id}
|
||||
</td>
|
||||
{if $can_edit}
|
||||
<td class="center">
|
||||
<a href="{$current_index}&submitDeleteVoucher&id_order_cart_rule={$discount['id_order_cart_rule']}&id_order={$order->id}&token={$smarty.get.token|escape:'htmlall':'UTF-8'}"><img src="../img/admin/delete.gif" alt="{l s='Delete voucher'}" /></a>
|
||||
<td>
|
||||
<a href="{$current_index}&submitDeleteVoucher&id_order_cart_rule={$discount['id_order_cart_rule']}&id_order={$order->id}&token={$smarty.get.token|escape:'htmlall':'UTF-8'}">
|
||||
<i class="icon-minus-sign"></i>
|
||||
{l s='Delete voucher'}
|
||||
</a>
|
||||
</td>
|
||||
{/if}
|
||||
</tr>
|
||||
{/foreach}
|
||||
{if $can_edit}
|
||||
<tr>
|
||||
<td colspan="3" class="center">
|
||||
<a class="button" href="#" id="add_voucher"><img src="../img/admin/add.gif" alt="{l s='Add'}" /> {l s='Add a new discount'}</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display: none" >
|
||||
<td colspan="3" class="current-edit" id="voucher_form">
|
||||
{include file='controllers/orders/_discount_form.tpl'}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $can_edit}
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<a class="btn btn-default" href="#" id="add_voucher">
|
||||
<i class="icon-plus-sign"></i>
|
||||
{l s='Add a new discount'}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display: none" >
|
||||
<td colspan="3" class="current-edit" id="voucher_form">
|
||||
{include file='controllers/orders/_discount_form.tpl'}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div style="clear:both; height:15px;"> </div>
|
||||
<div style="float: right; width: 160px; display: none;" class="standard_refund_fields">
|
||||
<div style="display: none;" class="standard_refund_fields">
|
||||
{if ($order->hasBeenDelivered() && Configuration::get('PS_ORDER_RETURN'))}
|
||||
<input type="checkbox" name="reinjectQuantities" class="button" /> <label for="reinjectQuantities" style="float:none; font-weight:normal;">{l s='Re-stock products'}</label><br />
|
||||
<input type="checkbox" name="reinjectQuantities" class="btn btn-default" />
|
||||
<label for="reinjectQuantities" style="float:none; font-weight:normal;">{l s='Re-stock products'}</label>
|
||||
{/if}
|
||||
{if ((!$order->hasBeenDelivered() && $order->hasBeenPaid()) || ($order->hasBeenDelivered() && Configuration::get('PS_ORDER_RETURN')))}
|
||||
<input type="checkbox" id="generateCreditSlip" name="generateCreditSlip" class="button" onclick="toggleShippingCost(this)" /> <label for="generateCreditSlip" style="float:none; font-weight:normal;">{l s='Generate a credit card slip'}</label><br />
|
||||
<input type="checkbox" id="generateDiscount" name="generateDiscount" class="button" onclick="toggleShippingCost(this)" /> <label for="generateDiscount" style="float:none; font-weight:normal;">{l s='Generate a voucher'}</label><br />
|
||||
<span id="spanShippingBack" style="display:none;"><input type="checkbox" id="shippingBack" name="shippingBack" class="button" /> <label for="shippingBack" style="float:none; font-weight:normal;">{l s='Repay shipping costs'}</label><br /></span>
|
||||
<input type="checkbox" id="generateCreditSlip" name="generateCreditSlip" class="btn btn-default" onclick="toggleShippingCost(this)" /> <label for="generateCreditSlip" style="float:none; font-weight:normal;">{l s='Generate a credit card slip'}</label><br />
|
||||
<input type="checkbox" id="generateDiscount" name="generateDiscount" class="btn btn-default" onclick="toggleShippingCost(this)" /> <label for="generateDiscount" style="float:none; font-weight:normal;">{l s='Generate a voucher'}</label><br />
|
||||
<span id="spanShippingBack" style="display:none;"><input type="checkbox" id="shippingBack" name="shippingBack" class="btn btn-default" /> <label for="shippingBack" style="float:none; font-weight:normal;">{l s='Repay shipping costs'}</label><br /></span>
|
||||
{/if}
|
||||
{if (!$order->hasBeenDelivered() || ($order->hasBeenDelivered() && Configuration::get('PS_ORDER_RETURN')))}
|
||||
<div style="text-align:center; margin-top:5px;">
|
||||
<input type="submit" name="cancelProduct" value="{if $order->hasBeenDelivered()}{l s='Return products'}{elseif $order->hasBeenPaid()}{l s='Refund products'}{else}{l s='Cancel products'}{/if}" class="button" style="margin-top:8px;" />
|
||||
<input type="submit" name="cancelProduct" value="{if $order->hasBeenDelivered()}{l s='Return products'}{elseif $order->hasBeenPaid()}{l s='Refund products'}{else}{l s='Cancel products'}{/if}" class="btn btn-default" />
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<div style="float: right; width: 160px; display:none;" class="partial_refund_fields">
|
||||
<input type="checkbox" name="reinjectQuantities" class="button" /> <label for="reinjectQuantities" style="float:none; font-weight:normal;">{l s='Re-stock products'}</label><br />
|
||||
<input type="checkbox" id="generateDiscountRefund" name="generateDiscountRefund" class="button" onclick="toggleShippingCost(this)" /> <label for="generateDiscount" style="float:none; font-weight:normal;">{l s='Generate a voucher'}</label><br />
|
||||
<input type="submit" name="partialRefund" value="{l s='Partial refund'}" class="button" style="margin-top:8px;" />
|
||||
<div style="display:none;" class="partial_refund_fields">
|
||||
<input type="checkbox" name="reinjectQuantities" class="btn btn-default" />
|
||||
<label for="reinjectQuantities">{l s='Re-stock products'}</label>
|
||||
<input type="checkbox" id="generateDiscountRefund" name="generateDiscountRefund" class="btn btn-default" onclick="toggleShippingCost(this)" />
|
||||
|
||||
<label for="generateDiscount">{l s='Generate a voucher'}</label>
|
||||
<input type="submit" name="partialRefund" value="{l s='Partial refund'}" class="btn btn-default" />
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
<div class="clear" style="height:20px;"> </div>
|
||||
|
||||
<div style="float: left">
|
||||
<div>
|
||||
<form action="{$smarty.server.REQUEST_URI}&token={$smarty.get.token}" method="post" onsubmit="if (getE('visibility').checked == true) return confirm('{l s='Do you want to send this message to the customer?'}');">
|
||||
<fieldset style="width: 400px;">
|
||||
<h3 style="cursor: pointer;" onclick="$('#message').slideToggle();$('#message_m').slideToggle();return false"><img src="../img/admin/email_edit.gif" /> {l s='New message'}</h3>
|
||||
<div id="message_m" style="display: {if Tools::getValue('message')}none{else}block{/if}; overflow: auto; width: 400px;">
|
||||
<fieldset >
|
||||
<h3 style="cursor: pointer;" onclick="$('#message').slideToggle();$('#message_m').slideToggle();return false">
|
||||
<i class="icon-envelope"></i>
|
||||
{l s='New message'}
|
||||
</h3>
|
||||
<div id="message_m" style="display: {if Tools::getValue('message')}none{else}block{/if}">
|
||||
<a href="#" onclick="$('#message').slideToggle();$('#message_m').slideToggle();return false"><b>{l s='Click here'}</b> {l s='to add a comment or send a message to the customer.'}</a>
|
||||
</div>
|
||||
<a href="{$link->getAdminLink('AdminCustomerThreads')|escape:'htmlall':'UTF-8'}"><b>{l s='Click here'}</b> {l s='to see all messages.'}</a><br>
|
||||
@@ -744,31 +802,39 @@
|
||||
{foreach from=$orderMessages item=orderMessage}
|
||||
<option value="{$orderMessage['message']|escape:'htmlall':'UTF-8'}">{$orderMessage['name']}</option>
|
||||
{/foreach}
|
||||
</select><br /><br />
|
||||
</select>
|
||||
|
||||
<b>{l s='Display to customer?'}</b>
|
||||
<input type="radio" name="visibility" id="visibility" value="0" /> {l s='Yes'}
|
||||
<input type="radio" name="visibility" value="1" checked="checked" /> {l s='No'}
|
||||
<p id="nbchars" style="display:inline;font-size:10px;color:#666;"></p><br /><br />
|
||||
<textarea id="txt_msg" name="message" cols="50" rows="8" onKeyUp="var length = document.getElementById('txt_msg').value.length; if (length > 600) length = '600+'; document.getElementById('nbchars').innerHTML = '{l s='600 characters, max.'} (' + length + ')';">{Tools::getValue('message')|escape:'htmlall':'UTF-8'}</textarea><br /><br />
|
||||
|
||||
<p id="nbchars"></p>
|
||||
|
||||
<textarea id="txt_msg" name="message" cols="50" rows="8" onKeyUp="var length = document.getElementById('txt_msg').value.length; if (length > 600) length = '600+'; document.getElementById('nbchars').innerHTML = '{l s='600 characters, max.'} (' + length + ')';">{Tools::getValue('message')|escape:'htmlall':'UTF-8'}</textarea>
|
||||
|
||||
<input type="hidden" name="id_order" value="{$order->id}" />
|
||||
<input type="hidden" name="id_customer" value="{$order->id_customer}" />
|
||||
<input type="submit" class="button" name="submitMessage" value="{l s='Send'}" />
|
||||
<input type="submit" class="btn btn-default" name="submitMessage" value="{l s='Send'}" />
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
{if (sizeof($messages))}
|
||||
<br />
|
||||
<fieldset style="width: 400px;">
|
||||
<h3><img src="../img/admin/email.gif" /> {l s='Messages'}</h3>
|
||||
<fieldset>
|
||||
<h3>
|
||||
<i class="icon-envelope-alt"></i>
|
||||
{l s='Messages'}
|
||||
</h3>
|
||||
{foreach from=$messages item=message}
|
||||
<div style="overflow:auto; width:400px;" {if $message['is_new_for_me']}class="new_message"{/if}>
|
||||
<div {if $message['is_new_for_me']}class="new_message"{/if}>
|
||||
{if ($message['is_new_for_me'])}
|
||||
<a class="new_message" title="{l s='Mark this message as \'viewed\''}" href="{$smarty.server.REQUEST_URI}&token={$smarty.get.token}&messageReaded={$message['id_message']}"><img src="../img/admin/enabled.gif" alt="" /></a>
|
||||
{/if}
|
||||
{l s='At'} <i>{dateFormat date=$message['date_add']}
|
||||
</i> {l s='from'} <b>{if ($message['elastname']|escape:'htmlall':'UTF-8')}{$message['efirstname']|escape:'htmlall':'UTF-8'} {$message['elastname']|escape:'htmlall':'UTF-8'}{else}{$message['cfirstname']|escape:'htmlall':'UTF-8'} {$message['clastname']|escape:'htmlall':'UTF-8'}{/if}</b>
|
||||
{if ($message['private'] == 1)}<span style="color:red; font-weight:bold;">{l s='Private'}</span>{/if}
|
||||
{l s='At'} <i>{dateFormat date=$message['date_add']}</i>
|
||||
{l s='from'} <b>{if ($message['elastname']|escape:'htmlall':'UTF-8')}{$message['efirstname']|escape:'htmlall':'UTF-8'} {$message['elastname']|escape:'htmlall':'UTF-8'}{else}{$message['cfirstname']|escape:'htmlall':'UTF-8'} {$message['clastname']|escape:'htmlall':'UTF-8'}{/if}</b>
|
||||
{if ($message['private'] == 1)}
|
||||
<span style="color:red; font-weight:bold;">{l s='Private'}</span>
|
||||
{/if}
|
||||
<p>{$message['message']|escape:'htmlall':'UTF-8'|nl2br}</p>
|
||||
</div>
|
||||
{/foreach}
|
||||
@@ -776,5 +842,8 @@
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<a href="{$current_index}&token={$smarty.get.token}"><img src="../img/admin/arrow2.gif" /> {l s='Back to list'}</a>
|
||||
<a class="btn btn-default" href="{$current_index}&token={$smarty.get.token}">
|
||||
<i class="icon-arrow-left"></i>
|
||||
{l s='Back to list'}
|
||||
</a>
|
||||
{/block}
|
||||
|
||||
Reference in New Issue
Block a user