{extends file="admin-layout.tpl"} {block name="page-title"}{intl l='Modules'}{/block} {block name="check-resource"}admin.configuration.search{/block} {block name="check-access"}view{/block} {block name="main-content"}
{module_include location='modules_top'}
{* customer search *}
{loop name="customer_list" type="customer" current="false" visible="*" backend_context="1" search_term=$smarty.get.search_term search_in="ref,firstname,lastname,email"} {assign "lastOrderDate" ''} {assign "lastOrderAmount" ''} {assign "lastOrderCurrency" ''} {loop type="order" name="last-order" customer=$ID order="create-date-reverse" limit="1"} {assign "lastOrderDate" "{format_date date=$CREATE_DATE}"} {assign "lastOrderAmount" "{format_number number=$TOTAL_TAXED_AMOUNT}"} {loop type="currency" name="order-currency" id=$CURRENCY} {assign "lastOrderCurrency" $SYMBOL} {/loop} {/loop} {module_include location='customer_list_row'} {/loop}
{intl l='Customer'}
{intl l="customer ref"} {intl l="company"} {intl l="firstname & lastname"} {intl l="last order"} {intl l='order amount'} {intl l="Actions"}
{$REF} {$COMPANY} {$FIRSTNAME} {$LASTNAME} {$lastOrderDate} {$lastOrderCurrency} {$lastOrderAmount}
{loop type="auth" name="can_change" role="ADMIN" resource="admin.customer" access="UPDATE"} {/loop} {loop type="auth" name="can_send_mail" role="ADMIN" resource="admin.customer" access="VIEW"} {/loop} {loop type="auth" name="can_delete" role="ADMIN" resource="admin.customer" access="DELETE"} {/loop}
{* end customer search *} {* order search *}
{loop type="order" name="order-search" backend_context=1 customer="*" search_term=$smarty.get.search_term search_in="ref,customer_ref,customer_firstname,customer_lastname,customer_email"} {loop type="order_address" name="order-invoice-address" id=$INVOICE_ADDRESS} {assign "orderInvoiceFirstName" $FIRSTNAME} {assign "orderInvoiceLastName" $LASTNAME} {assign "orderInvoiceCompany" $COMPANY} {/loop} {loop type="order-status" name="order-status" id=$STATUS} {assign "orderStatus" $TITLE} {assign "orderStatusLabel" "order_$CODE"} {/loop} {/loop}
{intl l='Orders'}
{intl l="Order n°"} {intl l="Date & Hour"} {intl l="Company"} {intl l="Name"} {intl l="Amount"} {intl l="Status"} {intl l="Actions"}
{$REF} {format_date date=$CREATE_DATE} {$orderInvoiceCompany} {$orderInvoiceFirstName|ucwords} {$orderInvoiceLastName|upper} {$TOTAL_TAXED_AMOUNT} {$orderStatus}
{loop type="auth" name="can_change" role="ADMIN" resource="admin.order" access="UPDATE"} {/loop}
{* end order search *} {* product search *}
{loop type="product" name="product-search" visible="*" search_mode="sentence" search_term=$smarty.get.search_term search_in="ref,title"} {/loop}
{intl l='Product'}
{intl l="ID"} {intl l="Reference"} {intl l="Product title"} {intl l="Actions"}
{$ID} {loop type="image" name="cat_image" source="product" source_id="$ID" limit="1" width="50" height="50" resize_mode="crop" backend_context="1"} {$TITLE} {/loop} {$REF} {$TITLE}
{loop type="auth" name="can_change" role="ADMIN" resource="admin.product" access="UPDATE"} {/loop}
{* end product search *}
{module_include location='modules_bottom'}
{/block} {block name="javascript-initialization"} {/block}