From 9edcc64a8233920979a4a042bc19dd7382bfa101 Mon Sep 17 00:00:00 2001 From: Marion Muszynski Date: Fri, 14 Oct 2016 13:10:56 +0200 Subject: [PATCH 1/3] modification of delivery mode selection --- adm/ajax_vp.php | 2 +- .../privatesales/AdminPrivateSalesSales.php | 157 ++++++++++++++---- 2 files changed, 128 insertions(+), 31 deletions(-) diff --git a/adm/ajax_vp.php b/adm/ajax_vp.php index c0285292..ce054392 100644 --- a/adm/ajax_vp.php +++ b/adm/ajax_vp.php @@ -55,7 +55,7 @@ if (isset($_GET['getSales'])){ '.$sale->title[intval($cookie->id_lang)].'
'.$extrafields[$sale->id][1].' '.$sale->date_start.' '.$sale->date_end.' - '.($sale->enabled? 'Oui':'Non').''; + '.($sale->enabled? '':'').''; if($sale->new == 0){ echo "Non"; diff --git a/modules/privatesales/AdminPrivateSalesSales.php b/modules/privatesales/AdminPrivateSalesSales.php index 5dc4321b..339f47ca 100755 --- a/modules/privatesales/AdminPrivateSalesSales.php +++ b/modules/privatesales/AdminPrivateSalesSales.php @@ -133,8 +133,78 @@ class AdminPrivateSalesSales extends AdminTab { .red { background : #f29b9b; } - .sale_0 { - background : #fbfbdb; + fieldset.bg-grey{ + background: #F1F1F1; + border: 1px solid #565485; + } + fieldset.bg-grey legend{ + background: rgba(86,84,133,0.9); + border: 1px solid #565485; + color: #fff; + font-weight: 300; + } + table { + background: #fff; + padding: 20px; + -moz-box-shadow: 2px 2px 5px #cccccc; + -webkit-box-shadow: 2px 2px 5px #CCC; + -ms-box-shadow: 2px 2px 5px #cccccc; + -o-box-shadow: 2px 2px 5px #cccccc; + box-shadow: 2px 2px 5px #CCC; + border-collapse: collapse; + border-spacing: 0; + } + .table { + border: 1px solid #565485; + } + .table tr th{ + background: rgba(86,84,133,0.9); + color: #fff; + font-weight: 300; + } + .table tr td { + border-bottom: 1px solid #DEDEDE; + color: #000; + padding: 0 4px 0 6px; + } + .table tr td:nth-child(6), + .table tr td:nth-child(7), + .table tr td:nth-child(11), + .table tr td:nth-child(12){ + text-align:center; + } + .table tr:nth-child(odd){ + background : #F3F3F3; + } + .button.purple { + background-color: rgba(86,84,133,0.7); + border: 1px solid #565485; + border-left: 1px solid rgba(86,84,133,0.6); + border-top: 1px solid rgba(86,84,133,0.6); + color: rgba(255,255,255,0.9); + padding: 3px; + } + .button.purple:hover { + background-color: #565485; + border: 1px solid rgba(86,84,133,0.6); + border-left: 1px solid #565485; + border-top: 1px solid #565485; + color: #fff; + padding: 3px; + } + .button.purple:focus{ + background-color: rgba(86,84,133,1.6); + } + #delivery_mode{ + margin-bottom:5px; + } + .carriers_info{ + background:#fff; + padding:10px; + border: 1px solid #ccc; + } + .carriers_hidden{ + display:none; }
@@ -393,34 +463,61 @@ class AdminPrivateSalesSales extends AdminTab { WHERE c.`deleted` != 1 '); - $carriers_default = array(22, 87, 88, 89); // prod - // $carriers_default = array(22, 46, 47, 48); // dev + // $carriers_default = array(22, 87, 88, 89); // prod + $carriers_default = array(22, 45, 47, 48); // dev echo '
- + + + + + + +
+

'.$this->l('Transporteurs selectionnés : ').'

+
+
+
'; + if(Tools::getIsset('edit')) { + foreach($carriers as $carrier) { + echo ''; } - echo ' - - -
+ } else { + foreach($carriers as $carrier) { + echo ''; + } + } + echo '
@@ -540,11 +637,11 @@ class AdminPrivateSalesSales extends AdminTab { } //ANTADIS - echo '
'; + echo '
'; echo 'Tri des ventes'; - echo ''; - echo ''; - echo ''; + echo ''; + echo ''; + echo ''; echo '
'; ?> @@ -559,7 +656,7 @@ class AdminPrivateSalesSales extends AdminTab { $(this).addClass('active'); $('.list_vente').empty(); - var loader = "

"; + var loader = "

"; $('.list_vente').html(loader); $.ajax({ @@ -659,7 +756,7 @@ class AdminPrivateSalesSales extends AdminTab { '; - echo '
+ echo '
'.$this->l('Sales list').' @@ -696,7 +793,7 @@ class AdminPrivateSalesSales extends AdminTab { - + '; if($sale->new == 0){ From 302ba040d15e268e7186ad13fe910a8facf09d59 Mon Sep 17 00:00:00 2001 From: Marion Muszynski Date: Thu, 20 Oct 2016 13:48:55 +0200 Subject: [PATCH 2/3] modif expedition --- .../privatesales/AdminPrivateSalesSales.php | 28 +++++++++++++------ 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/modules/privatesales/AdminPrivateSalesSales.php b/modules/privatesales/AdminPrivateSalesSales.php index 339f47ca..05a68453 100755 --- a/modules/privatesales/AdminPrivateSalesSales.php +++ b/modules/privatesales/AdminPrivateSalesSales.php @@ -463,8 +463,8 @@ class AdminPrivateSalesSales extends AdminTab { WHERE c.`deleted` != 1 '); - // $carriers_default = array(22, 87, 88, 89); // prod - $carriers_default = array(22, 45, 47, 48); // dev + // $carriers_default = array(87, 88, 89); // prod + $carriers_default = array(45, 47, 48); // dev echo '
@@ -473,10 +473,9 @@ class AdminPrivateSalesSales extends AdminTab { - - + -
+
id_employee == 1)?'':'style="display:none;"').'>

'.$this->l('Transporteurs selectionnés : ').'

@@ -493,11 +492,20 @@ class AdminPrivateSalesSales extends AdminTab { echo '
'.$sale->title[intval($cookie->id_lang)].'
'.$extrafields[$sale->id][1].'
'.$sale->date_start.' '.$sale->date_end.''.($sale->enabled?$this->l('Yes'):$this->l('No')).''.($sale->enabled?'':'').'