// Merge -> 10309
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10333 b9a71923-0436-4b27-9f14-aed3839534dd
@@ -0,0 +1,357 @@
|
||||
.tntRCHeader {
|
||||
background-color: #ffffff;
|
||||
background-image: url(../img/logo_24_relaiscolis.jpg);
|
||||
background-position: 10px center;
|
||||
background-repeat: no-repeat;
|
||||
border-color: gray;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
color: #a0a0a0;
|
||||
display: bloc;
|
||||
font-family: arial,helvetica,sans-serif;
|
||||
font-size: 30pt;
|
||||
font-style: italic;
|
||||
height: 75px;
|
||||
padding-right: 10px;
|
||||
padding-top: 25px;
|
||||
text-align: right;
|
||||
width: 530px;
|
||||
}
|
||||
|
||||
.tntRCSubHeader {
|
||||
background-color: #ffffff;
|
||||
border-width: 0px;
|
||||
color: #a0a0a0;
|
||||
display: bloc;
|
||||
font-family: arial,helvetica,sans-serif;
|
||||
font-size: 16pt;
|
||||
font-weight: bold;
|
||||
padding-bottom: 3px;
|
||||
padding-top: 3px;
|
||||
width: 600px;
|
||||
}
|
||||
|
||||
.tntRCBody {
|
||||
background-color: #ffffff;
|
||||
border-color: gray;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
color: #000000;
|
||||
display: bloc;
|
||||
font-family: arial,helvetica,sans-serif;
|
||||
font-size: 12pt;
|
||||
padding-bottom: 10px;
|
||||
padding-left: 10px;
|
||||
padding-top: 10px;
|
||||
width: 530px;
|
||||
}
|
||||
|
||||
.tntRCBodySearch {
|
||||
background-color: #ffffff;
|
||||
border-color: gray;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
color: #a0a0a0;
|
||||
font-family: arial,helvetica,sans-serif;
|
||||
font-size: 10pt;
|
||||
font-weight: bold;
|
||||
padding-left: 3px;
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
width: 550px;
|
||||
}
|
||||
|
||||
.tntRCError {
|
||||
background-color: #ff6600;
|
||||
color: #ffffff;
|
||||
display: bloc;
|
||||
font-family: arial,helvetica,sans-serif;
|
||||
font-size: 12pt;
|
||||
font-weight: bold;
|
||||
width: 520px;
|
||||
}
|
||||
|
||||
.tntRCGray {
|
||||
background-color: #a0a0a0;
|
||||
border-width: 0px;
|
||||
display: bloc;
|
||||
font-family: arial,helvetica,sans-serif;
|
||||
font-size: 10pt;
|
||||
heigth: 12px;
|
||||
width: 520px;
|
||||
}
|
||||
|
||||
.tntRCInput {
|
||||
background-color: #ffffff;
|
||||
font-family: arial,helvetica,sans-serif;
|
||||
font-size: 10pt;
|
||||
font-weight: normal;
|
||||
text-align: center;
|
||||
width: 50px;
|
||||
}
|
||||
|
||||
.tntRCWhite {
|
||||
background-color: #ffffff;
|
||||
border-width: 0px;
|
||||
display: bloc;
|
||||
font-family: arial,helvetica,sans-serif;
|
||||
font-size: 14pt;
|
||||
width: 600px;
|
||||
}
|
||||
|
||||
.tntRCrelaisColis {
|
||||
font-family: arial,helvetica,sans-serif;
|
||||
font-size: 10px;
|
||||
color: #000000;
|
||||
border-bottom-style: solid;
|
||||
border-bottom-color: #a0a0a0;
|
||||
border-bottom-width: 1px;
|
||||
background-color: #ffffff;
|
||||
padding-bottom: 3px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.tntRCtitreMode {
|
||||
font-family: arial,helvetica,sans-serif;
|
||||
font-size: 28px;
|
||||
color: #a0a0a0;
|
||||
font-style: italic;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
.tntRCchoix {
|
||||
font-family: arial,helvetica,sans-serif;
|
||||
font-size: 14px;
|
||||
color: #a0a0a0;
|
||||
font-weight: bold;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
.tntRCdetailGros {
|
||||
font-family: arial,helvetica,sans-serif;
|
||||
font-size: 14pt;
|
||||
color: #a0a0a0;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
.tntRCnoirPetit {
|
||||
font-family: arial,helvetica,sans-serif;
|
||||
font-size: 12pt;
|
||||
color: #000000;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
.tntRCdetailPetit {
|
||||
font-family: arial,helvetica,sans-serif;
|
||||
font-size: 12pt;
|
||||
color: #a0a0a0;
|
||||
background-color: #ffffff;
|
||||
font-weight: bold;
|
||||
}
|
||||
.tntRCentree {
|
||||
font-family: arial,helvetica,sans-serif;
|
||||
font-size: 12pt;
|
||||
color: #000000;
|
||||
background-color: #ffffff;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.tntRCgris {
|
||||
font-family: arial,helvetica,sans-serif;
|
||||
font-size: 10pt;
|
||||
color: #ffffff;
|
||||
background-color: #a0a0a0;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
table.tntRCHoraire td {
|
||||
border: 1px solid gray;
|
||||
font-family: arial,helvetica,sans-serif;
|
||||
font-size: 10pt;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.tntRCHoraireJour{
|
||||
color: #a0a0a0;
|
||||
text-align: right;
|
||||
padding-right: 10px;
|
||||
height: 36px;
|
||||
width: 79px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.tntRCHoraireHeure {
|
||||
color: #000000;
|
||||
padding-left: 10px;
|
||||
width: 84px;
|
||||
}
|
||||
|
||||
.tntRCblanc {
|
||||
font-family: arial,helvetica,sans-serif;
|
||||
font-size: 12px;
|
||||
color: #000000;
|
||||
background-color: #ffffff;
|
||||
padding-top: 4px;
|
||||
padding-bottom: 3px;
|
||||
}
|
||||
.tntRCblancpetit {
|
||||
font-family: arial,helvetica,sans-serif;
|
||||
font-size: 12px;
|
||||
color: #000000;
|
||||
background-color: #ffffff;
|
||||
padding-top: 4px;
|
||||
padding-bottom: 3px;
|
||||
}
|
||||
.tntRCfermeture {
|
||||
padding-left: 585px;
|
||||
}
|
||||
|
||||
.tntRCBack2Communes {
|
||||
background-color: #ffffff;
|
||||
color: #a0a0a0;
|
||||
font-family: arial,helvetica,sans-serif;
|
||||
font-style: italic;
|
||||
font-size: 11pt;
|
||||
font-weight: bold;
|
||||
padding-top: 18px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.tntRCBack2Communes a {
|
||||
color: #a0a0a0;
|
||||
text-decoration: none;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
.tntRCBack2Communes a img{
|
||||
border: 0;
|
||||
padding-right: 5px;
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
|
||||
.tntRCBoutonLoupe {
|
||||
background-color: #ffffff;
|
||||
border: 0px;
|
||||
color: #000000;
|
||||
font-family: arial,helvetica,sans-serif;
|
||||
font-size: 12px;
|
||||
padding-top: 4px;
|
||||
padding-bottom: 3px;
|
||||
text-decoration: none;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.jqmWindow {
|
||||
background-color: #FFF;
|
||||
border: 1px solid black;
|
||||
color: #333;
|
||||
display: none;
|
||||
padding: 12px;
|
||||
position: fixed;
|
||||
left: 50%;
|
||||
margin-left: -300px;
|
||||
margin-top: -240px;
|
||||
width: 600px;
|
||||
}
|
||||
|
||||
div.tntRCfermeture .jqmClose em{display:none;}
|
||||
div.tntRCfermeture .jqmClose {
|
||||
background: transparent url(../img/close_icon_double.png) 0 0 no-repeat;
|
||||
display: block;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
div.tntRCfermeture a.jqmClose:hover{ background-position: 0 -20px; }
|
||||
|
||||
.jqmOverlay {
|
||||
background-color: #000;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
* html .jqmWindow {
|
||||
position: absolute;
|
||||
top: expression((document.documentElement.scrollTop || document.body.scrollTop) + Math.round(17 * (document.documentElement.offsetHeight || document.body.clientHeight) / 100) + 'px');
|
||||
}
|
||||
|
||||
img.tntRCButton {
|
||||
border: 0px;
|
||||
vertical-align: middle;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
sup.tntRCSup {
|
||||
|
||||
}
|
||||
|
||||
table.horairesRC td {
|
||||
width : 100%;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
table.horairesRCPopup {
|
||||
width : 100%;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
table.horairesRCPopup tr.selected td {
|
||||
background-color: #eeeeee;
|
||||
color: #ff6600;
|
||||
}
|
||||
|
||||
td.horaireRCPopup {
|
||||
width : 60%;
|
||||
}
|
||||
|
||||
td.horairesRCJourPopup {
|
||||
width : 40%;
|
||||
font-weight: bold;
|
||||
color: #808080;
|
||||
}
|
||||
|
||||
td.horairesRCJour {
|
||||
font-weight: bold;
|
||||
color: #808080;
|
||||
}
|
||||
table.horairesRC tr.selected td {
|
||||
background-color: #eeeeee;
|
||||
color: #ff6600;
|
||||
}
|
||||
|
||||
div.ag {
|
||||
background-image: url(/img/google/agenceTnt.png);
|
||||
background-repeat: no-repeat;
|
||||
padding-left:60px;
|
||||
}
|
||||
|
||||
div.rc {
|
||||
background-image: url(/img/google/relaisColis.png);
|
||||
background-repeat: no-repeat;
|
||||
padding-left:50px;
|
||||
}
|
||||
|
||||
|
||||
.lien_reset {
|
||||
color : #ff6600;
|
||||
font-family: arial,helvetica,sans-serif;
|
||||
font-weight: bold;
|
||||
font-size : 15px;
|
||||
text-decoration:none;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #f60;
|
||||
outline-color: #f60 !important;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.exemplePresentation {
|
||||
display: inline;
|
||||
float: left;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
#tntB2CRelaisColis {
|
||||
width: 550px;
|
||||
}
|
||||
@@ -0,0 +1,158 @@
|
||||
/*
|
||||
* jQuery UI screen structure and presentation
|
||||
* This CSS file was generated by ThemeRoller, a Filament Group Project for jQuery UI
|
||||
* Author: Scott Jehl, scott@filamentgroup.com, http://www.filamentgroup.com
|
||||
* Visit ThemeRoller.com
|
||||
*/
|
||||
|
||||
/*
|
||||
* Note: If your ThemeRoller settings have a font size set in ems, your components will scale according to their parent element's font size.
|
||||
* As a rule of thumb, set your body's font size to 62.5% to make 1em = 10px.
|
||||
* body {font-size: 62.5%;}
|
||||
*/
|
||||
|
||||
|
||||
/*dialog*/
|
||||
.ui-dialog {
|
||||
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
|
||||
font-family: Lucida Grande, Lucida Sans, Arial, sans-serif;
|
||||
font-size: 11px;
|
||||
background: #fcfdfd url(../img/ui-dialog/fcfdfd_40x100_textures_06_inset_hard_100.png) 0 bottom repeat-x;
|
||||
color: #222222;
|
||||
border: 3px solid #808080;
|
||||
position: relative;
|
||||
}
|
||||
.ui-resizable-handle {
|
||||
position: absolute;
|
||||
font-size: 0.1px;
|
||||
z-index: 99999;
|
||||
}
|
||||
.ui-resizable .ui-resizable-handle {
|
||||
display: block;
|
||||
}
|
||||
body .ui-resizable-disabled .ui-resizable-handle { display: none; } /* use 'body' to make it more specific (css order) */
|
||||
body .ui-resizable-autohide .ui-resizable-handle { display: none; } /* use 'body' to make it more specific (css order) */
|
||||
.ui-resizable-n {
|
||||
cursor: n-resize;
|
||||
height: 7px;
|
||||
width: 100%;
|
||||
top: -5px;
|
||||
left: 0px;
|
||||
}
|
||||
.ui-resizable-s {
|
||||
cursor: s-resize;
|
||||
height: 7px;
|
||||
width: 100%;
|
||||
bottom: -5px;
|
||||
left: 0px;
|
||||
}
|
||||
.ui-resizable-e {
|
||||
cursor: e-resize;
|
||||
width: 7px;
|
||||
right: -5px;
|
||||
top: 0px;
|
||||
height: 100%;
|
||||
}
|
||||
.ui-resizable-w {
|
||||
cursor: w-resize;
|
||||
width: 7px;
|
||||
left: -5px;
|
||||
top: 0px;
|
||||
height: 100%;
|
||||
}
|
||||
.ui-resizable-se {
|
||||
cursor: se-resize;
|
||||
width: 13px;
|
||||
height: 13px;
|
||||
right: 0px;
|
||||
bottom: 0px;
|
||||
background: url(../img/ui-dialog/469bdd_11x11_icon_resize_se.gif) no-repeat 0 0;
|
||||
}
|
||||
.ui-resizable-sw {
|
||||
cursor: sw-resize;
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
left: 0px;
|
||||
bottom: 0px;
|
||||
}
|
||||
.ui-resizable-nw {
|
||||
cursor: nw-resize;
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
left: 0px;
|
||||
top: 0px;
|
||||
}
|
||||
.ui-resizable-ne {
|
||||
cursor: ne-resize;
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
right: 0px;
|
||||
top: 0px;
|
||||
}
|
||||
.ui-dialog-titlebar {
|
||||
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
|
||||
padding: 5px 15px 5px 10px;
|
||||
color: #2e6e9e;
|
||||
border-bottom: 1px solid #c5dbec;
|
||||
font-size: 10px;
|
||||
font-weight: bold;
|
||||
position: relative;
|
||||
}
|
||||
.ui-dialog-title {}
|
||||
.ui-dialog-titlebar-close {
|
||||
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
|
||||
background: url(../img/ui-dialog/6da8d5_11x11_icon_close.gif) 0 0 no-repeat;
|
||||
position: absolute;
|
||||
right: 8px;
|
||||
top: 7px;
|
||||
width: 11px;
|
||||
height: 11px;
|
||||
z-index: 100;
|
||||
}
|
||||
.ui-dialog-titlebar-close-hover, .ui-dialog-titlebar-close:hover {
|
||||
background: url(../img/ui-dialog/217bc0_11x11_icon_close.gif) 0 0 no-repeat;
|
||||
}
|
||||
.ui-dialog-titlebar-close:active {
|
||||
background: url(../img/ui-dialog/f9bd01_11x11_icon_close.gif) 0 0 no-repeat;
|
||||
}
|
||||
.ui-dialog-titlebar-close span {
|
||||
display: none;
|
||||
}
|
||||
.ui-dialog-content {
|
||||
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
|
||||
color: #222222;
|
||||
padding: 15px 17px;
|
||||
}
|
||||
.ui-dialog-buttonpane {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
border-top: 1px solid #a6c9e2;
|
||||
background: #fcfdfd;
|
||||
}
|
||||
.ui-dialog-buttonpane button {
|
||||
margin: 5px 0 5px 8px;
|
||||
color: #2e6e9e;
|
||||
background: #dfeffc url(../img/ui-dialog/dfeffc_40x100_textures_02_glass_85.png) 0 50% repeat-x;
|
||||
font-size: 1;
|
||||
border: 10px solid #c5dbec;
|
||||
cursor: pointer;
|
||||
padding: 2px 6px 3px 6px;
|
||||
line-height: 14px;
|
||||
}
|
||||
.ui-dialog-buttonpane button:hover {
|
||||
color: #1d5987;
|
||||
background: #d0e5f5 url(../img/ui-dialog/d0e5f5_40x100_textures_02_glass_75.png) 0 50% repeat-x;
|
||||
border: 1px solid #79b7e7;
|
||||
}
|
||||
.ui-dialog-buttonpane button:active {
|
||||
color: #e17009;
|
||||
background: #f5f8f9 url(../img/ui-dialog/f5f8f9_40x100_textures_06_inset_hard_100.png) 0 50% repeat-x;
|
||||
border: 1px solid #79b7e7;
|
||||
}
|
||||
/* This file skins dialog */
|
||||
.ui-dialog.ui-draggable .ui-dialog-titlebar,
|
||||
.ui-dialog.ui-draggable .ui-dialog-titlebar {
|
||||
cursor: move;
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
/*UI tabs*/
|
||||
.ui-tabs-nav {
|
||||
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; /*font-size: 100%;*/ list-style: none;
|
||||
font-family: Lucida Grande, Lucida Sans, Arial, sans-serif;
|
||||
font-size: 10px;
|
||||
float: left;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
/*border-right: 1px solid #c5dbec;*/
|
||||
bottom: -1px;
|
||||
}
|
||||
.ui-tabs-nav ul {
|
||||
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; /*font-size: 100%;*/ list-style: none;
|
||||
}
|
||||
.ui-tabs-nav li {
|
||||
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; /*font-size: 100%;*/ list-style: none;
|
||||
float: left;
|
||||
border: 1px solid #c5dbec;
|
||||
border-right: none;
|
||||
}
|
||||
.ui-tabs-nav li a {
|
||||
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; /*font-size: 100%;*/ list-style: none;
|
||||
float: left;
|
||||
font-size: 10px;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
padding: .2em 1em;
|
||||
color: #2e6e9e;
|
||||
background: #dfeffc url(../img/ui-dialog/dfeffc_40x100_textures_02_glass_85.png) 0 50% repeat-x;
|
||||
}
|
||||
.ui-tabs-nav li a:hover {
|
||||
background: #d0e5f5 url(../img/ui-dialog/d0e5f5_40x100_textures_02_glass_75.png) 0 50% repeat-x;
|
||||
color: #1d5987;
|
||||
}
|
||||
.ui-tabs-nav li.ui-tabs-selected {
|
||||
border-bottom-color: #f5f8f9;
|
||||
}
|
||||
.ui-tabs-nav li.ui-tabs-selected a, .ui-tabs-nav li.ui-tabs-selected a:hover {
|
||||
background: #f5f8f9 url(../img/ui-dialog/f5f8f9_40x100_textures_06_inset_hard_100.png) 0 50% repeat-x;
|
||||
color: #e17009;
|
||||
}
|
||||
.ui-tabs-panel {
|
||||
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; /*font-size: 100%;*/ list-style: none;
|
||||
/*font-family: Lucida Grande, Lucida Sans, Arial, sans-serif;*/
|
||||
clear:left;
|
||||
border: 1px solid #c5dbec;
|
||||
background: #fcfdfd url(../img/ui-dialog/fcfdfd_40x100_textures_06_inset_hard_100.png) 0 bottom repeat-x;
|
||||
/*color: #222222;*/
|
||||
padding: 1em 1em;
|
||||
width: 315px;
|
||||
font-size: 10px;
|
||||
}
|
||||
.ui-tabs-hide {
|
||||
display: none;/* for accessible hiding: position: absolute; left: -99999999px*/;
|
||||
}
|
||||
|
After Width: | Height: | Size: 894 B |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 961 B |
|
After Width: | Height: | Size: 978 B |
|
After Width: | Height: | Size: 912 B |
|
After Width: | Height: | Size: 436 B |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 954 B |
|
After Width: | Height: | Size: 5.3 KiB |
|
After Width: | Height: | Size: 713 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 5.6 KiB |
|
After Width: | Height: | Size: 3.6 KiB |
|
After Width: | Height: | Size: 7.2 KiB |
|
After Width: | Height: | Size: 1022 B |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 649 B |
|
After Width: | Height: | Size: 1021 B |
|
After Width: | Height: | Size: 403 B |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 58 B |
|
After Width: | Height: | Size: 56 B |
|
After Width: | Height: | Size: 62 B |
|
After Width: | Height: | Size: 64 B |
|
After Width: | Height: | Size: 61 B |
|
After Width: | Height: | Size: 61 B |
|
After Width: | Height: | Size: 56 B |
|
After Width: | Height: | Size: 61 B |
|
After Width: | Height: | Size: 52 B |
|
After Width: | Height: | Size: 53 B |
|
After Width: | Height: | Size: 53 B |
|
After Width: | Height: | Size: 52 B |
|
After Width: | Height: | Size: 58 B |
|
After Width: | Height: | Size: 56 B |
|
After Width: | Height: | Size: 64 B |
|
After Width: | Height: | Size: 56 B |
|
After Width: | Height: | Size: 61 B |
|
After Width: | Height: | Size: 61 B |
|
After Width: | Height: | Size: 52 B |
|
After Width: | Height: | Size: 53 B |
|
After Width: | Height: | Size: 53 B |
|
After Width: | Height: | Size: 52 B |
|
After Width: | Height: | Size: 58 B |
|
After Width: | Height: | Size: 56 B |
|
After Width: | Height: | Size: 62 B |
|
After Width: | Height: | Size: 64 B |
|
After Width: | Height: | Size: 61 B |
|
After Width: | Height: | Size: 61 B |
|
After Width: | Height: | Size: 56 B |
|
After Width: | Height: | Size: 61 B |
|
After Width: | Height: | Size: 52 B |
|
After Width: | Height: | Size: 53 B |
|
After Width: | Height: | Size: 53 B |
|
After Width: | Height: | Size: 52 B |
|
After Width: | Height: | Size: 235 B |
|
After Width: | Height: | Size: 325 B |
|
After Width: | Height: | Size: 308 B |
|
After Width: | Height: | Size: 58 B |
|
After Width: | Height: | Size: 56 B |
|
After Width: | Height: | Size: 62 B |
|
After Width: | Height: | Size: 64 B |
|
After Width: | Height: | Size: 61 B |
|
After Width: | Height: | Size: 61 B |
|
After Width: | Height: | Size: 56 B |
|
After Width: | Height: | Size: 61 B |
|
After Width: | Height: | Size: 52 B |
|
After Width: | Height: | Size: 53 B |
|
After Width: | Height: | Size: 53 B |
|
After Width: | Height: | Size: 52 B |
|
After Width: | Height: | Size: 202 B |
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 6594 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../../../");
|
||||
exit;
|
||||
@@ -0,0 +1,984 @@
|
||||
/** Javascript B2C Relais Colis - version 2.0 - 08/07/2010 **/
|
||||
|
||||
var pathToImages = "./modules/tntcarrier/relaisColis/img/";
|
||||
var tntDomain = "www.tnt.fr";
|
||||
|
||||
var tntRCcodePostal;
|
||||
var tntRCCommune;
|
||||
var tntRClisteRelais;
|
||||
var tntRCJsonCommunes;
|
||||
|
||||
var tntRCMsgHeaderTitle = "Mode de livraison";
|
||||
var tntRCMsgSubHeaderTitle = "Choisissez le Relais Colis<sup class='tntRCSup'>®</sup> qui vous convient :";
|
||||
var tntRCMsgHeaderPopup = "Détail";
|
||||
var tntRCMsgSubHeaderPopup = "Descriptif :";
|
||||
var tntRCMsgBodyLoading = "Chargement en cours...";
|
||||
var tntRCMsgBodyInput = "Entrez le code postal : ";
|
||||
var tntRCMsgBodyBack2Communes = "Revenir à la liste des communes";
|
||||
var tntRCMsgErrCodePostal = "Veuillez saisir un code postal sur 5 chiffres";
|
||||
var tntRCMsgErrLoadCommunes = "Aucun Relais Colis® disponible";
|
||||
var tntRCMsgErrLoadRelais = "Aucun Relais Colis® disponible";
|
||||
|
||||
var tntRCsize800 = "550px";
|
||||
var tntRCsize789 = "589px";
|
||||
var tntRCsize670 = "470px";
|
||||
var tntRCsize650 = "450px";
|
||||
var tntRCsize50 = "50px";
|
||||
var tntRCsize8 = "8px";
|
||||
var tntRCsize5 = "5px";
|
||||
var tntRCsize6 = "6px";
|
||||
var tntRCsize10 = "10px";
|
||||
var tntRCsize30 = "30px";
|
||||
var tntRCsize109 = "109px";
|
||||
var tntRCsize442 = "362px";
|
||||
var tntRCsize447 = "387px";
|
||||
var tntRCsize218 = "178px";
|
||||
var tntRCsize253 = "213px";
|
||||
var tntRCsize20 = "20px";
|
||||
var tntRCsize392 = "352px";
|
||||
var tntRCsize412 = "332px";
|
||||
|
||||
function getURLParam(name) {
|
||||
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
|
||||
var regexS = "[\\?&]" + name + "=([^&#]*)";
|
||||
var regex = new RegExp( regexS );
|
||||
var results = regex.exec( window.location.href );
|
||||
if( results == null ) return "";
|
||||
else return results[1];
|
||||
};
|
||||
|
||||
// Chargement de la liste de relais colis après le choix de la commune parmis plusieurs
|
||||
// communes correspondant au même code postal
|
||||
function tntRCgetRelaisColisJSON(commune)
|
||||
{
|
||||
if (!commune) {
|
||||
// La commune du code postal correspond à la sélection du radio bouton tntRCchoixComm
|
||||
tntRCCommune = $("input[@type=radio][@checked][@name=tntRCchoixComm]").val();
|
||||
}
|
||||
else {
|
||||
// Utilisation de la valeur fournie en paramètre
|
||||
tntRCCommune = commune
|
||||
}
|
||||
|
||||
// Affichage message "chargement en cours"
|
||||
tntRCsetChargementEnCours();
|
||||
|
||||
var ajaxUrl;
|
||||
var ajaxData;
|
||||
|
||||
ajaxUrl = "http://" + tntDomain + "/public/b2c/relaisColis/loadJson.do?cp=" + tntRCcodePostal + "&commune=" + tntRCCommune;
|
||||
ajaxData = "";
|
||||
|
||||
// Chargement de la liste de relais colis
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: ajaxUrl,
|
||||
data: ajaxData,
|
||||
dataType: "script"
|
||||
});
|
||||
};
|
||||
|
||||
// Affichage d'une liste de relais colis
|
||||
function tntRCafficheRelais(jData) {
|
||||
|
||||
var jMessage = $('#blocCodePostal');
|
||||
|
||||
var tntRCjTable = $("<table style='border:1px solid gray;' cellpadding='0' cellspacing='0' width='" + tntRCsize800 + "'></table>");
|
||||
|
||||
// Ligne blanche de séparation
|
||||
tntRCjTable.append(tntRCligneBlanche6Col());
|
||||
|
||||
// Entêtes de colonnes grise
|
||||
tntRCjTable.append(tntRCenteteGrise6Col());
|
||||
|
||||
//affiche le contenu du fichier dans le conteneur dédié
|
||||
jMessage.html("");
|
||||
|
||||
var i = 0;
|
||||
|
||||
tntRClisteRelais = jData;
|
||||
for(i = 0; i < jData.length; i++) {
|
||||
|
||||
var oRelais = jData[i];
|
||||
|
||||
// Les noeuds dans le fichier XML ne sont pas forcément ordonnés pour l'affichage, on va donc d'abord récupérer leur valeur
|
||||
var codeRelais = oRelais[0];
|
||||
var nomRelais = oRelais[1];
|
||||
var adresse = oRelais[4];
|
||||
var codePostal = oRelais[2];
|
||||
var commune = oRelais[3];
|
||||
var heureFermeture = oRelais[21];
|
||||
|
||||
var messages="";
|
||||
|
||||
var logo_point = "";
|
||||
if (messages != "") logo_point = "<img src='" + pathToImages + "exception.gif' alt='Informations complémentaires' width='16px' height='16px'>";
|
||||
|
||||
tntRCjTable.append(
|
||||
"<tr>"+
|
||||
"<td class='tntRCblanc' width='" + tntRCsize5 + "'></td>"+
|
||||
"<td class='tntRCblanc' width='" + tntRCsize50 + "'><img src='" + pathToImages + "logo-tnt-petit.jpg'> " + logo_point + "</td>"+
|
||||
"<td class='tntRCrelaisColis' width='" + tntRCsize650 + "'>" + nomRelais + " - " + adresse + " - " + codePostal + " - " + commune + "<BR> >> Ouvert jusqu'à " + heureFermeture + "</td>"+
|
||||
"<td class='tntRCrelaisColis' width='" + tntRCsize10 + "'> </td>"+
|
||||
"<td class='tntRCrelaisColis' valign='middle' align='center' width='" + tntRCsize109 + "'>"+
|
||||
"<a href='#' onclick='tntRCafficheDetail(" + i + ");'><img src='" + pathToImages + "loupe.gif' class='tntRCBoutonLoupe'></a> "+
|
||||
"<input type='radio' style='vertical-align: middle;' name='tntRCchoixRelais' value='" + codeRelais + "'" + ( i==0 ? "checked" : "") + " onclick='tntRCSetSelectedInfo(" + i + ")'/>"+
|
||||
"</td>"+
|
||||
"<td class='tntRCblanc' width='" + tntRCsize6 + "'></td>"+
|
||||
"</tr>");
|
||||
}
|
||||
|
||||
// Mémorisation des infos du relais sélectionné par défaut (c'est le premier)
|
||||
tntRCSetSelectedInfo(0, true);
|
||||
|
||||
// Ajout du lien de retour sur la liste des communes si cette dernière a été mémorisée
|
||||
if (tntRCJsonCommunes != null) {
|
||||
tntRCjTable.append(
|
||||
"<tr>"+
|
||||
"<td colspan='5' class='tntRCBack2Communes'>"+
|
||||
"<a href='#' onclick='tntRCafficheCommunes(tntRCJsonCommunes);'>"+
|
||||
"<img src='" + pathToImages + "bt-Retour.gif'>"+
|
||||
tntRCMsgBodyBack2Communes +
|
||||
"</a>"+
|
||||
"</td>"+
|
||||
"<td />"+
|
||||
"</tr>");
|
||||
}
|
||||
|
||||
tntRCjTable.append(tntRCligneBlanche6Col());
|
||||
jMessage.append(tntRCjTable);
|
||||
|
||||
jMessage.append(tntRCchangerCodePostal());
|
||||
};
|
||||
|
||||
function tntB2CRelaisColisGetBodyMain() {
|
||||
return (
|
||||
"<div class='tntRCGray'> </div>"+
|
||||
"<div id='tntBodyContentSC'>" +
|
||||
"<table>"+
|
||||
"<tr>"+
|
||||
"<td>" + tntRCMsgBodyInput + "</td>"+
|
||||
"<td><input type='text' id='tntRCInputCP' class='tntRCInput' maxlength='5' size='5' value=''/></td>"+
|
||||
"<td><a href='#' onclick='tntRCgetCommunesJSON();'><img class='tntRCButton' src='" + pathToImages + "bt-OK-2.jpg' onmouseover='this.src=\"" + pathToImages + "bt-OK-1.jpg\"' onmouseout='this.src=\"" + pathToImages + "bt-OK-2.jpg\"'></a></td>" +
|
||||
"</tr>"+
|
||||
"</table>" +
|
||||
"</div>"+
|
||||
"<div id='tntRCLoading' style='display:none;'>" + tntRCMsgBodyLoading + "</div>"+
|
||||
"<div id='tntRCError' class='tntRCError' style='display:none;'></div>");
|
||||
}
|
||||
|
||||
function tntB2CRelaisColis() {
|
||||
|
||||
// Test si ID de référence existe, sinon on ne fait rien
|
||||
if (!document.getElementById("tntB2CRelaisColis")) {
|
||||
alert("ERREUR: Appel incorrect, objet [tntB2CRelaisColis] manquant !");
|
||||
return;
|
||||
}
|
||||
|
||||
tntRCCommune = '';
|
||||
|
||||
var tntRelaisColisB2C = $("#tntB2CRelaisColis");
|
||||
tntRelaisColisB2C.html(
|
||||
"<div id='tntRCblocEntete'>"+
|
||||
"<div class='tntRCHeader'>"+ tntRCMsgHeaderTitle + "</div>"+
|
||||
"<div class='tntRCSubHeader'>" + tntRCMsgSubHeaderTitle + "</div>"+
|
||||
"<input type='hidden' id='tntRCSelectedCode' value=''/>"+
|
||||
"<input type='hidden' id='tntRCSelectedNom' value=''/>"+
|
||||
"<input type='hidden' id='tntRCSelectedAdresse' value=''/>"+
|
||||
"<input type='hidden' id='tntRCSelectedCodePostal' value=''/>"+
|
||||
"<input type='hidden' id='tntRCSelectedCommune' value=''/>"+
|
||||
"</div>"+
|
||||
"<div id='blocCodePostal' class='tntRCBody'>"+
|
||||
tntB2CRelaisColisGetBodyMain() +
|
||||
"</div>" +
|
||||
"<div class='dialog_box' id='tntRCDialog'>"+
|
||||
"<div id='tntRCdetailRelaisEntete'>"+
|
||||
"<div class='tntRCHeader'>"+ tntRCMsgHeaderPopup + "</div>"+
|
||||
"<div class='tntRCSubHeader'>" + tntRCMsgSubHeaderPopup + "</div>"+
|
||||
"</div>"+
|
||||
"<div id='tntRCdetailRelaisCorps'></div>"+
|
||||
"</div>");
|
||||
|
||||
// Forçage de la propriété "top", car elle est écrasée par la gestion de jqModal
|
||||
// si on la met dans la définition de la classe du div correspondant...
|
||||
$('#tntRCDialog').css("top", "50%");
|
||||
|
||||
// Ajout de la popup dans la gestion jqModal
|
||||
|
||||
$('#tntRCDialog').dialog({
|
||||
modal: true,
|
||||
autoOpen: false,
|
||||
width: 635,
|
||||
height: 500,
|
||||
position: ['middle','middle'],
|
||||
resizable: false,
|
||||
draggable: false,
|
||||
show: 'blind',
|
||||
close: function(event, ui) {
|
||||
$("html").css({overflow: "", 'overflow-x': "", 'overflow-y': ""});
|
||||
}
|
||||
});
|
||||
|
||||
// Récupérations des paramètres de l'URL
|
||||
var codePostal = getURLParam("codePostal");
|
||||
var commune = getURLParam("commune");
|
||||
|
||||
if (codePostal != "") {
|
||||
tntRCcodePostal = codePostal;
|
||||
if (commune != "") {
|
||||
// Couple code postal + commune fourni
|
||||
tntRCgetRelaisColisJSON(commune);
|
||||
}
|
||||
else {
|
||||
$('#tntRCInputCP').val(tntRCcodePostal);
|
||||
tntRCgetCommunesJSON();
|
||||
}
|
||||
}
|
||||
|
||||
// Initialisation de Map associée
|
||||
tntRCInitMap();
|
||||
};
|
||||
|
||||
function tntRCgetRelaisColis(libelleErreur) {
|
||||
|
||||
// RAZ des infos sélectionnées
|
||||
tntRCSetSelectedInfo();
|
||||
|
||||
tntRCCommune = '';
|
||||
|
||||
var blocCodePostal = $("#blocCodePostal");
|
||||
if(!blocCodePostal.hasClass("tntRCBody"))
|
||||
blocCodePostal.addClass("tntRCBody");
|
||||
blocCodePostal.html(tntB2CRelaisColisGetBodyMain());
|
||||
$('#tntRCInputCP').val(tntRCcodePostal);
|
||||
|
||||
if (libelleErreur) {
|
||||
var jDivErreur = $("#tntRCError");
|
||||
jDivErreur.html(libelleErreur);
|
||||
jDivErreur.show();
|
||||
}
|
||||
};
|
||||
|
||||
function tntRCafficheCommunes(jData) {
|
||||
|
||||
// RAZ des infos sélectionnées
|
||||
tntRCSetSelectedInfo();
|
||||
|
||||
if (mapDetected) resetMap();
|
||||
|
||||
var tntRCjTable = $("<table style='border:1px solid gray;' cellpadding='0' cellspacing='0' width='" + tntRCsize800 + "'></table>");
|
||||
|
||||
// Ligne blanche de séparation
|
||||
tntRCjTable.append(tntRCligneBlanche6Col());
|
||||
// Entêtes de colonnes grise
|
||||
tntRCjTable.append(tntRCenteteGrise6Col());
|
||||
|
||||
var blocCodePostal = $("#blocCodePostal");
|
||||
|
||||
var i = 1;
|
||||
//var jCommunes = jData.find("VILLE");
|
||||
for (var iIdx = 0; iIdx < jData.length; iIdx++) {
|
||||
|
||||
var commune = jData[iIdx];
|
||||
|
||||
//var jCommune = $(this);
|
||||
var nomVille = commune[1]; // IE vs FF
|
||||
|
||||
tntRCjTable.append(
|
||||
"<tr>"+
|
||||
"<td class='tntRCblanc' width='" + tntRCsize5 + "'></td>"+
|
||||
"<td class='tntRCblanc' width='" + tntRCsize50 + "'><img src='" + pathToImages + "logo-tnt-petit.jpg'></td>" +
|
||||
"<td class='tntRCrelaisColis' width='" + tntRCsize650 + "'> " + nomVille + " (" + tntRCcodePostal + ") </td>" +
|
||||
"<td class='tntRCrelaisColis' width='" + tntRCsize10 + "'> </td>"+
|
||||
"<td class='tntRCrelaisColis' align='center' width='" + tntRCsize109 + "'>"+
|
||||
"<input type='radio' name='tntRCchoixComm' value='" + nomVille + "' " + ( i ==1 ? "checked" : "") + ">"+
|
||||
"</td>"+
|
||||
"<td class='tntRCblanc' width='" + tntRCsize6 + "'></td>"+
|
||||
"</tr>");
|
||||
i = 2;
|
||||
}
|
||||
|
||||
tntRCjTable.append(
|
||||
tntRCligneBlanche6Col() +
|
||||
"<tr>"+
|
||||
"<td class='tntRCblanc' width='" + tntRCsize5 + "'></td>"+
|
||||
"<td class='tntRCblanc' colspan='2' width='" + tntRCsize670 + "'></td>"+
|
||||
"<td class='tntRCblanc' width='" + tntRCsize10 + "'></td>"+
|
||||
"<td class='tntRCblanc' align='center' width='" + tntRCsize109 + "'>"+
|
||||
"<a href='javascript:tntRCgetRelaisColisJSON();'><img class='tntRCButton' src='" + pathToImages + "bt-Continuer-2.jpg' onmouseover='this.src=\"" + pathToImages + "bt-Continuer-1.jpg\"' onmouseout='this.src=\"" + pathToImages + "bt-Continuer-2.jpg\"'></a>" +
|
||||
"</td>"+
|
||||
"<td class='tntRCblanc' width='" + tntRCsize6 + "'></td>"+
|
||||
"</tr>" +
|
||||
tntRCligneBlanche6Col());
|
||||
|
||||
blocCodePostal.html(tntRCjTable);
|
||||
|
||||
// Bloc de saisie d'un nouveau code postal
|
||||
blocCodePostal.append(tntRCchangerCodePostal());
|
||||
}
|
||||
|
||||
function tntRCgetCommunesJSON() {
|
||||
|
||||
$("#tntRCError").hide();
|
||||
tntRCcodePostal = $('#tntRCInputCP').val();
|
||||
|
||||
// Code postal non renseigné, on ne fait rien
|
||||
if (tntRCcodePostal=="") return;
|
||||
|
||||
if (mapDetected) resetMap();
|
||||
|
||||
// On ne fait rien si le code postal n'est pas un nombre de 5 chiffres
|
||||
if (isNaN(parseInt(tntRCcodePostal)) || tntRCcodePostal.length != 5) {
|
||||
tntRCgetRelaisColis(tntRCMsgErrCodePostal);
|
||||
return;
|
||||
}
|
||||
|
||||
tntRCsetChargementEnCours();
|
||||
|
||||
var ajaxUrl;
|
||||
var ajaxData;
|
||||
|
||||
ajaxUrl = "http://" + tntDomain + "/public/b2c/relaisColis/rechercheJson.do?code=" + tntRCcodePostal;
|
||||
ajaxData = "";
|
||||
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: ajaxUrl,
|
||||
data: ajaxData,
|
||||
dataType: "script",
|
||||
error:function(msg){
|
||||
$("#blocCodePostal").html("Error !: " + msg );
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
function tntRCsetChargementEnCours() {
|
||||
$("#tntRCLoading").show();
|
||||
};
|
||||
|
||||
function tntRCafficheDetail(i) {
|
||||
|
||||
var tntRCdetailRelais = $("#tntRCdetailRelaisCorps");
|
||||
|
||||
tntRCdetailRelais.html("");
|
||||
|
||||
var oRelais = tntRClisteRelais[i];
|
||||
|
||||
// Les noeuds dans le fichier JSON ne sont pas forcément ordonnés pour l'affichage, on va donc d'abord récupérer leur valeur
|
||||
var codeRelais = oRelais[0]
|
||||
var nomRelais = oRelais[1];
|
||||
var adresse = oRelais[4];
|
||||
var codePostal = oRelais[2];
|
||||
var commune = oRelais[3];
|
||||
var heureFermeture = oRelais[21];
|
||||
|
||||
var lundi_am = (oRelais[7] == "-")?"fermé":oRelais[7];
|
||||
var lundi_pm = (oRelais[8] == "-")?"fermé":oRelais[8];
|
||||
var mardi_am = (oRelais[9] == "-")?"fermé":oRelais[9];
|
||||
var mardi_pm = (oRelais[10] == "-")?"fermé":oRelais[10];
|
||||
var mercredi_am = (oRelais[11] == "-")?"fermé":oRelais[11];
|
||||
var mercredi_pm = (oRelais[12] == "-")?"fermé":oRelais[12];
|
||||
var jeudi_am = (oRelais[13] == "-")?"fermé":oRelais[13];
|
||||
var jeudi_pm = (oRelais[14] == "-")?"fermé":oRelais[14];
|
||||
var vendredi_am = (oRelais[15] == "-")?"fermé":oRelais[15];
|
||||
var vendredi_pm = (oRelais[16] == "-")?"fermé":oRelais[16];
|
||||
var samedi_am = (oRelais[17] == "-")?"fermé":oRelais[17];
|
||||
var samedi_pm = (oRelais[18] == "-")?"fermé":oRelais[18];
|
||||
var dimanche_am = (oRelais[19] == "-")?"fermé":oRelais[19];
|
||||
var dimanche_pm = (oRelais[20] == "-")?"fermé":oRelais[20];
|
||||
|
||||
var messages = "";
|
||||
for (j=0; j < oRelais[24].length; j++) {
|
||||
var ligne = oRelais[24][j];
|
||||
if (ligne != "") messages = messages + ligne + "<br/>";
|
||||
}
|
||||
|
||||
if (lundi_pm != "-") lundi_am = lundi_am + "<br/>" + lundi_pm;
|
||||
if (mardi_pm != "-") mardi_am = mardi_am + "<br/>" + mardi_pm;
|
||||
if (mercredi_pm != "-") mercredi_am = mercredi_am + "<br/>" + mercredi_pm;
|
||||
if (jeudi_pm != "-") jeudi_am = jeudi_am + "<br/>" + jeudi_pm;
|
||||
if (vendredi_pm != "-") vendredi_am = vendredi_am + "<br/>" + vendredi_pm;
|
||||
if (samedi_pm != "-") samedi_am = samedi_am + "<br/>" + samedi_pm;
|
||||
if (dimanche_pm != "-") dimanche_am = dimanche_am + "<br/>" + dimanche_pm;
|
||||
|
||||
var logo_point = "";
|
||||
if (messages != "") logo_point = "<img src='" + pathToImages + "exception.gif' alt='Picto Informations'>";
|
||||
|
||||
var tntRCjTableX = $("<table style='border:1px solid gray;' cellpadding='0' cellspacing='0' width='" + tntRCsize447 + "'>"
|
||||
+ "<tr>"
|
||||
+ "<td width='" + tntRCsize447 + "' valign='top'>"
|
||||
+ "<table style='border:0px;' cellpadding='0' cellspacing='0' width='" + tntRCsize447 + "'>"
|
||||
+ "<tr>"
|
||||
+ "<td>"
|
||||
+ "<table style='border:0px;' cellpadding='0' cellspacing='0' >"
|
||||
+ "<tr height='" + tntRCsize8 + "'><td colspan='4'></td></tr>"
|
||||
+ "<tr>"
|
||||
+ "<td class='tntRCdetailGros' width='" + tntRCsize5 + "'> </td>"
|
||||
+ "<td class='tntRCdetailGros' width='" + tntRCsize442 + "' colspan='3'>Localisation : </td>"
|
||||
+ "</tr>"
|
||||
+ "<tr height='" + tntRCsize20 + "'><td colspan='4'></td></tr>"
|
||||
+ "<tr>"
|
||||
+ "<td class='tntRCdetailGros' width='"+ tntRCsize5 + "'> </td>"
|
||||
+ "<td class='tntRCdetailGros' width='"+ tntRCsize30 + "'> </td>"
|
||||
+ "<td class='tntRCnoirPetit' width='"+ tntRCsize412 + "' colspan ='2'><b>" + nomRelais + "</b></td>"
|
||||
+ "</tr>"
|
||||
+ "<tr>"
|
||||
+ "<td class='tntRCdetailGros' width='"+ tntRCsize5 + "'> </td>"
|
||||
+ "<td class='tntRCdetailGros' width='"+ tntRCsize30 + "'> </td>"
|
||||
+ "<td class='tntRCnoirPetit' width='"+ tntRCsize412 + "' colspan ='2'>" + adresse + "</td>"
|
||||
+ "</tr>"
|
||||
+ "<tr>"
|
||||
+ "<td class='tntRCdetailGros' width='"+ tntRCsize5 + "'> </td>"
|
||||
+ "<td class='tntRCdetailGros' width='"+ tntRCsize30 + "'> </td>"
|
||||
+ "<td class='tntRCnoirPetit' width='"+ tntRCsize412 + "' colspan ='2'>" + codePostal + " " + commune + "</td>"
|
||||
+ "</tr>"
|
||||
+ "<tr height='" + tntRCsize50 + "'><td colspan='4'></td></tr>"
|
||||
+ "<tr>"
|
||||
+ "<td class='tntRCdetailGros' width='" + tntRCsize5 + "'> </td>"
|
||||
+ "<td class='tntRCdetailGros' width='" + tntRCsize442 + "' colspan='3'>Informations : </td>"
|
||||
+ "</tr>"
|
||||
+ "<tr height='" + tntRCsize8 + "'><td colspan='4'></td></tr>"
|
||||
+ "<tr>"
|
||||
+ "<td class='tntRCdetailGros' width='"+ tntRCsize5 + "'></td>"
|
||||
+ "<td class='tntRCdetailGros' width='"+ tntRCsize30 + "'> " + logo_point + "</td>"
|
||||
+ "<td class='tntRCdetailPetit' width='"+ tntRCsize412 + "' colspan ='2'>" + messages + "</td>"
|
||||
+ "</tr>"
|
||||
+ "</table>"
|
||||
+ "</td>"
|
||||
+ "</tr>"
|
||||
+ "</table>"
|
||||
+ "</td>"
|
||||
+ "<td width='" + tntRCsize253 + "' valign='top'>"
|
||||
+ "<table style='border:0px;' cellpadding='0' cellspacing='0' width='" + tntRCsize253 + "'>"
|
||||
+ "<tr>"
|
||||
+ "<td>"
|
||||
+ "<table style='border:0px;' cellpadding='0' cellspacing='0'>"
|
||||
+ "<tr height='" + tntRCsize8 + "'>"
|
||||
+ "<td colspan='4'></td>"
|
||||
+ "</tr>"
|
||||
+ "<tr>"
|
||||
+ "<td class='tntRCdetailGros'><img src='" + pathToImages + "picto-delai.gif' alt='Picto delai'></td>"
|
||||
+ "<td class='tntRCdetailGros' colspan='3'>Horaires d'ouverture : </td>"
|
||||
+ "</tr>"
|
||||
+ "<tr>"
|
||||
+ "<td class='tntRCdetailGros' width='"+ tntRCsize30 + "'></td>"
|
||||
+ "<td>"
|
||||
+ "<table class='tntRCHoraire' cellpadding='0' cellspacing='0' rules='all' width='" + tntRCsize218 + "'>"
|
||||
+ "<tr>"
|
||||
+ "<td class='tntRCHoraireJour'>Lundi</td>"
|
||||
+ "<td class='tntRCHoraireHeure'>" + lundi_am + "</td>"
|
||||
+ "</tr>"
|
||||
+ "<tr>"
|
||||
+ "<td class='tntRCHoraireJour'>Mardi</td>"
|
||||
+ "<td class='tntRCHoraireHeure'>" + mardi_am + "</td>"
|
||||
+ "</tr>"
|
||||
+ "<tr>"
|
||||
+ "<td class='tntRCHoraireJour'>Mercredi</td>"
|
||||
+ "<td class='tntRCHoraireHeure'>" + mercredi_am + "</td>"
|
||||
+ "</tr>"
|
||||
+ "<tr>"
|
||||
+ "<td class='tntRCHoraireJour'>Jeudi</td>"
|
||||
+ "<td class='tntRCHoraireHeure'>" + jeudi_am + "</td>"
|
||||
+ "</tr>"
|
||||
+ "<tr>"
|
||||
+ "<td class='tntRCHoraireJour'>Vendredi</td>"
|
||||
+ "<td class='tntRCHoraireHeure'>" + vendredi_am + "</td>"
|
||||
+ "</tr>"
|
||||
+ "<tr>"
|
||||
+ "<td class='tntRCHoraireJour'>Samedi</td>"
|
||||
+ "<td class='tntRCHoraireHeure'>" + samedi_am + "</td>"
|
||||
+ "</tr>"
|
||||
+ "<tr>"
|
||||
+ "<td class='tntRCHoraireJour'>Dimanche</td>"
|
||||
+ "<td class='tntRCHoraireHeure'>" + dimanche_am + "</td>"
|
||||
+ "</tr>"
|
||||
+ "</table>"
|
||||
+ "</td>"
|
||||
+ "<td class='tntRCdetailGros' width='"+ tntRCsize5 + "'></td>"
|
||||
+ "</tr>"
|
||||
+ "</table>"
|
||||
+ "</td>"
|
||||
+ "</tr>"
|
||||
+ "</table>"
|
||||
+ "</td>"
|
||||
+ "</tr>"
|
||||
+ "<tr height='" + tntRCsize8 + "'></tr>"
|
||||
+ "</table>");
|
||||
|
||||
tntRCdetailRelais.append(tntRCjTableX);
|
||||
|
||||
$('#tntRCDialog').dialog("open");
|
||||
$('#tntRCDialog').css("width", "600px"); // Patch mauvais calcul jQueryUI
|
||||
// Masquage des barres de scrolling
|
||||
$("html").css({overflow: "hidden", 'overflow-x': "hidden", 'overflow-y': "hidden"});
|
||||
};
|
||||
|
||||
function tntRCligneBlancheDetail(){
|
||||
return("<tr height='" + tntRCsize5 + "'><td colspan='8'> </td></tr>");
|
||||
};
|
||||
|
||||
function tntRCligneBlancheGauche(){
|
||||
return(
|
||||
"<tr height='" + tntRCsize8 + "'>"+
|
||||
"<td class='tntRCdetailGros' width='" + tntRCsize5 + "'></td>"+
|
||||
"<td class='tntRCdetailGros' width='" + tntRCsize30 + "'></td>"+
|
||||
"<td class='tntRCdetailGros' width='" + tntRCsize20 + "'></td>"+
|
||||
"<td class='tntRCdetailGros' width='" + tntRCsize392 + "'></td>"+
|
||||
"</tr>");
|
||||
};
|
||||
|
||||
// Table vide avec 3 colonnes pour sauter une ligne
|
||||
function tntRCligneBlanche3Col() {
|
||||
return("<tr height='" + tntRCsize8 + "'><td class='tntRCblanc' width='" + tntRCsize5 + "'></td><td class='tntRCblanc' width='" + tntRCsize789 + "'></td><td class='tntRCblanc' width='" + tntRCsize6 + "'></td></tr>");
|
||||
};
|
||||
|
||||
// Table vide avec 6 colonnes pour sauter une ligne
|
||||
function tntRCligneBlanche6Col() {
|
||||
return("<tr height='" + tntRCsize8 + "'><td class='tntRCblanc' colspan='6'></td></td></tr>");
|
||||
};
|
||||
|
||||
// Table vide avec 3 colonnes et entête en gris
|
||||
function tntRCligneGrise3Col() {
|
||||
return("<tr><td class='tntRCblanc' width='" + tntRCsize5 + "'></td><td class='tntRCgris' width='" + tntRCsize789 + "'><br/></td><td class='tntRCblanc' width='" + tntRCsize6 + "'></td></tr>");
|
||||
};
|
||||
|
||||
// Table entête de colonnes grises
|
||||
function tntRCenteteGrise6Col() {
|
||||
return("<tr><td class='tntRCblanc' width='" + tntRCsize5 + "'></td><td class='tntRCgris' colspan='2' width='" + tntRCsize670 + "'> Les différents Relais Colis®</td><td class='tntRCblanc' width='" + tntRCsize10 + "'></td><td class='tntRCgris' width='" + tntRCsize109 + "'> Mon choix</td><td class='tntRCblanc' width='" + tntRCsize6 + "'></td></tr>");
|
||||
};
|
||||
|
||||
// Zone de saisie d'un code postal nouveau
|
||||
function tntRCchangerCodePostal(){
|
||||
return(
|
||||
"<div class='tntRCWhite'> </div>"+
|
||||
"<div class='tntRCBodySearch'>"+
|
||||
"<table>"+
|
||||
"<tr>"+
|
||||
"<td width='350px'>Vous pouvez choisir un autre code postal de livraison :</td>"+
|
||||
"<td width='55px'><input type='text' id='tntRCInputCP' class='tntRCInput' maxlength='5' size='5' value='' /></td>"+
|
||||
"<td><a href='#' onclick='tntRCgetCommunesJSON();'><img class='tntRCButton' src='" + pathToImages + "bt-CodePostal-2.jpg' onmouseover='this.src=\"" + pathToImages + "bt-CodePostal-1.jpg\"' onmouseout='this.src=\"" + pathToImages + "bt-CodePostal-2.jpg\"'></a></td>" +
|
||||
"</tr>"+
|
||||
"</table>"+
|
||||
"</div>");
|
||||
};
|
||||
|
||||
function tntRCSetSelectedInfo(selectedIdx, noMarkerInfo) {
|
||||
|
||||
if (!selectedIdx && selectedIdx != 0) {
|
||||
// RAZ des infos sélectionnées
|
||||
$("#tntRCSelectedCode").val("");
|
||||
$("#tntRCSelectedNom").val("");
|
||||
$("#tntRCSelectedAdresse").val("");
|
||||
$("#tntRCSelectedCodePostal").val("");
|
||||
$("#tntRCSelectedCommune").val("");
|
||||
return
|
||||
}
|
||||
|
||||
var oRelais = tntRClisteRelais[selectedIdx];
|
||||
|
||||
$("#tntRCSelectedCode").val(oRelais[0]);
|
||||
$("#tntRCSelectedNom").val(oRelais[1]);
|
||||
$("#tntRCSelectedAdresse").val(oRelais[4]);
|
||||
$("#tntRCSelectedCodePostal").val(oRelais[2]);
|
||||
$("#tntRCSelectedCommune").val(oRelais[3]);
|
||||
var id_cart = document.getElementById("cartRelaisColis").value;
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "./modules/tntcarrier/relaisColis/postRelaisData.php",
|
||||
data: "id_cart="+id_cart+"&tntRCSelectedCode="+oRelais[0]+"&tntRCSelectedNom="+oRelais[1]+"&tntRCSelectedAdresse="+oRelais[4]+"&tntRCSelectedCodePostal="+oRelais[2]+"&tntRCSelectedCommune="+oRelais[3]
|
||||
});
|
||||
|
||||
if (mapDetected && !noMarkerInfo) {
|
||||
|
||||
// Les noeuds dans le fichier XML ne sont pas forcément ordonnés pour l'affichage, on va donc d'abord récupérer leur valeur
|
||||
var codeRelais = oRelais[0]
|
||||
var nomRelais = oRelais[1];
|
||||
var adresse = oRelais[4];
|
||||
var codePostal = oRelais[2];
|
||||
var commune = oRelais[3];
|
||||
var heureFermeture = oRelais[21];
|
||||
|
||||
var messages = "";
|
||||
var lundi_am = (oRelais[7] == "-")?",":oRelais[7]+",";
|
||||
var lundi_pm = oRelais[8];
|
||||
var mardi_am = (oRelais[9] == "-")?",":oRelais[9]+",";
|
||||
var mardi_pm = oRelais[10];
|
||||
var mercredi_am = (oRelais[11] == "-")?",":oRelais[11]+",";
|
||||
var mercredi_pm = oRelais[12];
|
||||
var jeudi_am = (oRelais[13] == "-")?",":oRelais[13]+",";
|
||||
var jeudi_pm = oRelais[14];
|
||||
var vendredi_am = (oRelais[15] == "-")?",":oRelais[15]+",";
|
||||
var vendredi_pm = oRelais[16];
|
||||
var samedi_am = (oRelais[17] == "-")?",":oRelais[17]+",";
|
||||
var samedi_pm = oRelais[18];
|
||||
var dimanche_am = (oRelais[19] == "-")?",":oRelais[19]+",";
|
||||
var dimanche_pm = oRelais[20];
|
||||
|
||||
if (lundi_pm != "-") lundi_am = lundi_am + lundi_pm;
|
||||
if (mardi_pm != "-") mardi_am = mardi_am + mardi_pm;
|
||||
if (mercredi_pm != "-") mercredi_am = mercredi_am + mercredi_pm;
|
||||
if (jeudi_pm != "-") jeudi_am = jeudi_am + jeudi_pm;
|
||||
if (vendredi_pm != "-") vendredi_am = vendredi_am + vendredi_pm;
|
||||
if (samedi_pm != "-") samedi_am = samedi_am + samedi_pm;
|
||||
if (dimanche_pm != "-") dimanche_am = dimanche_am + dimanche_pm;
|
||||
|
||||
var horaires = new Array();
|
||||
horaires['lundi'] = lundi_am + ",1";
|
||||
horaires['mardi'] = mardi_am + ",2";
|
||||
horaires['mercredi'] = mercredi_am + ",3";
|
||||
horaires['jeudi'] = jeudi_am + ",4";
|
||||
horaires['vendredi'] = vendredi_am + ",5";
|
||||
horaires['samedi'] = samedi_am + ",6";
|
||||
horaires['dimanche'] = dimanche_am + ",0";
|
||||
|
||||
var messages = "";
|
||||
for (j=0; j < oRelais[24].length; j++) {
|
||||
var ligne = oRelais[24][j];
|
||||
if (ligne != "") messages = messages + ligne + "<br/>";
|
||||
}
|
||||
|
||||
setInfoMarker(codeRelais, nomRelais, adresse, codePostal, commune, messages, selectedIdx, horaires, relaisMarkers[selectedIdx]);
|
||||
}
|
||||
}
|
||||
|
||||
function resetMap() {
|
||||
|
||||
if (map) {
|
||||
|
||||
map.getStreetView().setVisible(false);
|
||||
|
||||
for (var i = 0; i < relaisMarkers.length; i++) {
|
||||
relaisMarkers[i].setMap(null);
|
||||
relaisMarkers[i] = null;
|
||||
}
|
||||
relaisMarkers = new Array();
|
||||
if (infowindow) infowindow.close();
|
||||
map.setZoom(defaultZoom);
|
||||
map.setCenter(defaultCenter);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Fonction appellée en retour de la recherche des communes par rapport à un code postal
|
||||
* si plusieurs communes ont été trouvées
|
||||
*/
|
||||
|
||||
function listeCommunes(tabCommunes) {
|
||||
tntRCJsonCommunes = null;
|
||||
|
||||
// TEMP: car le contenu du div est entièrement reconstruit
|
||||
$("#blocCodePostal").removeClass("tntRCBody");
|
||||
|
||||
tntRCJsonCommunes = tabCommunes;
|
||||
tntRCafficheCommunes(tabCommunes);
|
||||
}
|
||||
|
||||
/*
|
||||
* Fonction appellée en retour de la recherche des communes par rapport à un code postal
|
||||
* si une seule commune a été trouvée
|
||||
*/
|
||||
|
||||
function listeRelais(tabRelais) {
|
||||
|
||||
tntRClisteRelais = null;
|
||||
|
||||
// TEMP: car le contenu du div est entièrement reconstruit
|
||||
$("#blocCodePostal").removeClass("tntRCBody");
|
||||
|
||||
tntRCafficheRelais(tabRelais);
|
||||
if (mapDetected) init_marker(tabRelais);
|
||||
}
|
||||
|
||||
/*
|
||||
* Fonction appellée en retour de la recherche des communes si aucune commune trouvée
|
||||
*/
|
||||
function erreurListeCommunes() {
|
||||
tntRCJsonCommunes = null;
|
||||
tntRCgetRelaisColis(tntRCMsgErrLoadCommunes);
|
||||
}
|
||||
|
||||
function erreurListeRelais() {
|
||||
tntRCgetRelaisColis(tntRCMsgErrLoadRelais);
|
||||
}
|
||||
|
||||
|
||||
/************************************************************************************************
|
||||
* Partie Google Map
|
||||
***********************************************************************************************/
|
||||
|
||||
var map;
|
||||
var adresse_pointclic;
|
||||
var zone_chalandise;
|
||||
var zoomZoneChalandiseDefault;
|
||||
var centerZoneChalandiseDefault;
|
||||
var init_streetview = false;
|
||||
|
||||
var contentTo = [
|
||||
'<br/><div>',
|
||||
'Itinéraire : <b>Vers ce lieu</b> - <a href="javascript:fromhere(0)">A partir de ce lieu</a><br/>',
|
||||
'Lieu de départ<br/>',
|
||||
'<input type="text" id="saisie" name="saisie" value="" maxlength="500" size="30">',
|
||||
'<input type="hidden" id="mode" name="mode" value="toPoint">',
|
||||
'<input type="hidden" id="point_choisi" name="point_choisi" value="">',
|
||||
'<input type="submit" onclick="popup_roadmap();" value="Ok">',
|
||||
'<br/>Ex: 58 avenue Leclerc 69007 Lyon',
|
||||
'</div>'].join('');
|
||||
|
||||
var contentFrom = [
|
||||
'<br/><div>',
|
||||
'Itinéraire : <a href="javascript:tohere(0)">Vers ce lieu</a> - <b>A partir de ce lieu</b><br/>',
|
||||
'Lieu d\'arrivée<br/>',
|
||||
'<input type="text" id="saisie" name="saisie" value="" maxlength="500" size="30">',
|
||||
'<input type="hidden" id="mode" name="mode" value="fromPoint">',
|
||||
'<input type="hidden" id="point_choisi" name="point_choisi" value="">',
|
||||
'<input type="button" onclick="popup_roadmap();" value="Ok">',
|
||||
'<br/>Ex: 58 avenue Leclerc 69007 Lyon',
|
||||
'</div>'].join('');
|
||||
|
||||
var infowindow;
|
||||
|
||||
var relaisMarkers = [];
|
||||
var iconRelais = new google.maps.MarkerImage(
|
||||
"img/google/relaisColis.png",
|
||||
new google.maps.Size(40, 30),
|
||||
new google.maps.Point(0, 0),
|
||||
new google.maps.Point(20, 30))
|
||||
|
||||
//Limites de la France
|
||||
var allowedBounds = new google.maps.LatLngBounds(
|
||||
new google.maps.LatLng(39.56533418570851, -7.41426946590909),
|
||||
new google.maps.LatLng(52.88994181429149, 11.84176746590909));
|
||||
|
||||
var defaultCenter = new google.maps.LatLng(46.2276380, 2.2137490); // the center ???
|
||||
var defaultZoom = 5; // default zoom level
|
||||
var aberration = 0.2; // this value is a good choice for france (?!)
|
||||
var minMapScale = 5;
|
||||
//var maxMapScale = 20;
|
||||
|
||||
var mapDetected = false;
|
||||
var callbackLinkMarker = "";
|
||||
|
||||
// fonction appellé après saisie du code postal de recherche
|
||||
function init_marker(json) {
|
||||
|
||||
zone_chalandise = new google.maps.LatLngBounds();
|
||||
|
||||
for (var i = 0; i < relaisMarkers.length; i++) {
|
||||
relaisMarkers[i].setMap(null);
|
||||
relaisMarkers[i] = null;
|
||||
}
|
||||
relaisMarkers = new Array();
|
||||
|
||||
if (infowindow) infowindow.close();
|
||||
|
||||
var markers = json;
|
||||
|
||||
for (var i = 0; i < markers.length; i++) {
|
||||
createMarker(markers[i], i);
|
||||
}
|
||||
|
||||
zoomZoneChalandiseDefault = zone_chalandise.getCenter();
|
||||
centerZoneChalandiseDefault = zone_chalandise;
|
||||
|
||||
retourZoomChalandise();
|
||||
}
|
||||
|
||||
function setInfoMarker(codeRelais, nomRelais, adresse, codePostal, commune, messages, indice, horaires, marker) {
|
||||
|
||||
var htmlInfo = [
|
||||
"<div>",
|
||||
"<div class='rc'>",
|
||||
"<b>RELAIS COLIS N° ", codeRelais, "</b><br/>",
|
||||
"<b>", nomRelais, "</b><br/>",
|
||||
adresse, "<br/>",
|
||||
codePostal, " ", commune,
|
||||
"</div>",
|
||||
"<div><br/>", messages, "</div>",
|
||||
callbackLinkMarker,
|
||||
"</div>",
|
||||
"<div id='trajet'>" + contentTo + "</div>"
|
||||
].join('');
|
||||
|
||||
// Création du contenu de l'onglet horaire
|
||||
var htmlHoraires = "<table class='horairesRCPopup'>";
|
||||
var jourSemaine = (new Date()).getDay();
|
||||
for (jour in horaires) {
|
||||
var heures = (horaires[jour]).split(",");
|
||||
if (heures[0] == '' && heures[1] == '') heures[0] = "fermé";
|
||||
htmlHoraires = htmlHoraires + "<tr" + (jourSemaine == parseInt(heures[2]) ? " class='selected'" : "") + "><td class='horairesRCJourPopup'> " + jour + "</td><td class='horaireRCPopup'>" + heures[0] + " " + heures[1] + "</td></tr>";
|
||||
}
|
||||
htmlHoraires = htmlHoraires + "</table>";
|
||||
|
||||
adresse_pointclic = [adresse, "|", codePostal, " ", commune].join('');
|
||||
|
||||
var contentString = [
|
||||
'<div id="tabs" style="width:340px;">',
|
||||
'<ul>',
|
||||
'<li><a href="#tabInfos"><span>Infos</span></a></li>',
|
||||
'<li><a href="#tabHoraires"><span>Horaires</span></a></li>',
|
||||
'</ul>',
|
||||
'<div id="tabInfos">',
|
||||
htmlInfo,
|
||||
'</div>',
|
||||
'<div id="tabHoraires">',
|
||||
htmlHoraires,
|
||||
'</div>',
|
||||
'</div>'
|
||||
].join('');
|
||||
|
||||
if (infowindow) infowindow.close();
|
||||
infowindow = new google.maps.InfoWindow({content: contentString});
|
||||
|
||||
google.maps.event.addListener(infowindow, "domready", function() {
|
||||
$("#point_choisi").attr("value", adresse_pointclic);
|
||||
$("#tabs").tabs();
|
||||
$("#tabs").parent().removeAttr("style");
|
||||
});
|
||||
|
||||
infowindow.open(map, marker);
|
||||
}
|
||||
|
||||
function createMarker(markerData, indice) {
|
||||
|
||||
var marker = new google.maps.Marker({
|
||||
icon: iconRelais,
|
||||
position: new google.maps.LatLng(markerData[5], markerData[6]),
|
||||
map: map,
|
||||
title:markerData[1]
|
||||
});
|
||||
|
||||
google.maps.event.addListener(marker, "click", function() {
|
||||
// Sélectionne le relais correspondant dans la liste
|
||||
$("input[@type=radio][@name=tntRCchoixRelais]:eq("+ indice + ")").attr("checked", true);
|
||||
tntRCSetSelectedInfo(indice);
|
||||
});
|
||||
|
||||
relaisMarkers.push(marker);
|
||||
zone_chalandise.extend(marker.getPosition());
|
||||
}
|
||||
|
||||
|
||||
function tntRCInitMap() {
|
||||
|
||||
// Si la carte n'est pas présente, fin de l'initialisation
|
||||
if (!document.getElementById("map_canvas")) return;
|
||||
mapDetected = true;
|
||||
|
||||
// Si une fonction de callback a été définie, un lien est ajouté
|
||||
// dans la popup d'info du marqueur de relais colis
|
||||
if (window.callbackSelectionRelais) callbackLinkMarker = "<a onclick='callbackSelectionRelais();' href='#' style='color:#FF6600'>Choisir ce relais</a>";
|
||||
|
||||
//Ajout du lien pour retour en zoom zone de chalandise
|
||||
var jMapCanvas = $("#map_canvas");
|
||||
jMapCanvas.wrap("<div></div>");
|
||||
jMapCanvas.parent().append("<a class=\"lien_reset\" href=\"#\" onclick=\"javascript:retourZoomChalandise();\" style=\"text-decoration:none;\">Retour à la vue initiale</a>");
|
||||
|
||||
var mapClass = jMapCanvas.attr("class");
|
||||
if (mapClass && mapClass != "") {
|
||||
jMapCanvas.attr("class", "");
|
||||
jMapCanvas.parent().attr("class", mapClass);
|
||||
}
|
||||
|
||||
var myOptions = {
|
||||
zoom: defaultZoom,
|
||||
center: defaultCenter,
|
||||
mapTypeId: google.maps.MapTypeId.ROADMAP,
|
||||
navigationControl: true,
|
||||
scaleControl: true,
|
||||
mapTypeControl: true,
|
||||
streetViewControl: true
|
||||
};
|
||||
|
||||
map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
|
||||
|
||||
// If the map position is out of range, move it back
|
||||
function checkBounds() {
|
||||
|
||||
// Perform the check and return if OK
|
||||
var currentBounds = map.getBounds();
|
||||
var cSpan = currentBounds.toSpan(); // width and height of the bounds
|
||||
var offsetX = cSpan.lng() / (2+aberration); // we need a little border
|
||||
var offsetY = cSpan.lat() / (2+aberration);
|
||||
var C = map.getCenter(); // current center coords
|
||||
var X = C.lng();
|
||||
var Y = C.lat();
|
||||
|
||||
// now check if the current rectangle in the allowed area
|
||||
var checkSW = new google.maps.LatLng(C.lat()-offsetY,C.lng()-offsetX);
|
||||
var checkNE = new google.maps.LatLng(C.lat()+offsetY,C.lng()+offsetX);
|
||||
|
||||
if (allowedBounds.contains(checkSW) &&
|
||||
allowedBounds.contains(checkNE)) {
|
||||
return; // nothing to do
|
||||
}
|
||||
|
||||
var AmaxX = allowedBounds.getNorthEast().lng();
|
||||
var AmaxY = allowedBounds.getNorthEast().lat();
|
||||
var AminX = allowedBounds.getSouthWest().lng();
|
||||
var AminY = allowedBounds.getSouthWest().lat();
|
||||
|
||||
if (X < (AminX+offsetX)) {X = AminX + offsetX;}
|
||||
if (X > (AmaxX-offsetX)) {X = AmaxX - offsetX;}
|
||||
if (Y < (AminY+offsetY)) {Y = AminY + offsetY;}
|
||||
if (Y > (AmaxY-offsetY)) {Y = AmaxY - offsetY;}
|
||||
|
||||
map.setCenter(new google.maps.LatLng(Y,X));
|
||||
return;
|
||||
}
|
||||
|
||||
google.maps.event.addListener(map, "drag", function() {
|
||||
checkBounds();
|
||||
});
|
||||
|
||||
google.maps.event.addListener(map, "zoom_changed", function() {
|
||||
if (map.getZoom() < minMapScale) {
|
||||
map.setZoom(minMapScale);
|
||||
}
|
||||
});
|
||||
|
||||
google.maps.event.addListener(map.getStreetView(), "visible_changed", function() {
|
||||
//premier accès lors du chargement de la page, il ne faut pas cacher les markers
|
||||
if (init_streetview == true) {
|
||||
if(map.getStreetView().getVisible() == true) {
|
||||
for (var k = 0; k < relaisMarkers.length; k++) {
|
||||
relaisMarkers[k].setVisible(false);
|
||||
}
|
||||
}
|
||||
else {
|
||||
for (var k = 0; k < relaisMarkers.length; k++) {
|
||||
relaisMarkers[k].setVisible(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
else init_streetview = true;
|
||||
});
|
||||
}
|
||||
|
||||
function retourZoomChalandise() {
|
||||
if(zoomZoneChalandiseDefault){
|
||||
map.setCenter(zoomZoneChalandiseDefault);
|
||||
map.fitBounds(centerZoneChalandiseDefault);
|
||||
}
|
||||
}
|
||||
|
||||
function fromhere() {
|
||||
switchFromTo(contentFrom);
|
||||
}
|
||||
|
||||
function tohere() {
|
||||
switchFromTo(contentTo);
|
||||
}
|
||||
|
||||
function switchFromTo(htmlContent) {
|
||||
var adresse_saisie = $("#saisie").val();
|
||||
$("#trajet").html(htmlContent);
|
||||
$("#point_choisi").attr('value', adresse_pointclic);
|
||||
$("#saisie").val(adresse_saisie);
|
||||
}
|
||||
|
||||
function popup_roadmap() {
|
||||
if($("#saisie").val() == "") return;
|
||||
window.open("http://" + tntDomain + "/public/geolocalisation/print_roadmap.do?mode="+ $("#mode").val() +"&point_choisi="+ $("#point_choisi").val() +"&saisie="+ $("#saisie").val());
|
||||
}
|
||||
|
||||
$().ready(tntB2CRelaisColis);
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
require('../../../config/config.inc.php');
|
||||
|
||||
$code = $_POST['tntRCSelectedCode'];
|
||||
$name = $_POST['tntRCSelectedNom'];
|
||||
$address = $_POST['tntRCSelectedAdresse'];
|
||||
$zipcode = $_POST['tntRCSelectedCodePostal'];
|
||||
$city = $_POST['tntRCSelectedCommune'];
|
||||
$id_cart = $_POST['id_cart'];
|
||||
|
||||
$data = Db::getInstance()->ExecuteS('SELECT * FROM `'._DB_PREFIX_.'tnt_carrier_drop_off` WHERE `id_cart` = "'.(int)($id_cart).'"');
|
||||
if (count($data) > 0)
|
||||
{
|
||||
echo "ok";
|
||||
Db::getInstance()->Execute('UPDATE `'._DB_PREFIX_.'tnt_carrier_drop_off` SET `code` = "'.$code.'", `name` = "'.$name.'",
|
||||
`address` = "'.$address.'", `zipcode` = "'.$zipcode.'", `city` = "'.$city.'" WHERE `id_cart` = "'.(int)($id_cart).'"');
|
||||
}
|
||||
else
|
||||
Db::getInstance()->ExecuteS('INSERT INTO `'._DB_PREFIX_.'tnt_carrier_drop_off` (`id_cart`, `code`, `name`, `address`, `zipcode`, `city`)
|
||||
VALUES ("'.(int)($id_cart).'", "'.$code.'", "'.$name.'", "'.$address.'", "'.$zipcode.'", "'.$city.'")');
|
||||
?>
|
||||
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
require('../../../config/config.inc.php');
|
||||
$relais = Db::getInstance()->getValue('SELECT c.id_carrier
|
||||
FROM `'._DB_PREFIX_.'carrier` as c, `'._DB_PREFIX_.'tnt_carrier_option` as o
|
||||
WHERE c.id_carrier = o.id_carrier
|
||||
AND o.option LIKE "%D"
|
||||
AND c.external_module_name = "tntcarrier"
|
||||
AND c.deleted = "0" AND c.id_carrier = "'.(int)($_GET['id_carrier']).'"');
|
||||
if ($relais)
|
||||
{
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
$("#form").submit(function()
|
||||
{
|
||||
if ($("#tntRCSelectedCode").val() == '')
|
||||
{
|
||||
alert("Vous n'avez pas choisi de relais colis");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
);
|
||||
</script>
|
||||
<script type="text/javascript" src="./modules/tntcarrier/relaisColis/js/jquery.js"></script>
|
||||
<script type="text/javascript" src="./modules/tntcarrier/relaisColis/js/jquery-ui.js"></script>
|
||||
<script type="text/javascript" src="./modules/tntcarrier/relaisColis/js/relaisColis.js"></script>
|
||||
<link rel="stylesheet" href="./modules/tntcarrier/relaisColis/css/ui.tabs.css" type="text/css" />
|
||||
<link rel="stylesheet" href="./modules/tntcarrier/relaisColis/css/ui.dialog.css" type="text/css" />
|
||||
<link rel="stylesheet" href="./modules/tntcarrier/relaisColis/css/tntB2CRelaisColis.css" type="text/css" />
|
||||
<div id="tntB2CRelaisColis" class="exemplePresentation">
|
||||
<script type="text/javascript">
|
||||
tntB2CRelaisColis();
|
||||
</script>
|
||||
</div>
|
||||
<div style="text-align: justify; font-family: arial,helvetica,sans-serif; font-size: 10pt; width: 600px;">
|
||||
<div style="height: 25px;"> </div>
|
||||
<div id="exempleIntegration">
|
||||
<script type="text/javascript">
|
||||
function callbackSelectionRelais() {
|
||||
|
||||
// Récupération des informations
|
||||
var codeRelais = $("#tntRCSelectedCode").val();
|
||||
var nom = $("#tntRCSelectedNom").val();
|
||||
var adresse = $("#tntRCSelectedAdresse").val();
|
||||
var codePostal = $("#tntRCSelectedCodePostal").val();
|
||||
var commune = $("#tntRCSelectedCommune").val();
|
||||
|
||||
if (!codeRelais || codeRelais == "") {
|
||||
alert("Aucun relais n'a été sélectionné !");
|
||||
}
|
||||
else {
|
||||
alert("Info relais sélectionné"+
|
||||
"\nCode\t\t: " + codeRelais +
|
||||
"\nNom\t\t: " + nom +
|
||||
"\nAdresse\t\t: " + adresse +
|
||||
"\nCode postal\t: " + codePostal +
|
||||
"\nCommune\t\t: " + commune);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,94 @@
|
||||
<script type="text/javascript" src="./modules/tntcarrier/relaisColis/js/jquery-ui.js"></script>
|
||||
<script type="text/javascript" src="./modules/tntcarrier/relaisColis/js/relaisColis.js"></script>
|
||||
<script type="text/javascript">
|
||||
function tntRCgetCommunes() {
|
||||
|
||||
$("#tntRCError").hide();
|
||||
tntRCcodePostal = $('#tntRCInputCP').val();
|
||||
if (tntRCcodePostal=="") return;
|
||||
if (isNaN(parseInt(tntRCcodePostal)) || tntRCcodePostal.length != 5) {
|
||||
tntRCgetRelaisColis(tntRCMsgErrCodePostal);
|
||||
return;
|
||||
}
|
||||
|
||||
tntRCsetChargementEnCours();
|
||||
|
||||
var ajaxUrl;
|
||||
var ajaxData;
|
||||
|
||||
ajaxUrl = "http://" + tntDomain + "/public/b2c/relaisColis/rechercheJson.do?code=" + tntRCcodePostal;
|
||||
ajaxData = "";
|
||||
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: ajaxUrl,
|
||||
data: ajaxData,
|
||||
dataType: "script",
|
||||
error:function(msg){
|
||||
$("#blocCodePostal").html("Error !: " + msg );
|
||||
}
|
||||
});
|
||||
};
|
||||
</script>
|
||||
<link rel="stylesheet" href="./modules/tntcarrier/relaisColis/css/ui.tabs.css" type="text/css" />
|
||||
<link rel="stylesheet" href="./modules/tntcarrier/relaisColis/css/ui.dialog.css" type="text/css" />
|
||||
<link rel="stylesheet" href="./modules/tntcarrier/relaisColis/css/tntB2CRelaisColis.css" type="text/css" />
|
||||
<div id="tntB2CRelaisColis" class="exemplePresentation">
|
||||
<div id="tntRCblocEntete">
|
||||
<div class="tntRCHeader">Mode de livraison</div>
|
||||
<div class="tntRCSubHeader">
|
||||
Choisissez le Relais Colis
|
||||
<sup class="tntRCSup">®</sup>
|
||||
qui vous convient :
|
||||
</div>
|
||||
<input id="tntRCSelectedCode" type="hidden" value="C2219">
|
||||
<input id="tntRCSelectedNom" type="hidden" value="MALCO COIFFURE">
|
||||
<input id="tntRCSelectedAdresse" type="hidden" value="12 RUE LAME">
|
||||
<input id="tntRCSelectedCodePostal" type="hidden" value="78100">
|
||||
<input id="tntRCSelectedCommune" type="hidden" value="ST GERMAIN EN LAYE">
|
||||
</div>
|
||||
<div class="tntRCBody" id="blocCodePostal">
|
||||
<div class="tntRCGray"> </div>
|
||||
<div id="tntBodyContentSC">
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Entrez le code postal : </td>
|
||||
<td><input type="text" value="" size="5" maxlength="5" class="tntRCInput" id="tntRCInputCP"></td>
|
||||
<td><a onclick="tntRCgetCommunes();" href="#">
|
||||
<img onmouseout="./modules/tntcarrier/relaisColis/img/bt-OK-2.jpg"" onmouseover="./modules/tntcarrier/relaisColis/img/bt-OK-1.jpg"" src="./modules/tntcarrier/relaisColis/img/bt-OK-2.jpg" class="tntRCButton"></a>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div style="display:none;" id="tntRCLoading">Chargement en cours...</div>
|
||||
<div style="display:none;" class="tntRCError" id="tntRCError"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="text-align: justify; font-family: arial,helvetica,sans-serif; font-size: 10pt; width: 600px;">
|
||||
<div style="height: 25px;"> </div>
|
||||
<div id="exempleIntegration">
|
||||
<script type="text/javascript">
|
||||
function callbackSelectionRelais() {
|
||||
var codeRelais = $("#tntRCSelectedCode").val();
|
||||
var nom = $("#tntRCSelectedNom").val();
|
||||
var adresse = $("#tntRCSelectedAdresse").val();
|
||||
var codePostal = $("#tntRCSelectedCodePostal").val();
|
||||
var commune = $("#tntRCSelectedCommune").val();
|
||||
|
||||
if (!codeRelais || codeRelais == "") {
|
||||
alert("Aucun relais n'a été sélectionné !");
|
||||
}
|
||||
else {
|
||||
alert("Info relais sélectionné"+
|
||||
"\nCode\t\t: " + codeRelais +
|
||||
"\nNom\t\t: " + nom +
|
||||
"\nAdresse\t\t: " + adresse +
|
||||
"\nCode postal\t: " + codePostal +
|
||||
"\nCommune\t\t: " + commune);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||