// admin create order WIP

This commit is contained in:
Kevin Granger
2013-10-23 18:54:44 +02:00
parent e1887425fa
commit 7a8cdf3913
8 changed files with 681 additions and 554 deletions
+21 -9
View File
@@ -1,5 +1,5 @@
@import url(http://fonts.googleapis.com/css?family=Josefin+Sans:200,400,700); @import url(http://fonts.googleapis.com/css?family=Josefin+Sans:200,400,700);
/* /*!
* Bootstrap v3.0.0 * Bootstrap v3.0.0
* *
* Copyright 2013 Twitter, Inc * Copyright 2013 Twitter, Inc
@@ -8,7 +8,7 @@
* *
* Designed and built with all the love in the world by @mdo and @fat. * Designed and built with all the love in the world by @mdo and @fat.
*/ */
/* normalize.css v2.1.0 | MIT License | git.io/normalize */ /*! normalize.css v2.1.0 | MIT License | git.io/normalize */
/* line 22, ../bower_components/sass-bootstrap/lib/_normalize.scss */ /* line 22, ../bower_components/sass-bootstrap/lib/_normalize.scss */
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary { article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary {
display: block; } display: block; }
@@ -5718,7 +5718,7 @@ th.visible-print, td.visible-print {
/* line 523, ../bower_components/sass-bootstrap/lib/_mixins.scss */ /* line 523, ../bower_components/sass-bootstrap/lib/_mixins.scss */
th.hidden-print, td.hidden-print { th.hidden-print, td.hidden-print {
display: none !important; } } display: none !important; } }
/* /*!
* Font Awesome 3.2.1 * Font Awesome 3.2.1
* the iconic font designed for Bootstrap * the iconic font designed for Bootstrap
* ------------------------------------------------------------------------------ * ------------------------------------------------------------------------------
@@ -7643,11 +7643,22 @@ html, body {
margin-left: 0; margin-left: 0;
width: 100%; } } width: 100%; } }
/* line 84, admin-theme.sass */ /* line 85, admin-theme.sass */
#nobootstrap { #nobootstrap {
float: left; } float: left; }
/* line 92, admin-theme.sass */ /* line 91, admin-theme.sass */
#customer_part .customerCard.selected-customer .panel, #customer_part .customerCard.selected-customer #header_notifs_icon_wrapper .notifs_panel, #header_notifs_icon_wrapper #customer_part .customerCard.selected-customer .notifs_panel, #customer_part .customerCard.selected-customer #dash_version {
color: #5cb85c;
border: solid 2px #5cb85c; }
/* line 97, admin-theme.sass */
body.display-modal #content, body.display-modal #main {
margin: 0;
padding: 0;
background: #f8f8f8; }
/* line 107, admin-theme.sass */
*:focus { *:focus {
outline: none !important; outline: none !important;
-moz-outline: none !important; -moz-outline: none !important;
@@ -8283,11 +8294,11 @@ a.link-social:hover {
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
content: "\F05A"; } content: "\F05A"; }
/* line 101, admin-theme/_admin-commons.sass */ /* line 99, admin-theme/_admin-commons.sass */
.panel .panel-footer, #header_notifs_icon_wrapper .notifs_panel .panel-footer, #dash_version .panel-footer, #header_notifs_icon_wrapper .notifs_panel .notifs_panel_footer { .panel .panel-footer, #header_notifs_icon_wrapper .notifs_panel .panel-footer, #dash_version .panel-footer, #header_notifs_icon_wrapper .notifs_panel .notifs_panel_footer {
margin: 0 -20px -20px; } margin: 15px -20px -20px; }
/* line 104, admin-theme/_admin-commons.sass */ /* line 102, admin-theme/_admin-commons.sass */
.overflow-y { .overflow-y {
height: 200px; height: 200px;
overflow-y: auto; } overflow-y: auto; }
@@ -9312,7 +9323,8 @@ textarea:focus, input[type="text"]:focus, input[type="password"]:focus, input[ty
-webkit-box-shadow: #00a4e7 0 0 0 inset; -webkit-box-shadow: #00a4e7 0 0 0 inset;
box-shadow: #00a4e7 0 0 0 inset; } } box-shadow: #00a4e7 0 0 0 inset; } }
/* Ladda /*!
* Ladda
* http://lab.hakim.se/ladda * http://lab.hakim.se/ladda
* MIT licensed * MIT licensed
* *
@@ -81,9 +81,24 @@ html, body
margin-left: 0 margin-left: 0
width: 100% width: 100%
//backward
#nobootstrap #nobootstrap
float: left float: left
//orders
#customer_part
.customerCard
&.selected-customer .panel
color: $brand-success
border: solid 2px $brand-success
//modal
body.display-modal
#content, #main
margin: 0
padding: 0
background: #F8F8F8
//todo: remove temp fix for bootstrap RC1 -> final //todo: remove temp fix for bootstrap RC1 -> final
input[type="text"],input[type="search"],input[type="password"], textarea, select input[type="text"],input[type="search"],input[type="password"], textarea, select
@extend .form-control @extend .form-control
@@ -94,12 +94,10 @@
text-decoration: inherit text-decoration: inherit
-webkit-font-smoothing: antialiased -webkit-font-smoothing: antialiased
content: "\F05A" content: "\F05A"
.panel .panel
.panel-footer .panel-footer
margin: 0 -20px -20px margin: 15px -20px -20px
.overflow-y .overflow-y
height: 200px height: 200px
@@ -1,4 +1,4 @@
<div class="row"> <div class="form-group">
<label class="control-label col-lg-3"> <label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip" <span class="label-tooltip" data-toggle="tooltip"
title="{l s='Optional: The cart rule will be available to everyone if you leave this field blank.'}"> title="{l s='Optional: The cart rule will be available to everyone if you leave this field blank.'}">
@@ -13,7 +13,7 @@
</div> </div>
</div> </div>
<div class="row"> <div class="form-group">
<label class="control-label col-lg-3"> <label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip" <span class="label-tooltip" data-toggle="tooltip"
title="{l s='The default period is one month.'}"> title="{l s='The default period is one month.'}">
@@ -38,7 +38,7 @@
</div> </div>
</div> </div>
<div class="row"> <div class="form-group">
<label class="control-label col-lg-3"> <label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip" <span class="label-tooltip" data-toggle="tooltip"
title="{l s='You can choose a minimum amount for the cart either with or without the taxes and shipping.'}"> title="{l s='You can choose a minimum amount for the cart either with or without the taxes and shipping.'}">
@@ -80,7 +80,7 @@
</div> </div>
</div> </div>
<div class="row"> <div class="form-group">
<label class="control-label col-lg-3"> <label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip" <span class="label-tooltip" data-toggle="tooltip"
title="{l s='The cart rule will be applied to the first "X" customers only.'}"> title="{l s='The cart rule will be applied to the first "X" customers only.'}">
@@ -93,7 +93,7 @@
</div> </div>
</div> </div>
<div class="row"> <div class="form-group">
<label class="control-label col-lg-3"> <label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip" <span class="label-tooltip" data-toggle="tooltip"
title="{l s='A customer will only be able to use the cart rule "X" time(s).'}"> title="{l s='A customer will only be able to use the cart rule "X" time(s).'}">
@@ -108,14 +108,14 @@
<div class="row"> <div class="form-group">
<label class="control-label col-lg-3"> <label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip" <span class="label-tooltip" data-toggle="tooltip"
title=""> title="">
{l s='Restrictions'} {l s='Restrictions'}
</span> </span>
</label> </label>
<div class="col-lg-8"> <div class="col-lg-9">
{if $countries.unselected|@count + $countries.selected|@count > 1} {if $countries.unselected|@count + $countries.selected|@count > 1}
<div class="row"> <div class="row">
<label class="checkbox"> <label class="checkbox">
@@ -124,9 +124,9 @@
</label> </label>
<span class="help-block">{l s='This restriction applies to the country of delivery.'}</span> <span class="help-block">{l s='This restriction applies to the country of delivery.'}</span>
<div id="country_restriction_div"> <div id="country_restriction_div">
<table> <table class="table">
<tr> <tr>
<td > <td>
<p>{l s='Unselected countries'}</p> <p>{l s='Unselected countries'}</p>
<select id="country_select_1" multiple> <select id="country_select_1" multiple>
{foreach from=$countries.unselected item='country'} {foreach from=$countries.unselected item='country'}
@@ -152,12 +152,14 @@
{if $carriers.unselected|@count + $carriers.selected|@count > 1} {if $carriers.unselected|@count + $carriers.selected|@count > 1}
<div class="row"> <div class="row">
<label class="checkbox"> <p class="checkbox">
<input type="checkbox" id="carrier_restriction" name="carrier_restriction" value="1" {if $carriers.unselected|@count}checked="checked"{/if} /> <label>
{l s='Carrier selection'} <input type="checkbox" id="carrier_restriction" name="carrier_restriction" value="1" {if $carriers.unselected|@count}checked="checked"{/if} />
</label> {l s='Carrier selection'}
</label>
</p>
<div id="carrier_restriction_div"> <div id="carrier_restriction_div">
<table> <table class="table">
<tr> <tr>
<td> <td>
<p>{l s='Unselected carriers'}</p> <p>{l s='Unselected carriers'}</p>
@@ -185,12 +187,14 @@
{if $groups.unselected|@count + $groups.selected|@count > 1} {if $groups.unselected|@count + $groups.selected|@count > 1}
<div class="row"> <div class="row">
<label class="checkbox"> <p class="checkbox">
<input type="checkbox" id="group_restriction" name="group_restriction" value="1" {if $groups.unselected|@count}checked="checked"{/if} /> <label>
{l s='Customer group selection'} <input type="checkbox" id="group_restriction" name="group_restriction" value="1" {if $groups.unselected|@count}checked="checked"{/if} />
</label> {l s='Customer group selection'}
</label>
</p>
<div id="group_restriction_div"> <div id="group_restriction_div">
<table> <table class="table">
<tr> <tr>
<td> <td>
<p>{l s='Unselected groups'}</p> <p>{l s='Unselected groups'}</p>
@@ -218,12 +222,14 @@
{if $cart_rules.unselected|@count + $cart_rules.selected|@count > 0} {if $cart_rules.unselected|@count + $cart_rules.selected|@count > 0}
<div class="row"> <div class="row">
<label class="checkbox"> <p class="checkbox">
<input type="checkbox" id="cart_rule_restriction" name="cart_rule_restriction" value="1" {if $cart_rules.unselected|@count}checked="checked"{/if} /> <label>
{l s='Compatibility with other cart rules'} <input type="checkbox" id="cart_rule_restriction" name="cart_rule_restriction" value="1" {if $cart_rules.unselected|@count}checked="checked"{/if} />
</label> {l s='Compatibility with other cart rules'}
</label>
</p>
<div id="cart_rule_restriction_div" > <div id="cart_rule_restriction_div" >
<table class="col-lg-12"> <table class="table">
<tr> <tr>
<td> <td>
<p>{l s='Uncombinable cart rules'}</p> <p>{l s='Uncombinable cart rules'}</p>
@@ -250,12 +256,14 @@
{/if} {/if}
<div class="row"> <div class="row">
<label class="checkbox"> <p class="checkbox">
<input type="checkbox" id="product_restriction" name="product_restriction" value="1" {if $product_rule_groups|@count}checked="checked"{/if} /> <label>
{l s='Product selection'} <input type="checkbox" id="product_restriction" name="product_restriction" value="1" {if $product_rule_groups|@count}checked="checked"{/if} />
</label> {l s='Product selection'}
</label>
</p>
<div id="product_restriction_div"> <div id="product_restriction_div">
<table id="product_rule_group_table" cellpadding="0" cellspacing="0"> <table id="product_rule_group_table" class="table">
{foreach from=$product_rule_groups item='product_rule_group'} {foreach from=$product_rule_groups item='product_rule_group'}
{$product_rule_group} {$product_rule_group}
{/foreach} {/foreach}
@@ -268,13 +276,15 @@
{if $shops.unselected|@count + $shops.selected|@count > 1} {if $shops.unselected|@count + $shops.selected|@count > 1}
<div class="row"> <div class="row">
<label class="checkbox"> <p class="checkbox">
<input type="checkbox" id="shop_restriction" name="shop_restriction" value="1" {if $shops.unselected|@count}checked="checked"{/if} /> <label>
{l s='Shop selection'} <input type="checkbox" id="shop_restriction" name="shop_restriction" value="1" {if $shops.unselected|@count}checked="checked"{/if} />
</label> {l s='Shop selection'}
</label>
</p>
<div id="shop_restriction_div"> <div id="shop_restriction_div">
<br/> <br/>
<table class="col-lg-9"> <table class="table">
<tr> <tr>
<td> <td>
<p>{l s='Unselected shops'}</p> <p>{l s='Unselected shops'}</p>
@@ -33,8 +33,8 @@
var currencies = new Array(); var currencies = new Array();
var id_currency = ''; var id_currency = '';
var id_lang = ''; var id_lang = '';
var txt_show_carts = '{l s='Show carts and orders for this customer.' js=1}'; //var txt_show_carts = '{l s='Show carts and orders for this customer.' js=1}';
var txt_hide_carts = '{l s='Hide carts and orders for this customer.' js=1}'; //var txt_hide_carts = '{l s='Hide carts and orders for this customer.' js=1}';
var defaults_order_state = new Array(); var defaults_order_state = new Array();
var customization_errors = false; var customization_errors = false;
var pic_dir = '{$pic_dir}'; var pic_dir = '{$pic_dir}';
@@ -88,12 +88,12 @@
$('#show_old_carts').click(function() { $('#show_old_carts').click(function() {
if ($('#old_carts_orders:visible').length == 0) if ($('#old_carts_orders:visible').length == 0)
{ {
$(this).html(txt_hide_carts); //$(this).html(txt_hide_carts);
$('#old_carts_orders').slideDown('slow'); $('#old_carts_orders').slideDown('slow');
} }
else else
{ {
$(this).html(txt_show_carts); //$(this).html(txt_show_carts);
$('#old_carts_orders').slideUp('slow'); $('#old_carts_orders').slideUp('slow');
} }
return false; return false;
@@ -102,7 +102,7 @@
sendMailToCustomer(); sendMailToCustomer();
return false; return false;
}); });
$('#show_old_carts').click(); //$('#show_old_carts').click();
$('#payment_module_name').change(); $('#payment_module_name').change();
$.ajaxSetup({ type:"post" }); $.ajaxSetup({ type:"post" });
$("#voucher").autocomplete('{$link->getAdminLink('AdminCartRules')|addslashes}', { $("#voucher").autocomplete('{$link->getAdminLink('AdminCartRules')|addslashes}', {
@@ -241,14 +241,36 @@
}); });
}); });
resetBind(); resetBind();
$('#products_found').hide();
$('#carts').hide();
$('#customer_part').on('click','button.setup-customer',function(e){
e.preventDefault();
setupCustomer($(this).data('customer'));
$(this).removeClass('setup-customer').addClass('change-customer').html('<i class="icon-refresh"></i>&nbsp;{l s="Change"}').blur();
$(this).closest('.customerCard').addClass('selected-customer');
$('.selected-customer .panel-heading').prepend('<i class="icon-ok text-success"></i>');
$('.customerCard').not('.selected-customer').remove();
$('#search-customer-form-group').hide();
});
$('#customer_part').on('click','button.change-customer',function(e){
e.preventDefault();
$('#search-customer-form-group').show();
$(this).blur();
});
}); });
function resetBind() function resetBind()
{ {
$('.fancybox').fancybox({ $('.fancybox').fancybox({
'type': 'iframe', 'type': 'iframe',
'width': '60%', 'width': '90%',
'height': '100%' 'height': '90%'
}); });
/*$("#new_address").fancybox({ /*$("#new_address").fancybox({
onClosed: useCart(id_cart) onClosed: useCart(id_cart)
@@ -444,24 +466,34 @@
{ {
if(res.found) if(res.found)
{ {
var html = '<ul class="nav">'; var html = '';
$.each(res.customers, function() { $.each(res.customers, function() {
html += '<li class="customerCard"><div class="customerName"><a class="fancybox" href="{$link->getAdminLink('AdminCustomers')}&id_customer='+this.id_customer+'&viewcustomer&liteDisplaying=1">'+this.firstname+' '+this.lastname+'</a><span class="customerBirthday"> '+((this.birthday != '0000-00-00') ? this.birthday : '')+'</span></div>'; html += '<div class="customerCard col-lg-4">';
html += '<div class="customerEmail"><a href="mailto:'+this.email+'">'+this.email+'</div>'; html += '<div class="panel">';
html += '<div class="col-lg-3"><a onclick="setupCustomer('+ this.id_customer+');return false;" href="#" class="id_customer btn btn-default">{l s='Choose'}</a></div></li>'; html += '<div class="panel-heading">'+this.firstname+' '+this.lastname;
html += '<span class="pull-right">#'+this.id_customer+'</span></div>';
html += '<span>'+this.email+'</span><br/>';
html += '<span class="text-muted">'+((this.birthday != '0000-00-00') ? this.birthday : '')+'</span><br/>';
html += '<div class="panel-footer">';
html += '<a href="{$link->getAdminLink('AdminCustomers')}&id_customer='+this.id_customer+'&viewcustomer&liteDisplaying=1" class="btn btn-default fancybox"><i class="icon-search"></i> {l s='Details'}</a>';
html += '<button type="button" data-customer="'+this.id_customer+'" class="setup-customer btn btn-default pull-right"><i class="icon-ok"></i> {l s='Choose'}</button>';
html += '</div>';
html += '</div>';
html += '</div>';
}); });
html += '</ul>';
} }
else else
html = '<div class="alert alert-warning">{l s='No customers found'}</div>'; html = '<div class="alert alert-warning"><i class="icon-warning-sign"></i>&nbsp;{l s='No customers found'}</div>';
$('#customers').html(html); $('#customers').html(html);
resetBind(); resetBind();
} }
}); });
} }
function setupCustomer(idCustomer) function setupCustomer(idCustomer)
{ {
$('#carts').show();
$('#products_part').show(); $('#products_part').show();
$('#vouchers_part').show(); $('#vouchers_part').show();
$('#address_part').show(); $('#address_part').show();
@@ -491,14 +523,25 @@
var html_carts = ''; var html_carts = '';
var html_orders = ''; var html_orders = '';
$.each(res.carts, function() { $.each(res.carts, function() {
html_carts += '<tr><td>'+this.id_cart+'</td><td>'+this.date_add+'</td><td>'+this.total_price+'</td>'; html_carts += '<tr>';
html_carts += '<td><a title="{l s='View this cart'}" class="fancybox" href="index.php?tab=AdminCarts&id_cart='+this.id_cart+'&viewcart&token={getAdminToken tab='AdminCarts'}&liteDisplaying=1#"><img src="../img/admin/details.gif" /></a>'; html_carts += '<td>'+this.id_cart+'</td>';
html_carts += '<a href="#" title="{l s='Use this cart'}" class="use_cart" rel="'+this.id_cart+'"><img src="../img/admin/duplicate.png" /></a></td></tr>'; html_carts += '<td>'+this.date_add+'</td>';
html_carts += '<td>'+this.total_price+'</td>';
html_carts += '<td>';
html_carts += '<a title="{l s='View this cart'}" class="fancybox btn btn-default" href="index.php?tab=AdminCarts&id_cart='+this.id_cart+'&viewcart&token={getAdminToken tab='AdminCarts'}&liteDisplaying=1#"><i class="icon-search"></i></a>';
html_carts += '&nbsp;<a href="#" title="{l s='Use this cart'}" class="use_cart btn btn-default" rel="'+this.id_cart+'"><i class="icon-copy"></i></a>';
html_carts += '</td>';
html_carts += '</tr>';
}); });
$.each(res.orders, function() { $.each(res.orders, function() {
html_orders += '<tr><td>'+this.id_order+'</td><td>'+this.date_add+'</td><td>'+(this.nb_products ? this.nb_products : '0')+'</td><td>'+this.total_paid_real+'</span></td><td>'+this.payment+'</td><td>'+this.order_state+'</td>'; html_orders += '<tr>';
html_orders += '<td><a title="{l s='View this order'}" class="fancybox" href="{$link->getAdminLink('AdminOrders')}&id_order='+this.id_order+'&vieworder&liteDisplaying=1#"><img src="../img/admin/details.gif" /></a>'; html_orders += '<td>'+this.id_order+'</td><td>'+this.date_add+'</td><td>'+(this.nb_products ? this.nb_products : '0')+'</td><td>'+this.total_paid_real+'</span></td><td>'+this.payment+'</td><td>'+this.order_state+'</td>';
html_orders += '<a href="#" "title="{l s='Duplicate this order'}" class="duplicate_order" rel="'+this.id_order+'"><img src="../img/admin/duplicate.png" /></a></td></tr>'; html_orders += '<td>';
html_orders += '<a href="{$link->getAdminLink('AdminOrders')}&id_order='+this.id_order+'&vieworder&liteDisplaying=1#" title="{l s='View this order'}" class="fancybox btn btn-default"><i class="icon-search"></i></a>';
html_orders += '&nbsp;<a href="#" "title="{l s='Duplicate this order'}" class="duplicate_order btn btn-default" rel="'+this.id_order+'"><i class="icon-copy"></i></a>';
html_orders += '</td>';
html_orders += '</tr>';
}); });
$('#nonOrderedCarts table tbody').html(html_carts); $('#nonOrderedCarts table tbody').html(html_carts);
$('#lastOrders table tbody').html(html_orders); $('#lastOrders table tbody').html(html_orders);
@@ -573,22 +616,22 @@
stock[id_product] = new Array(); stock[id_product] = new Array();
if (this.customizable == '1') if (this.customizable == '1')
{ {
customization_html += '<div class="panel width3"><h3>{l s='Customization'}</h3><form id="customization_'+id_product+'" class="id_customization" method="post" enctype="multipart/form-data" action="'+admin_cart_link+'" style="display:none;">'; customization_html += '<div class="panel"><h3>{l s='Customization'}</h3><form id="customization_'+id_product+'" class="id_customization" method="post" enctype="multipart/form-data" action="'+admin_cart_link+'" style="display:none;">';
customization_html += '<input type="hidden" name="id_product" value="'+id_product+'" />'; customization_html += '<input type="hidden" name="id_product" value="'+id_product+'" />';
customization_html += '<input type="hidden" name="id_cart" value="'+id_cart+'" />'; customization_html += '<input type="hidden" name="id_cart" value="'+id_cart+'" />';
customization_html += '<input type="hidden" name="action" value="updateCustomizationFields" />'; customization_html += '<input type="hidden" name="action" value="updateCustomizationFields" />';
customization_html += '<input type="hidden" name="id_customer" value="'+id_customer+'" />'; customization_html += '<input type="hidden" name="id_customer" value="'+id_customer+'" />';
customization_html += '<input type="hidden" name="ajax" value="1" />'; customization_html += '<input type="hidden" name="ajax" value="1" />';
$.each(this.customization_fields, function() { $.each(this.customization_fields, function() {
customization_html += '<p><label for="customization_'+id_product+'_'+this.id_customization_field+'">'; class_customization_field = "";
if (this.required == 1) if (this.required == 1){ class_customization_field = 'required' };
customization_html += '<sup>*</sup>'; customization_html += '<div class="form-group"><label class="control-label col-lg-3 ' + class_customization_field + '" for="customization_'+id_product+'_'+this.id_customization_field+'">';
customization_html += this.name+'{l s=':'}</label>'; customization_html += this.name+'{l s=':'}</label><div class="col-lg-9">';
if (this.type == 0) if (this.type == 0)
customization_html += '<input class="customization_field" type="file" name="customization_'+id_product+'_'+this.id_customization_field+'" id="customization_'+id_product+'_'+this.id_customization_field+'">'; customization_html += '<input class="form-control customization_field" type="file" name="customization_'+id_product+'_'+this.id_customization_field+'" id="customization_'+id_product+'_'+this.id_customization_field+'">';
else if (this.type == 1) else if (this.type == 1)
customization_html += '<input class="customization_field" type="text" name="customization_'+id_product+'_'+this.id_customization_field+'" id="customization_'+id_product+'_'+this.id_customization_field+'">'; customization_html += '<input class="form-control customization_field" type="text" name="customization_'+id_product+'_'+this.id_customization_field+'" id="customization_'+id_product+'_'+this.id_customization_field+'">';
customization_html += '</p>'; customization_html += '</div></div>';
}); });
customization_html += '</div></form>'; customization_html += '</div></form>';
} }
@@ -657,9 +700,9 @@
var id_product_attribute = Number(this.id_product_attribute); var id_product_attribute = Number(this.id_product_attribute);
cart_quantity[Number(this.id_product)+'_'+Number(this.id_product_attribute)+'_'+Number(this.id_customization)] = this.cart_quantity; cart_quantity[Number(this.id_product)+'_'+Number(this.id_product_attribute)+'_'+Number(this.id_customization)] = this.cart_quantity;
cart_content += '<tr><td><img src="'+this.image_link+'" title="'+this.name+'" /></td><td>'+this.name+'<br />'+this.attributes_small+'</td><td>'+this.reference+'</td><td><input type="text" size="7" rel="'+this.id_product+'_'+this.id_product_attribute+'" class="product_unit_price" value="' + formatCurrency(parseFloat(this.price.replace(',', '.')), currency_format, currency_sign, currency_blank) + '" /></td><td>'; cart_content += '<tr><td><img src="'+this.image_link+'" title="'+this.name+'" /></td><td>'+this.name+'<br />'+this.attributes_small+'</td><td>'+this.reference+'</td><td><input type="text" size="7" rel="'+this.id_product+'_'+this.id_product_attribute+'" class="product_unit_price" value="' + formatCurrency(parseFloat(this.price.replace(',', '.')), currency_format, currency_sign, currency_blank) + '" /></td><td>';
cart_content += (!this.id_customization ? '<div style="float:left;"><a href="#" class="increaseqty_product" rel="'+this.id_product+'_'+this.id_product_attribute+'_'+(this.id_customization ? this.id_customization : 0)+'" ><img src="../img/admin/up.gif" /></a><br /><a href="#" class="decreaseqty_product" rel="'+this.id_product+'_'+this.id_product_attribute+'_'+(this.id_customization ? this.id_customization : 0)+'"><img src="../img/admin/down.gif" /></a></div>' : ''); cart_content += (!this.id_customization ? '<div style="float:left;"><a href="#" class="increaseqty_product" rel="'+this.id_product+'_'+this.id_product_attribute+'_'+(this.id_customization ? this.id_customization : 0)+'" ><i class="icon-caret-up"></i></a><br /><a href="#" class="decreaseqty_product" rel="'+this.id_product+'_'+this.id_product_attribute+'_'+(this.id_customization ? this.id_customization : 0)+'"><i class="icon-caret-down"></i></a></div>' : '');
cart_content += (!this.id_customization ? '<div style="float:left;"><input type="text" rel="'+this.id_product+'_'+this.id_product_attribute+'_'+(this.id_customization ? this.id_customization : 0)+'" class="cart_quantity" size="2" value="'+this.cart_quantity+'" />' : ''); cart_content += (!this.id_customization ? '<div style="float:left;"><input type="text" rel="'+this.id_product+'_'+this.id_product_attribute+'_'+(this.id_customization ? this.id_customization : 0)+'" class="cart_quantity" size="2" value="'+this.cart_quantity+'" />' : '');
cart_content += (!this.id_customization ? '<a href="#" class="delete_product" rel="delete_'+this.id_product+'_'+this.id_product_attribute+'_'+(this.id_customization ? this.id_customization : 0)+'" ><img src="../img/admin/delete.gif" /></a></div>' : ''); cart_content += (!this.id_customization ? '<a href="#" class="delete_product btn btn-default" rel="delete_'+this.id_product+'_'+this.id_product_attribute+'_'+(this.id_customization ? this.id_customization : 0)+'" ><i class="icon-remove text-danger"></i></a></div>' : '');
cart_content += '</td><td>' + formatCurrency(parseFloat(this.total.replace(',', '.')), currency_format, currency_sign, currency_blank) + '</td></tr>'; cart_content += '</td><td>' + formatCurrency(parseFloat(this.total.replace(',', '.')), currency_format, currency_sign, currency_blank) + '</td></tr>';
if (this.id_customization && this.id_customization != 0) if (this.id_customization && this.id_customization != 0)
@@ -681,9 +724,9 @@
}); });
} }
cart_content += '<tr><td></td><td>'+customized_desc+'</td><td></td><td></td><td>'; cart_content += '<tr><td></td><td>'+customized_desc+'</td><td></td><td></td><td>';
cart_content += '<div style="float:left;"><a href="#" class="increaseqty_product" rel="'+id_product+'_'+id_product_attribute+'_'+id_customization+'" ><img src="../img/admin/up.gif" /></a><br /><a href="#" class="decreaseqty_product" rel="'+id_product+'_'+id_product_attribute+'_'+id_customization+'"><img src="../img/admin/down.gif" /></a></div>'; cart_content += '<div style="float:left;"><a href="#" class="increaseqty_product" rel="'+id_product+'_'+id_product_attribute+'_'+id_customization+'" ><i class="icon-caret-up"></i></a><br /><a href="#" class="decreaseqty_product" rel="'+id_product+'_'+id_product_attribute+'_'+id_customization+'"><i class="icon-caret-down"></i></a></div>';
cart_content += '<div style="float:left;"><input type="text" rel="'+id_product+'_'+id_product_attribute+'_'+id_customization +'" class="cart_quantity" size="2" value="'+this.quantity+'" />'; cart_content += '<div style="float:left;"><input type="text" rel="'+id_product+'_'+id_product_attribute+'_'+id_customization +'" class="cart_quantity" size="2" value="'+this.quantity+'" />';
cart_content += '<a href="#" class="delete_product" rel="delete_'+id_product+'_'+id_product_attribute+'_'+id_customization+'" ><img src="../img/admin/delete.gif" /></a>'; cart_content += '<a href="#" class="delete_product btn btn-default" rel="delete_'+id_product+'_'+id_product_attribute+'_'+id_customization+'" ><i class="icon-remove"></i></a>';
cart_content += '</div></td><td></td></tr>'; cart_content += '</div></td><td></td></tr>';
}); });
} }
@@ -701,7 +744,7 @@
var vouchers_html = ''; var vouchers_html = '';
if (typeof(vouchers) == 'object') if (typeof(vouchers) == 'object')
$.each(vouchers, function(){ $.each(vouchers, function(){
vouchers_html += '<tr><td>'+this.name+'</td><td>'+this.description+'</td><td>'+this.value_real+'</td><td><a href="#" class="delete_discount" rel="'+this.id_discount+'"><img src="../img/admin/delete.gif" /></a></td></tr>'; vouchers_html += '<tr><td>'+this.name+'</td><td>'+this.description+'</td><td>'+this.value_real+'</td><td><a href="#" class="btn btn-default delete_discount" rel="'+this.id_discount+'"><i class="icon-remove"></i></a> {l s='Delete'}</td></tr>';
}); });
$('#voucher_list tbody').html($.trim(vouchers_html)); $('#voucher_list tbody').html($.trim(vouchers_html));
if ($('#voucher_list tbody').html().length == 0) if ($('#voucher_list tbody').html().length == 0)
@@ -1012,234 +1055,248 @@
<i class="icon-user"></i> <i class="icon-user"></i>
{l s='Customer'} {l s='Customer'}
</h3> </h3>
<div class="row">
<div class="col-lg-12"> <div id="search-customer-form-group" class="form-group">
<a class="fancybox btn btn-default" href="{$link->getAdminLink('AdminCustomers')|escape:'htmlall':'UTF-8'}&addcustomer&liteDisplaying=1&submitFormAjax=1#">
<i class="icon-plus-sign-alt"></i>
{l s='Add new customer'}
</a>
</div>
<label class="control-label col-lg-3"> <label class="control-label col-lg-3">
<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Search a customer by typping the first letters of his/her name'}"> <span title="" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Search a customer by typping the first letters of his/her name'}">
{l s='Search customers'} {l s='Search customers'}
</span> </span>
</label> </label>
<div class="col-lg-6"> <div class="col-lg-9">
<input type="text" id="customer" value="" /> <div class="row">
<div class="col-lg-6">
<div class="input-group">
<input type="text" id="customer" value="" />
<span class="input-group-addon">
<i class="icon-search"></i>
</span>
</div>
</div>
<div class="col-lg-6">
<span class="form-control-static">{l s='Or'}&nbsp;</span>
<a class="fancybox btn btn-default" href="{$link->getAdminLink('AdminCustomers')|escape:'htmlall':'UTF-8'}&addcustomer&liteDisplaying=1&submitFormAjax=1#">
<i class="icon-plus-sign-alt"></i>
{l s='Add new customer'}
</a>
</div>
</div>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div id="customers" class="col-lg-9 pull-right"></div> <div id="customers"></div>
</div>
<div id="carts">
<!-- <a href="#" id="show_old_carts" class="btn btn-default"><i class="icon-carret-down"></i>&nbsp;{l s='Carts and Orders'}</a> -->
<ul id="old_carts_orders_navtab" class="nav nav-tabs">
<li class="active">
<a href="#nonOrderedCarts" data-toggle="tab">
<i class="icon-shopping-cart"></i>
{l s='Carts'}
</a>
</li>
<li>
<a href="#lastOrders" data-toggle="tab">
<i class="icon-credit-card"></i>
{l s='Orders'}
</a>
</li>
</ul>
<div id="old_carts_orders" class="tab-content panel">
<div id="nonOrderedCarts" class="tab-pane active">
<table class="table">
<thead>
<tr>
<th><span class="title_box">{l s='ID'}</span></th>
<th><span class="title_box">{l s='Date'}</span></th>
<th><span class="title_box">{l s='Total'}</span></th>
<th></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div id="lastOrders" class="tab-pane">
<table class="table">
<thead>
<tr>
<th><span class="title_box">{l s='ID'}</span></th>
<th><span class="title_box">{l s='Date'}</span></th>
<th><span class="title_box">{l s='Products:'}</span></th>
<th><span class="title_box">{l s='Total paid'}</span></th>
<th><span class="title_box">{l s='Payment: '}</span></th>
<th><span class="title_box">{l s='Status'}</span></th>
<th></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div> </div>
</div> </div>
</form> </form>
<form class="form-horizontal" action="{$link->getAdminLink('AdminOrders')|escape:'htmlall':'UTF-8'}&submitAdd{$table}=1" method="post" autocomplete="off"> <form class="form-horizontal" action="{$link->getAdminLink('AdminOrders')|escape:'htmlall':'UTF-8'}&submitAdd{$table}=1" method="post" autocomplete="off">
<div class="panel" id="products_part" style="display:none;"> <div class="panel" id="products_part" style="display:none;">
<h3> <h3>
<i class="icon-folder-close"></i> <i class="icon-shopping-cart"></i>
{l s='Cart'} {l s='Cart'}
</h3> </h3>
<div class="row"> <div class="form-group">
<label class="control-label col-lg-3"> <label class="control-label col-lg-3">
<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Search a product by typping the first letters of his/her name.'}"> <span title="" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Search a product by typping the first letters of his/her name.'}">
{l s='Search for a product'} {l s='Search for a product'}
</span> </span>
</label> </label>
<div class="col-lg-6"> <div class="col-lg-9">
<input type="hidden" value="" id="id_cart" name="id_cart" /> <input type="hidden" value="" id="id_cart" name="id_cart" />
<input type="text" id="product" value="" /> <div class="input-group">
<input type="text" id="product" value="" />
<span class="input-group-addon">
<i class="icon-search"></i>
</span>
</div>
</div> </div>
</div> </div>
<div class="row">
<div id="products_found" class="col-lg-12"> <div id="products_found">
<div class="row"> <hr/>
<div id="product_list" class="col-lg-12"></div> <div id="product_list" class="form-group"></div>
<div id="attributes_list" class="form-group"></div>
<!-- TODO - please be kind : refacto -->
<div class="form-group">
<div class="col-lg-9 col-lg-offset-3">
<iframe id="customization_list" seamless>
<html>
<head>
{if isset($css_files_orders)}
{foreach from=$css_files_orders key=css_uri item=media}
<link href="{$css_uri}" rel="stylesheet" type="text/css" media="{$media}" />
{/foreach}
{/if}
</head>
<body>
</body>
</html>
</iframe>
</div> </div>
<div class="row"> </div>
<div id="attributes_list" class="col-lg-12"></div> <div class="form-group">
<label class="control-label col-lg-3" for="qty">{l s='Quantity:'}</label>
<div class="col-lg-9">
<input type="text" name="qty" id="qty" class="form-control fixed-width-sm" value="1" />
<p class="help-block">{l s='In stock:'} <span id="qty_in_stock"></span></p>
</div> </div>
<iframe id="customization_list" style="border:0px;overflow:hidden;width:100%"> </div>
<html>
<head> <div class="form-group">
{if isset($css_files_orders)} <div class="col-lg-9 col-lg-offset-3">
{foreach from=$css_files_orders key=css_uri item=media} <input type="submit" onclick="addProduct();return false;" class="btn btn-default" id="submitAddProduct" value="{l s='Add to cart'}"/>
<link href="{$css_uri}" rel="stylesheet" type="text/css" media="{$media}" />
{/foreach}
{/if}
</head>
<body>
</body>
</html>
</iframe>
<div class="row">
<div class="col-lg-12">
<label class="control-label col-lg-3" for="qty">
{l s='Quantity:'}
</label>
<div class="col-lg-6">
<input type="text" name="qty" id="qty" value="1" />
</div>
</div>
</div> </div>
<div class="row">
<div class="col-lg-12">
<label class="control-label col-lg-3">
{l s='In stock:'}
<span id="qty_in_stock"></span>
</label>
</div>
</div>
<input type="submit" onclick="addProduct();return false;" class="btn btn-default" id="submitAddProduct" value="{l s='Add to cart'}"/></p>
</div> </div>
</div> </div>
<div id="products_err" class="alert alert-warning" style="display:none;"></div> <div id="products_err" class="alert alert-warning" style="display:none;"></div>
<hr/>
<div class="row"> <div class="row">
<div class="col-lg-12"> <div class="col-lg-12">
<table class="table" id="customer_cart"> <table class="table" id="customer_cart">
<colgroup>
<col width="50">
<col width="">
<col width="90">
<col width="100">
<col width="50">
<col width="50">
</colgroup>
<thead> <thead>
<tr> <tr>
<th height="39">{l s='Product'}</th> <th><span class="title_box">{l s='Product'}</span></th>
<th>{l s='Description'}</th> <th><span class="title_box">{l s='Description'}</span></th>
<th>{l s='Ref'}</th> <th><span class="title_box">{l s='Ref'}</span></th>
<th>{l s='Unit price'}</th> <th><span class="title_box">{l s='Unit price'}</span></th>
<th width="80">{l s='Qty'}</th> <th><span class="title_box">{l s='Qty'}</span></th>
<th width="80">{l s='Price'}</th> <th><span class="title_box">{l s='Price'}</span></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
</tbody> </tbody>
</table> </table>
<p class="alert alert-warning">{l s='The prices are without taxes.'}</p>
</div> </div>
</div> </div>
<div class="row">
<div class="col-lg-12"> <div class="form-group">
<label class="control-label col-lg-3" for="id_currency"> <div class="col-lg-9 col-lg-offset-3">
{l s='Currency'} <div class="alert alert-warning">{l s='The prices are without taxes.'}</div>
</label> </div>
<script type="text/javascript"> </div>
<div class="form-group">
<label class="control-label col-lg-3" for="id_currency">
{l s='Currency'}
</label>
<script type="text/javascript">
{foreach from=$currencies item='currency'}
currencies['{$currency.id_currency}'] = '{$currency.sign}';
{/foreach}
</script>
<div class="col-lg-9">
<select id="id_currency" name="id_currency">
{foreach from=$currencies item='currency'} {foreach from=$currencies item='currency'}
currencies['{$currency.id_currency}'] = '{$currency.sign}'; <option rel="{$currency.iso_code}" value="{$currency.id_currency}">{$currency.name}</option>
{/foreach} {/foreach}
</script> </select>
<div class="col-lg-6">
<select id="id_currency" name="id_currency">
{foreach from=$currencies item='currency'}
<option rel="{$currency.iso_code}" value="{$currency.id_currency}">{$currency.name}</option>
{/foreach}
</select>
</div>
</div>
<div class="col-lg-12">
<label class="control-label col-lg-3" for="id_lang">
{l s='Language'}
</label>
<div class="col-lg-6">
<select id="id_lang" name="id_lang">
{foreach from=$langs item='lang'}
<option value="{$lang.id_lang}">{$lang.name}</option>
{/foreach}
</select>
</div>
</div> </div>
</div> </div>
<div class="row"> <div class="form-group">
<div id="carts" class="col-lg-12"> <label class="control-label col-lg-3" for="id_lang">
<a href="#" id="show_old_carts" class="btn btn-default"></a> {l s='Language'}
<div id="old_carts_orders"> </label>
<div id="nonOrderedCarts" class="col-lg-6"> <div class="col-lg-9">
<h4> <select id="id_lang" name="id_lang">
<i class="icon-folder-close"></i> {foreach from=$langs item='lang'}
{l s='Carts'} <option value="{$lang.id_lang}">{$lang.name}</option>
</h4> {/foreach}
<table cellspacing="0" cellpadding="0" class="table width5"> </select>
<colgroup>
<col width="10">
<col width="200">
<col width="70">
<col width="50">
</colgroup>
<thead>
<tr>
<th height="39">{l s='ID'}</th>
<th>{l s='Date'}</th>
<th>{l s='Total'}</th>
<th>{l s='Action'}</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div id="lastOrders" class="col-lg-6">
<h4>
<i class="icon-align-justify"></i>
{l s='Orders'}
</h4>
<table class="table">
<colgroup>
<col width="10">
<col width="200">
<col width="">
<col width="100">
<col width="100">
<col width="200">
<col width="50">
</colgroup>
<thead>
<tr>
<th height="39">{l s='ID'}</th>
<th>{l s='Date'}</th>
<th>{l s='Products:'}</th>
<th>{l s='Total paid'}</th>
<th>{l s='Payment: '}</th>
<th>{l s='Status'}</th>
<th>{l s='Action'}</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
<div class="panel" id="vouchers_part" style="display:none;"> <div class="panel" id="vouchers_part" style="display:none;">
<h3> <h3>
<i class="icon-table"></i> <i class="icon-ticket"></i>
{l s='Vouchers'} {l s='Vouchers'}
</h3> </h3>
<div class="row"> <div class="form-group">
<div class="col-lg-12">
<a class="fancybox btn btn-default" href="{$link->getAdminLink('AdminCartRules')|escape:'htmlall':'UTF-8'}&addcart_rule&liteDisplaying=1&submitFormAjax=1#">
<i class="icon-plus-sign-alt"></i>
{l s='Add new voucher'}
</a>
</div>
<label class="control-label col-lg-3"> <label class="control-label col-lg-3">
{l s='Search for a voucher:'} {l s='Search for a voucher:'}
</label> </label>
<div class="col-lg-6"> <div class="col-lg-9">
<input type="text" id="voucher" value="" /> <div class="row">
<div class="col-lg-6">
<div class="input-group">
<input type="text" id="voucher" value="" />
<div class="input-group-addon">
<i class="icon-search"></i>
</div>
</div>
</div>
<div class="col-lg-6">
<span class="form-control-static">{l s='Or'}&nbsp;</span>
<a class="fancybox btn btn-default" href="{$link->getAdminLink('AdminCartRules')|escape:'htmlall':'UTF-8'}&addcart_rule&liteDisplaying=1&submitFormAjax=1#">
<i class="icon-plus-sign-alt"></i>
{l s='Add new voucher'}
</a>
</div>
</div>
</div> </div>
</div> </div>
<div class="margin-form"> <div class="row">
<table cellspacing="0" cellpadding="0" class="table" id="voucher_list"> <table class="table" id="voucher_list">
<thead> <thead>
<tr> <tr>
<th class="left">{l s='Name'}</th> <th><span class="title_box">{l s='Name'}</span></th>
<th class="left">{l s='Description'}</th> <th><span class="title_box">{l s='Description'}</span></th>
<th class="left">{l s='Value'}</th> <th><span class="title_box">{l s='Value'}</span></th>
<th class="left">{l s='Action'}</th> <th></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@@ -1248,6 +1305,7 @@
</div> </div>
<div id="vouchers_err" class="alert alert-warning" style="display:none;"></div> <div id="vouchers_err" class="alert alert-warning" style="display:none;"></div>
</div> </div>
<div class="panel" id="address_part" style="display:none;"> <div class="panel" id="address_part" style="display:none;">
<h3> <h3>
<i class="icon-envelope"></i> <i class="icon-envelope"></i>
@@ -1256,20 +1314,14 @@
<div id="addresses_err" class="alert alert-warning" style="display:none;"></div> <div id="addresses_err" class="alert alert-warning" style="display:none;"></div>
<div class="row"> <div class="row">
<div class="col-lg-12">
<a class="fancybox btn btn-default" id="new_address" href="{$link->getAdminLink('AdminAddresses')|escape:'htmlall':'UTF-8'}&addaddress&id_customer=42&liteDisplaying=1&submitFormAjax=1#">
<i class="icon-plus-sign-alt"></i>
{l s='Add a new address'}
</a>
</div>
<div id="address_delivery" class="col-lg-6"> <div id="address_delivery" class="col-lg-6">
<h4> <h4>
<i class="icon-truck"></i> <i class="icon-truck"></i>
{l s='Delivery'} {l s='Delivery'}
</h4> </h4>
<select id="id_address_delivery" name="id_address_delivery"> <select id="id_address_delivery" name="id_address_delivery"></select>
</select> <div class="well">
<div id="address_delivery_detail"> <div id="address_delivery_detail"></div>
</div> </div>
</div> </div>
<div id="address_invoice" class="col-lg-6"> <div id="address_invoice" class="col-lg-6">
@@ -1277,12 +1329,20 @@
<i class="icon-file-text"></i> <i class="icon-file-text"></i>
{l s='Invoice'} {l s='Invoice'}
</h4> </h4>
<select id="id_address_invoice" name="id_address_invoice"> <select id="id_address_invoice" name="id_address_invoice"></select>
</select> <div class="well">
<div id="address_invoice_detail"> <div id="address_invoice_detail"></div>
</div> </div>
</div> </div>
</div> </div>
<div class="row">
<div class="col-lg-12">
<a class="fancybox btn btn-default" id="new_address" href="{$link->getAdminLink('AdminAddresses')|escape:'htmlall':'UTF-8'}&addaddress&id_customer=42&liteDisplaying=1&submitFormAjax=1#">
<i class="icon-plus-sign-alt"></i>
{l s='Add a new address'}
</a>
</div>
</div>
</div> </div>
<div class="panel" id="carriers_part" style="display:none;"> <div class="panel" id="carriers_part" style="display:none;">
<h3> <h3>
@@ -1291,7 +1351,7 @@
</h3> </h3>
<div id="carriers_err" style="display:none;" class="alert alert-warning"></div> <div id="carriers_err" style="display:none;" class="alert alert-warning"></div>
<div id="carrier_form"> <div id="carrier_form">
<div class="row"> <div class="form-group">
<label class="control-label col-lg-3"> <label class="control-label col-lg-3">
{l s='Delivery option'} {l s='Delivery option'}
</label> </label>
@@ -1300,31 +1360,52 @@
</select> </select>
</div> </div>
</div> </div>
<div class="row"> <div class="form-group">
<label class="control-label col-lg-3" for="shipping_price"> <label class="control-label col-lg-3" for="shipping_price">
{l s='Shipping price:'} {l s='Shipping price:'}
</label> </label>
<div class="col-lg-6"> <div class="col-lg-6">
<span id="shipping_price" name="shipping_price"></span> <span id="shipping_price" class="form-static-control" name="shipping_price"></span>
</div> </div>
</div> </div>
<div class="row"> <div class="form-group">
<label class="control-label col-lg-3" for="free_shipping"> <label class="control-label col-lg-3" for="free_shipping">
{l s='Free shipping'} {l s='Free shipping'}
</label> </label>
<div class="col-lg-6"> <div class="col-lg-6">
<input type="checkbox" id="free_shipping" name="free_shipping" value="1" /> <div class="checkbox">
<input type="checkbox" id="free_shipping" name="free_shipping" value="1" />
</div>
</div> </div>
</div> </div>
<div id="float:left;">
{if $recyclable_pack} {if $recyclable_pack}
<p><input type="checkbox" name="carrier_recycled_package" value="1" id="carrier_recycled_package" /> <label for="carrier_recycled_package">{l s='Recycled package'}</label></p> <div class="form-group">
{/if} <div class="checkbox col-lg-9 col-offset-3">
{if $gift_wrapping} <label for="carrier_recycled_package">
<p><input type="checkbox" name="order_gift" id="order_gift" value="1" /> <label for="order_gift">{l s='Gift'}</label></p> <input type="checkbox" name="carrier_recycled_package" value="1" id="carrier_recycled_package" />
<p><label for="gift_message">{l s='Gift message'}</label><textarea id="gift_message" cols="40" rows="4"></textarea></p> {l s='Recycled package'}
{/if} </label>
</div>
</div> </div>
{/if}
{if $gift_wrapping}
<div class="form-group">
<div class="checkbox col-lg-9 col-offset-3">
<label for="order_gift">
<input type="checkbox" name="order_gift" id="order_gift" value="1" />
{l s='Gift'}
</label>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3" for="gift_message">{l s='Gift message'}</label>
<div class="col-lg-9">
<textarea id="gift_message" class="form-control" cols="40" rows="4"></textarea>
</div>
</div>
{/if}
</div> </div>
</div> </div>
<div class="panel" id="summary_part" style="display:none;"> <div class="panel" id="summary_part" style="display:none;">
@@ -1332,48 +1413,63 @@
<i class="icon-align-justify"></i> <i class="icon-align-justify"></i>
{l s='Summary'} {l s='Summary'}
</h3> </h3>
<div class="row">
<div id="send_email_feedback" class="col-lg-12"></div> <div id="send_email_feedback" class="alert alert-warning"></div>
</div>
<div class="row"> <div id="cart_summary" class="panel row-margin-bottom text-center">
<div id="cart_summary" class="col-lg-12"> <div class="row">
<ul class="nav navbar-nav"> <div class="col-lg-2">
<li><span>{l s='Total products:'}</span>&nbsp;<span id="total_products"></span></li> <span>{l s='Total products:'}</span><br/>
<li><span>{l s='Total vouchers:'}</span>&nbsp;<span id="total_vouchers"></span></li> <span id="total_products" class="size_l"></span>
<li><span>{l s='Total shipping:'}</span>&nbsp;<span id="total_shipping"></span></li> </div>
<li><span>{l s='Total taxes:'}</span>&nbsp;<span id="total_taxes"></span></li> <div class="col-lg-2">
<li><span>{l s='Total without taxes:'}</span>&nbsp;<span id="total_without_taxes"></span></li> <span>{l s='Total vouchers:'}</span><br/>
<li><span>{l s='Total with taxes'}</span>&nbsp;<span id="total_with_taxes"></span></li> <span id="total_vouchers" class="size_l"></span>
</ul> </div>
<div class="col-lg-2">
<span>{l s='Total shipping:'}</span><br/>
<span id="total_shipping" class="size_l"></span>
</div>
<div class="col-lg-2">
<span>{l s='Total taxes:'}</span><br/>
<span id="total_taxes" class="size_l"></span>
</div>
<div class="col-lg-2">
<span>{l s='Total without taxes:'}</span><br/>
<span id="total_without_taxes" class="size_l"></span>
</div>
<div class="col-lg-2">
<span>{l s='Total with taxes'}</span><br/>
<span id="total_with_taxes" class="size_l"></span>
</div>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="order_message_right col-lg-12"> <div class="order_message_right col-lg-12">
<div class="row"> <div class="form-group">
<label class="control-label col-lg-3" for="order_message">{l s='Order message'}</label> <label class="control-label col-lg-3" for="order_message">{l s='Order message'}</label>
<div class="col-lg-6"> <div class="col-lg-6">
<textarea name="order_message" id="order_message" rows="3" cols="45"></textarea> <textarea name="order_message" id="order_message" rows="3" cols="45"></textarea>
</div> </div>
</div> </div>
<div class="row">
<div class="col-lg-12"> <div class="form-group">
<p> <div class="col-lg-9 col-lg-offset-3">
<a href="#" id="send_email_to_customer" class="btn btn-default"> <a href="#" id="send_email_to_customer" class="btn btn-default">
<i class="icon-envelope"></i> <i class="icon-credit-card"></i>
{l s='Send an email to the customer with the link to process the payment.'} {l s='Send an email to the customer with the link to process the payment.'}
</a> </a>
</p> <a target="_blank" id="go_order_process" href="" class="btn btn-link">
<p> {l s='Go on payment page to process the payment.'}
<a target="_blank" id="go_order_process" href="" class="btn btn-default"> <i class="icon-external-link"></i>
<i class="icon-external-link-sign"></i> </a>
{l s='Go on payment page to process the payment.'}
</a>
</p>
</div> </div>
</div> </div>
<div class="row">
<div class="form-group">
<label class="control-label col-lg-3">{l s='Payment'}</label> <label class="control-label col-lg-3">{l s='Payment'}</label>
<div class="col-lg-6"> <div class="col-lg-9">
<select name="payment_module_name" id="payment_module_name"> <select name="payment_module_name" id="payment_module_name">
{foreach from=$payment_modules item='module'} {foreach from=$payment_modules item='module'}
<option value="{$module->name}" {if isset($smarty.post.payment_module_name) && $module->name == $smarty.post.payment_module_name}selected="selected"{/if}>{$module->displayName}</option> <option value="{$module->name}" {if isset($smarty.post.payment_module_name) && $module->name == $smarty.post.payment_module_name}selected="selected"{/if}>{$module->displayName}</option>
@@ -1381,9 +1477,10 @@
</select> </select>
</div> </div>
</div> </div>
<div class="row">
<div class="form-group">
<label class="control-label col-lg-3">{l s='Order status'}</label> <label class="control-label col-lg-3">{l s='Order status'}</label>
<div class="col-lg-6"> <div class="col-lg-9">
<select name="id_order_state" id="id_order_state"> <select name="id_order_state" id="id_order_state">
{foreach from=$order_states item='order_state'} {foreach from=$order_states item='order_state'}
<option value="{$order_state.id_order_state}" {if isset($smarty.post.id_order_state) && $order_state.id_order_state == $smarty.post.id_order_state}selected="selected"{/if}>{$order_state.name}</option> <option value="{$order_state.id_order_state}" {if isset($smarty.post.id_order_state) && $order_state.id_order_state == $smarty.post.id_order_state}selected="selected"{/if}>{$order_state.name}</option>
@@ -1391,8 +1488,9 @@
</select> </select>
</div> </div>
</div> </div>
<div class="row">
<div class="col-lg-12 pull-right"> <div class="form-group">
<div class="col-lg-9 col-lg-offset-3">
<input type="submit" name="submitAddOrder" class="btn btn-default" value="{l s='Create the order'}" /> <input type="submit" name="submitAddOrder" class="btn btn-default" value="{l s='Create the order'}" />
</div> </div>
</div> </div>
@@ -1400,7 +1498,7 @@
</div> </div>
</div> </div>
</form> </form>
<div id="loader_container"> <div id="loader_container">
<div id="loader"> <div id="loader"></div>
</div>
</div> </div>
@@ -601,247 +601,256 @@
</form> </form>
</div> </div>
</div> </div>
</div>
<!-- Payments block --> <div class="row">
<div class="panel"> <div class="col-lg-12">
<h3> <!-- Payments block -->
<i class="icon-money"></i> <div class="panel">
{l s="Payment"} <h3>
</h3> <i class="icon-money"></i>
{if count($order->getOrderPayments()) > 0} {l s="Payment"}
<p class="alert alert-danger" style="{if round($orders_total_paid_tax_incl, 2) == round($total_paid, 2) || $currentState->id == 6}display: none;{/if}"> </h3>
{l s='Warning'} {if count($order->getOrderPayments()) > 0}
<strong>{displayPrice price=$total_paid currency=$currency->id}</strong> <p class="alert alert-danger" style="{if round($orders_total_paid_tax_incl, 2) == round($total_paid, 2) || $currentState->id == 6}display: none;{/if}">
{l s='paid instead of'} {l s='Warning'}
<strong class="total_paid">{displayPrice price=$orders_total_paid_tax_incl currency=$currency->id}</strong> <strong>{displayPrice price=$total_paid currency=$currency->id}</strong>
{l s='paid instead of'}
{foreach $order->getBrother() as $brother_order} <strong class="total_paid">{displayPrice price=$orders_total_paid_tax_incl currency=$currency->id}</strong>
{if $brother_order@first}
{if count($order->getBrother()) == 1} {foreach $order->getBrother() as $brother_order}
<br />{l s='This warning also concerns order '} {if $brother_order@first}
{else} {if count($order->getBrother()) == 1}
<br />{l s='This warning also concerns the next orders:'} <br />{l s='This warning also concerns order '}
{else}
<br />{l s='This warning also concerns the next orders:'}
{/if}
{/if} {/if}
{/if} <a href="{$current_index}&vieworder&id_order={$brother_order->id}&token={$smarty.get.token|escape:'htmlall':'UTF-8'}">
<a href="{$current_index}&vieworder&id_order={$brother_order->id}&token={$smarty.get.token|escape:'htmlall':'UTF-8'}"> #{'%06d'|sprintf:$brother_order->id}
#{'%06d'|sprintf:$brother_order->id} </a>
</a> {/foreach}
{/foreach} </p>
</p> {/if}
{/if}
<form id="formAddPayment" method="post" action="{$current_index}&vieworder&id_order={$order->id}&token={$smarty.get.token|escape:'htmlall':'UTF-8'}"> <form id="formAddPayment" method="post" action="{$current_index}&vieworder&id_order={$order->id}&token={$smarty.get.token|escape:'htmlall':'UTF-8'}">
<table class="table">
<thead>
<tr>
<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>
{foreach from=$order->getOrderPaymentCollection() item=payment}
<tr>
<td>{dateFormat date=$payment->date_add full=true}</td>
<td>{$payment->payment_method}</td>
<td>{$payment->transaction_id}</td>
<td>{displayPrice price=$payment->amount currency=$payment->id_currency}</td>
<td>
{if $invoice = $payment->getOrderInvoice($order->id)}
{$invoice->getInvoiceNumberFormatted($current_id_lang, $order->id_shop)}
{else}
{l s='No invoice'}
{/if}
</td>
<td>
<button class="btn btn-default open_payment_information">
<i class="icon-search"></i>
{l s='See payment information'}
</button>
</td>
</tr>
<tr class="payment_information" style="display: none;">
<td colspan="6">
<p>
<b>{l s='Card Number'}</b>&nbsp;
{if $payment->card_number}
{$payment->card_number}
{else}
<i>{l s='Not defined'}</i>
{/if}
</p>
<p>
<b>{l s='Card Brand'}</b>&nbsp;
{if $payment->card_brand}
{$payment->card_brand}
{else}
<i>{l s='Not defined'}</i>
{/if}
</p>
<p>
<b>{l s='Card Expiration'}</b>&nbsp;
{if $payment->card_expiration}
{$payment->card_expiration}
{else}
<i>{l s='Not defined'}</i>
{/if}
</p>
<p>
<b>{l s='Card Holder'}</b>&nbsp;
{if $payment->card_holder}
{$payment->card_holder}
{else}
<i>{l s='Not defined'}</i>
{/if}
</p>
</td>
</tr>
{foreachelse}
<tr>
<td class="text-center" colspan="6">
<i class="icon-warning-sign"></i>
{l s='No payments are available'}
</td>
</tr>
{/foreach}
<tr class="current-edit">
<td>
<input type="text" name="payment_date" class="datepicker" value="{date('Y-m-d H:i:s')}" />
</td>
<td>
<select name="payment_method" class="payment_method">
{foreach from=$payment_methods item=payment_method}
<option value="{$payment_method}">{$payment_method}</option>
{/foreach}
</select>
</td>
<td>
<input type="text" name="payment_transaction_id" value="" />
</td>
<td>
<div class="form-group">
<div class="col-lg-9">
<input type="text" name="payment_amount" value="" />
</div>
<div class="col-lg-3">
<select name="payment_currency" class="payment_currency">
{foreach from=$currencies item=current_currency}
<option value="{$current_currency['id_currency']}"{if $current_currency['id_currency'] == $currency->id} selected="selected"{/if}>{$current_currency['sign']}</option>
{/foreach}
</select>
</div>
</div>
</td>
{if count($invoices_collection) > 0}
<td>
<select name="payment_invoice" id="payment_invoice">
{foreach from=$invoices_collection item=invoice}
<option value="{$invoice->id}" selected="selected">{$invoice->getInvoiceNumberFormatted($current_id_lang, $order->id_shop)}</option>
{/foreach}
</select>
</td>
{/if}
<td>
<button class="btn btn-default" type="submit" name="submitAddPayment">
<i class="icon-ok"></i>
{l s='Save'}
</button>
</td>
</tr>
</tbody>
</table>
</form>
{if (!$order->valid && sizeof($currencies) > 1)}
<form class="form-horizontal well" method="post" action="{$currentIndex}&vieworder&id_order={$order->id}&token={$smarty.get.token|escape:'htmlall':'UTF-8'}">
<div class="row">
<label class="control-label col-lg-3">{l s='Change currency'}</label>
<div class="col-lg-6">
<select name="new_currency">
{foreach from=$currencies item=currency_change}
{if $currency_change['id_currency'] != $order->id_currency}
<option value="{$currency_change['id_currency']}">{$currency_change['name']} - {$currency_change['sign']}</option>
{/if}
{/foreach}
</select>
<p class="help-block">{l s='Do not forget to update your exchange rate before making this change.'}</p>
</div>
<div class="col-lg-3">
<input type="submit" class="btn btn-default" name="submitChangeCurrency" value="{l s='Change'}" />
</div>
</div>
</form>
{/if}
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<!-- Sources block -->
{if (sizeof($sources))}
<div class="panel">
<h3>
<i class="icon-globe"></i>
{l s='Sources'}
</h3>
<ul {if sizeof($sources) > 3}style="height: 200px; overflow-y: scroll;"{/if}>
{foreach from=$sources item=source}
<li>
{dateFormat date=$source['date_add'] full=true}<br />
<b>{l s='From'}</b>{if $source['http_referer'] != ''}<a href="{$source['http_referer']}">{parse_url($source['http_referer'], $smarty.const.PHP_URL_HOST)|regex_replace:'/^www./':''}</a>{else}-{/if}<br />
<b>{l s='To'}</b> <a href="http://{$source['request_uri']}">{$source['request_uri']|truncate:100:'...'}</a><br />
{if $source['keywords']}<b>{l s='Keywords'}</b> {$source['keywords']}<br />{/if}<br />
</li>
{/foreach}
</ul>
</div>
{/if}
<!-- linked orders block -->
{if count($order->getBrother()) > 0}
<div class="panel">
<h3>
<i class="icon-cart"></i>
{l s='Linked orders'}
</h3>
<table class="table"> <table class="table">
<thead> <thead>
<tr> <tr>
<th><span class="title_box ">{l s='Date'}</span></th> <th>
<th><span class="title_box ">{l s='Payment method'}</span></th> {l s='Order no. '}
<th><span class="title_box ">{l s='Transaction ID'}</span></th> </th>
<th><span class="title_box ">{l s='Amount'}</span></th> <th>
<th><span class="title_box ">{l s='Invoice'}</span></th> {l s='Status'}
</th>
<th>
{l s='Amount'}
</th>
<th></th> <th></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{foreach from=$order->getOrderPaymentCollection() item=payment} {foreach $order->getBrother() as $brother_order}
<tr> <tr>
<td>{dateFormat date=$payment->date_add full=true}</td>
<td>{$payment->payment_method}</td>
<td>{$payment->transaction_id}</td>
<td>{displayPrice price=$payment->amount currency=$payment->id_currency}</td>
<td> <td>
{if $invoice = $payment->getOrderInvoice($order->id)} <a href="{$current_index}&vieworder&id_order={$brother_order->id}&token={$smarty.get.token|escape:'htmlall':'UTF-8'}">#{'%06d'|sprintf:$brother_order->id}</a>
{$invoice->getInvoiceNumberFormatted($current_id_lang, $order->id_shop)}
{else}
{l s='No invoice'}
{/if}
</td> </td>
<td> <td>
<button class="btn btn-default open_payment_information"> {$brother_order->getCurrentOrderState()->name[$current_id_lang]}
<i class="icon-search"></i>
{l s='See payment information'}
</button>
</td> </td>
</tr> <td>
<tr class="payment_information" style="display: none;"> {displayPrice price=$brother_order->total_paid_tax_incl currency=$currency->id}
<td colspan="6">
<p>
<b>{l s='Card Number'}</b>&nbsp;
{if $payment->card_number}
{$payment->card_number}
{else}
<i>{l s='Not defined'}</i>
{/if}
</p>
<p>
<b>{l s='Card Brand'}</b>&nbsp;
{if $payment->card_brand}
{$payment->card_brand}
{else}
<i>{l s='Not defined'}</i>
{/if}
</p>
<p>
<b>{l s='Card Expiration'}</b>&nbsp;
{if $payment->card_expiration}
{$payment->card_expiration}
{else}
<i>{l s='Not defined'}</i>
{/if}
</p>
<p>
<b>{l s='Card Holder'}</b>&nbsp;
{if $payment->card_holder}
{$payment->card_holder}
{else}
<i>{l s='Not defined'}</i>
{/if}
</p>
</td> </td>
</tr> <td>
{foreachelse} <a href="{$current_index}&vieworder&id_order={$brother_order->id}&token={$smarty.get.token|escape:'htmlall':'UTF-8'}">
<tr> <i class="icon-eye-open"></i>
<td class="text-center" colspan="6"> {l s='See the order'}
<i class="icon-warning-sign"></i> </a>
{l s='No payments are available'}
</td> </td>
</tr> </tr>
{/foreach} {/foreach}
<tr class="current-edit">
<td>
<input type="text" name="payment_date" class="datepicker" value="{date('Y-m-d H:i:s')}" />
</td>
<td>
<select name="payment_method" class="payment_method">
{foreach from=$payment_methods item=payment_method}
<option value="{$payment_method}">{$payment_method}</option>
{/foreach}
</select>
</td>
<td>
<input type="text" name="payment_transaction_id" value="" />
</td>
<td>
<div class="form-group">
<div class="col-lg-9">
<input type="text" name="payment_amount" value="" />
</div>
<div class="col-lg-3">
<select name="payment_currency" class="payment_currency">
{foreach from=$currencies item=current_currency}
<option value="{$current_currency['id_currency']}"{if $current_currency['id_currency'] == $currency->id} selected="selected"{/if}>{$current_currency['sign']}</option>
{/foreach}
</select>
</div>
</div>
</td>
{if count($invoices_collection) > 0}
<td>
<select name="payment_invoice" id="payment_invoice">
{foreach from=$invoices_collection item=invoice}
<option value="{$invoice->id}" selected="selected">{$invoice->getInvoiceNumberFormatted($current_id_lang, $order->id_shop)}</option>
{/foreach}
</select>
</td>
{/if}
<td>
<button class="btn btn-default" type="submit" name="submitAddPayment">
<i class="icon-ok"></i>
{l s='Save'}
</button>
</td>
</tr>
</tbody> </tbody>
</table> </table>
</form> </div>
{if (!$order->valid && sizeof($currencies) > 1)}
<form class="form-horizontal well" method="post" action="{$currentIndex}&vieworder&id_order={$order->id}&token={$smarty.get.token|escape:'htmlall':'UTF-8'}">
<div class="row">
<label class="control-label col-lg-3">{l s='Change currency'}</label>
<div class="col-lg-6">
<select name="new_currency">
{foreach from=$currencies item=currency_change}
{if $currency_change['id_currency'] != $order->id_currency}
<option value="{$currency_change['id_currency']}">{$currency_change['name']} - {$currency_change['sign']}</option>
{/if}
{/foreach}
</select>
<p class="help-block">{l s='Do not forget to update your exchange rate before making this change.'}</p>
</div>
<div class="col-lg-3">
<input type="submit" class="btn btn-default" name="submitChangeCurrency" value="{l s='Change'}" />
</div>
</div>
</form>
{/if} {/if}
</div> </div>
</div>
<!-- Sources block -->
{if (sizeof($sources))}
<div class="panel">
<h3>
<i class="icon-globe"></i>
{l s='Sources'}
</h3>
<ul {if sizeof($sources) > 3}style="height: 200px; overflow-y: scroll;"{/if}>
{foreach from=$sources item=source}
<li>
{dateFormat date=$source['date_add'] full=true}<br />
<b>{l s='From'}</b>{if $source['http_referer'] != ''}<a href="{$source['http_referer']}">{parse_url($source['http_referer'], $smarty.const.PHP_URL_HOST)|regex_replace:'/^www./':''}</a>{else}-{/if}<br />
<b>{l s='To'}</b> <a href="http://{$source['request_uri']}">{$source['request_uri']|truncate:100:'...'}</a><br />
{if $source['keywords']}<b>{l s='Keywords'}</b> {$source['keywords']}<br />{/if}<br />
</li>
{/foreach}
</ul>
</div>
{/if}
<!-- linked orders block -->
{if count($order->getBrother()) > 0}
<div class="panel">
<h3>
<i class="icon-cart"></i>
{l s='Linked orders'}
</h3>
<table class="table">
<thead>
<tr>
<th>
{l s='Order no. '}
</th>
<th>
{l s='Status'}
</th>
<th>
{l s='Amount'}
</th>
<th></th>
</tr>
</thead>
<tbody>
{foreach $order->getBrother() as $brother_order}
<tr>
<td>
<a href="{$current_index}&vieworder&id_order={$brother_order->id}&token={$smarty.get.token|escape:'htmlall':'UTF-8'}">#{'%06d'|sprintf:$brother_order->id}</a>
</td>
<td>
{$brother_order->getCurrentOrderState()->name[$current_id_lang]}
</td>
<td>
{displayPrice price=$brother_order->total_paid_tax_incl currency=$currency->id}
</td>
<td>
<a href="{$current_index}&vieworder&id_order={$brother_order->id}&token={$smarty.get.token|escape:'htmlall':'UTF-8'}">
<i class="icon-eye-open"></i>
{l s='See the order'}
</a>
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
{/if}
+14 -26
View File
@@ -277,6 +277,7 @@
$('#header_search_options').on('click','li a', function(e){ $('#header_search_options').on('click','li a', function(e){
e.preventDefault(); e.preventDefault();
$('#header_search_options .search-option').removeClass('active'); $('#header_search_options .search-option').removeClass('active');
$(this).closest('li').addClass('active');
$('#bo_search_type').val($(this).data('value')); $('#bo_search_type').val($(this).data('value'));
$('#search_type_icon').removeAttr("class").addClass($(this).data('icon')); $('#search_type_icon').removeAttr("class").addClass($(this).data('icon'));
$('#bo_query').attr("placeholder",$(this).data('placeholder')); $('#bo_query').attr("placeholder",$(this).data('placeholder'));
@@ -285,36 +286,23 @@
</script> </script>
<!-- js <!-- js
size up search field on focus OK - size up search field on focus
prevent blank search - prevent blank search
OK - dropdown menu as select
OK - fill input hidden field with data value from list item
OK - change icon in suffix
OK - set active on right list item
OK - focus input field
OK - change place holder
- use change for first init
- clear search
(?) - keep focus state when keyword exists
dropdown menu as select old code sample:
- fill input hidden field with data value from list item
- change icon in suffix
- set active on right list item
- focus input field
- change place holder
-->
<!-- //todo Search in section
<select name="bo_search_type" id="bo_search_type" class="chosen no-search">
<option value="0">{l s='everywhere'}</option>
<option value="1" {if {$search_type} == 1} selected="selected" {/if}>{l s='catalog'}</option> <option value="1" {if {$search_type} == 1} selected="selected" {/if}>{l s='catalog'}</option>
-->
<optgroup label="{l s='customers'}:">
<option value="2" {if {$search_type} == 2} selected="selected" {/if}>{l s='by name'}</option>
<option value="6" {if {$search_type} == 6} selected="selected" {/if}>{l s='by ip address'}</option>
</optgroup>
<option value="3" {if {$search_type} == 3} selected="selected" {/if}>{l s='orders'}</option>
<option value="4" {if {$search_type} == 4} selected="selected" {/if}>{l s='invoices'}</option>
<option value="5" {if {$search_type} == 5} selected="selected" {/if}>{l s='carts'}</option>
<option value="7" {if {$search_type} == 7} selected="selected" {/if}>{l s='modules'}</option>
</select> -->
</form> </form>
{if count($quick_access) > 0} {if count($quick_access) > 0}
<ul id="header_quick"> <ul id="header_quick">
<li class="dropdown"> <li class="dropdown">
@@ -49,9 +49,6 @@ class AdminLoginControllerCore extends AdminController
$this->addJS(_PS_JS_DIR_.'vendor/spin.js'); $this->addJS(_PS_JS_DIR_.'vendor/spin.js');
$this->addJS(_PS_JS_DIR_.'vendor/ladda.js'); $this->addJS(_PS_JS_DIR_.'vendor/ladda.js');
$this->addJS(_PS_JS_DIR_.'login.js'); $this->addJS(_PS_JS_DIR_.'login.js');
//$this->addJqueryUI('ui.widget');
//$this->addJqueryUI('effects.shake');
//$this->addJqueryUI('effects.slide');
} }
public function initContent() public function initContent()