Initial commit

This commit is contained in:
2019-11-20 07:44:43 +01:00
commit 5bf49c4a81
41188 changed files with 5459177 additions and 0 deletions

View File

@@ -0,0 +1,347 @@
{**
* 2007-2018 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 DPD France S.A.S. <support.ecommerce@dpd.fr>
* @copyright 2018 DPD France S.A.S.
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*}
<link rel="stylesheet" type="text/css" href="../modules/dpdfrance/views/css/admin/dpdfrance_config.css"/>
<link rel="stylesheet" type="text/css" href="../modules/dpdfrance/views/js/admin/jquery/plugins/fancybox/jquery.fancybox.css" media="screen"/>
<script type="text/javascript" src="../modules/dpdfrance/views/js/admin/jquery/plugins/fancybox/jquery.fancybox.js"></script>
<script type="text/javascript" src="../modules/dpdfrance/views/js/admin/jquery/plugins/validation/jquery.validate.min.js"></script>
{literal}
<script type="text/javascript">
function dpdfrance_attr_carrier(element) {
var maxValue = undefined;
$('option', element).each(function() {
var val = $(this).attr('value');
val = parseInt(val, 10);
if (maxValue === undefined || maxValue < val) {
maxValue = val;
}
});
element.val(maxValue);
}
</script>
{/literal}
<form action="{$form_submit_url|escape:'htmlall':'UTF-8'}" method="post">
<fieldset><legend><img src="../modules/dpdfrance/views/img/admin/admin.png" alt="" title="" />{l s='Settings' mod='dpdfrance'}</legend>
<!-- Tabs header -->
<div id="dpdfrance_menu">
<ul id="onglets">
<li style="background-color: #dc0032;"><a id="onglet0" href="javascript:void(0)" onclick="$(&quot;#donnees_exp,#modes_transport,#options_supp,#gestion_exp,#recap&quot;).fadeOut(0, function() {literal}{{/literal}$(&quot;#accueil&quot;).fadeIn(&quot;slow&quot;);$(&quot;#onglet0&quot;).parent().css(&quot;background-color&quot;, &quot;#dc0032&quot;);
$(&quot;#onglet1,#onglet2,#onglet3,#onglet4,#onglet5&quot;).parent().css(&quot;background-color&quot;, &quot;#808285&quot;);{literal}}{/literal});"> {l s='Start' mod='dpdfrance'} </a></li>
<li><a id="onglet1" href="javascript:void(0)" onclick="$(&quot;#accueil,#modes_transport,#options_supp,#gestion_exp,#recap&quot;).fadeOut(0, function() {literal}{{/literal}$(&quot;#donnees_exp&quot;).fadeIn(&quot;slow&quot;);$(&quot;#onglet1&quot;).parent().css(&quot;background-color&quot;, &quot;#dc0032&quot;);
$(&quot;#onglet0,#onglet2,#onglet3,#onglet4,#onglet5&quot;).parent().css(&quot;background-color&quot;, &quot;#808285&quot;);{literal}}{/literal});"> {l s='Your personal data' mod='dpdfrance'} </a></li>
<li><a id="onglet2" href="javascript:void(0)" onclick="$(&quot;#accueil,#donnees_exp,#options_supp,#gestion_exp,#recap&quot;).fadeOut(0, function() {literal}{{/literal}$(&quot;#modes_transport&quot;).fadeIn(&quot;slow&quot;);$(&quot;#onglet2&quot;).parent().css(&quot;background-color&quot;, &quot;#dc0032&quot;);
$(&quot;#onglet1,#onglet0,#onglet3,#onglet4,#onglet5&quot;).parent().css(&quot;background-color&quot;, &quot;#808285&quot;);{literal}}{/literal});"> {l s='Delivery services' mod='dpdfrance'} </a></li>
<li><a id="onglet3" href="javascript:void(0)" onclick="$(&quot;#accueil,#donnees_exp,#modes_transport,#gestion_exp,#recap&quot;).fadeOut(0, function() {literal}{{/literal}$(&quot;#options_supp&quot;).fadeIn(&quot;slow&quot;);$(&quot;#onglet3&quot;).parent().css(&quot;background-color&quot;, &quot;#dc0032&quot;);
$(&quot;#onglet1,#onglet2,#onglet0,#onglet4,#onglet5&quot;).parent().css(&quot;background-color&quot;, &quot;#808285&quot;);{literal}}{/literal});"> {l s='Advanced settings' mod='dpdfrance'} </a></li>
<li><a id="onglet4" href="javascript:void(0)" onclick="$(&quot;#accueil,#donnees_exp,#modes_transport,#options_supp,#recap&quot;).fadeOut(0, function() {literal}{{/literal}$(&quot;#gestion_exp&quot;).fadeIn(&quot;slow&quot;);$(&quot;#onglet4&quot;).parent().css(&quot;background-color&quot;, &quot;#dc0032&quot;);
$(&quot;#onglet1,#onglet2,#onglet3,#onglet0,#onglet5&quot;).parent().css(&quot;background-color&quot;, &quot;#808285&quot;);{literal}}{/literal});"> {l s='Orders management' mod='dpdfrance'} </a></li>
<li><a id="onglet5" href="javascript:void(0)" onclick="$(&quot;#accueil,#donnees_exp,#modes_transport,#options_supp,#gestion_exp&quot;).fadeOut(0, function() {literal}{{/literal}$(&quot;#recap&quot;).fadeIn(&quot;slow&quot;);$(&quot;#onglet5&quot;).parent().css(&quot;background-color&quot;, &quot;#dc0032&quot;);
$(&quot;#onglet1,#onglet2,#onglet3,#onglet4,#onglet0&quot;).parent().css(&quot;background-color&quot;, &quot;#808285&quot;);{literal}}{/literal});"> {l s='Summary' mod='dpdfrance'} </a></li>
</ul>
</div>
<!-- Tab Accueil -->
<div id="accueil" style="display:block;">
<strong><br/><span class="section_title">{l s='Welcome to DPD' mod='dpdfrance'}</span></strong><br/>
<div class="notabene" style="font-size:14px;">{l s='You must be a DPD France customer to use this module, if not please get in touch with us at ' mod='dpdfrance'}<a href="http://www.dpd.fr/nous_contacter_prestashop" target="_blank">www.dpd.fr</a></div><br/>
<div id="accueil_wrap">
<div id="documentation" href="javascript:void(0)" onclick="window.open(&quot;../modules/dpdfrance/docs/readme_dpdfrance_prestashop.pdf&quot;, &quot;s&quot;, &quot;width= 640, height= 900, left=0, top=0, resizable=yes, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no&quot;);"><span class="client_title">{l s='Open documentation' mod='dpdfrance'}</span><div id="documentation_img"></div><span class="client_subtitle">{l s='Please click here first to access the user manual' mod='dpdfrance'}</span></div>
<div id="client" href="javascript:void(0)" onclick="$(&quot;#onglet1&quot;).click();"><span class="client_title">{l s='I\'m already a customer' mod='dpdfrance'}</span><div id="client_img"></div><span class="client_subtitle">{l s='Proceed to the plugin configuration' mod='dpdfrance'}</span></div>
<br/>
</div>
</div>
<!-- Tab Vos données expéditeur -->
<div id="donnees_exp" style="display:none;">
<br/><span class="section_title">{l s='Your personal data' mod='dpdfrance'}</span><br/><br/>
<div id="donnees_exp_wrap">
<label>{l s='Company Name' mod='dpdfrance'}</label><div class="margin-form"><input type="text" size="33" name="nom_exp" value="{$nom_exp|escape:'htmlall':'UTF-8'}" /></div>
<label>{l s='Address 1' mod='dpdfrance'}</label><div class="margin-form"><input type="text" size="33" name="address_exp" value="{$address_exp|escape:'htmlall':'UTF-8'}" /></div>
<label>{l s='Address 2' mod='dpdfrance'}</label><div class="margin-form"><input type="text" size="33" name="address2_exp" value="{$address2_exp|escape:'htmlall':'UTF-8'}" /></div>
<label>{l s='Postal code' mod='dpdfrance'}</label><div class="margin-form"><input type="text" size="33" name="cp_exp" value="{$cp_exp|escape:'htmlall':'UTF-8'}" /></div>
<label>{l s='City' mod='dpdfrance'}</label><div class="margin-form"><input type="text" size="33" name="ville_exp" value="{$ville_exp|escape:'htmlall':'UTF-8'}" /></div>
<label>{l s='Telephone' mod='dpdfrance'}</label><div class="margin-form"><input type="text" size="33" name="tel_exp" value="{$tel_exp|escape:'htmlall':'UTF-8'}" /></div>
<label>{l s='GSM' mod='dpdfrance'}</label><div class="margin-form"><input type="text" size="33" name="gsm_exp" value="{$gsm_exp|escape:'htmlall':'UTF-8'}" /></div>
<label>{l s='E-mail' mod='dpdfrance'}</label><div class="margin-form"><input type="text" size="33" name="email_exp" value="{$email_exp|escape:'htmlall':'UTF-8'}" /></div>
<center><a size="6" name="next" class="button" href="javascript:void(0)" onclick="$(&quot;#onglet0&quot;).click();">{l s='Previous' mod='dpdfrance'}</a>
<a size="6" name="next" class="button" href="javascript:void(0)" onclick="$(&quot;#onglet2&quot;).click();">{l s='Next' mod='dpdfrance'}</a></center>
<br/>
</div>
</div>
<!-- Tab Services de transport -->
<div id="modes_transport" style="display:none;">
<br/><span class="section_title">{l s='Delivery services' mod='dpdfrance'}</span><br/><br/>
<div id="modes_transport_wrap">
<!-- DPD Relais -->
<div id="service_relais">
<label>{l s='DPD Relais' mod='dpdfrance'} {l s='(France)' mod='dpdfrance'}</label>
<div id="service_relais_img"></div>
<div id="service_relais_contract">
{l s='Depot code - Contract number' mod='dpdfrance'}<br/>{l s='(i.e.: 013 - 12345)' mod='dpdfrance'}<br/><br/>
<input type="text" size="4" maxlength="4" name="relais_depot_code" class="relais_depot_code" value="{$relais_depot_code|escape:'htmlall':'UTF-8'}" /> -
<input type="text" size="8" maxlength="8" name="relais_shipper_code" class="relais_shipper_code" value="{$relais_shipper_code|escape:'htmlall':'UTF-8'}" /><br/><br/>
</div>
<div id="service_next_img"></div>
<div id="service_relais_addcarrier">
{l s='Carrier creation' mod='dpdfrance'}<br/><br/>
<input type="submit" name="submitCreateCarrierRelais" value="{l s='Create DPD Relais carrier' mod='dpdfrance'}" class="button"/>
</div>
<div id="service_next_img"></div>
<div id="service_relais_selectcarrier">
{l s='Carrier assignation' mod='dpdfrance'}<br/><br/>
<select name="dpdfrance_relais_carrier_id"><option value="0">{l s='None - Disable this carrier' mod='dpdfrance'}</option>
{foreach from=$carriers item=carrier}
{if $carrier.id_carrier == $dpdfrance_relais_carrier_id}
<option value="{$carrier.id_carrier|escape:'htmlall':'UTF-8'}" selected>{$carrier.id_carrier|escape:'htmlall':'UTF-8'} - {$carrier.name|escape:'htmlall':'UTF-8'}</option>
{else}
<option value="{$carrier.id_carrier|escape:'htmlall':'UTF-8'}">{$carrier.id_carrier|escape:'htmlall':'UTF-8'} - {$carrier.name|escape:'htmlall':'UTF-8'}</option>
{/if}
{/foreach}
</select>
</div>
</div>
<br/>
<!-- DPD Predict -->
<div id="service_predict">
<label>{l s='DPD Predict' mod='dpdfrance'}</label>
<div id="service_predict_img"></div>
<div id="service_predict_contract">
{l s='Depot code - Contract number' mod='dpdfrance'}<br/>{l s='(i.e.: 013 - 12345)' mod='dpdfrance'}<br/><br/>
<input type="text" size="4" maxlength="4" name="predict_depot_code" class="predict_depot_code" value="{$predict_depot_code|escape:'htmlall':'UTF-8'}" /> -
<input type="text" size="8" maxlength="8" name="predict_shipper_code" class="predict_shipper_code" value="{$predict_shipper_code|escape:'htmlall':'UTF-8'}" /><br/><br/>
</div>
<div id="service_next_img"></div>
<div id="service_predict_addcarrier">
{l s='Carrier creation' mod='dpdfrance'}<br/><br/>
<input type="submit" name="submitCreateCarrierPredict" value="{l s='Create DPD Predict carrier' mod='dpdfrance'}" class="button"/>
</div>
<div id="service_next_img"></div>
<div id="service_predict_selectcarrier">
{l s='Carrier assignation' mod='dpdfrance'}<br/><br/>
<select name="dpdfrance_predict_carrier_id"><option value="0">{l s='None - Disable this carrier' mod='dpdfrance'}</option>
{foreach from=$carriers item=carrier}
{if $carrier.id_carrier == $dpdfrance_predict_carrier_id}
<option value="{$carrier.id_carrier|escape:'htmlall':'UTF-8'}" selected>{$carrier.id_carrier|escape:'htmlall':'UTF-8'} - {$carrier.name|escape:'htmlall':'UTF-8'}</option>
{else}
<option value="{$carrier.id_carrier|escape:'htmlall':'UTF-8'}">{$carrier.id_carrier|escape:'htmlall':'UTF-8'} - {$carrier.name|escape:'htmlall':'UTF-8'}</option>
{/if}
{/foreach}
</select>
</div>
</div>
<br/>
<!-- DPD Classic -->
<div id="service_classic">
<label>{l s='DPD Classic' mod='dpdfrance'}<br/>
{l s='Europe & Intercontinental' mod='dpdfrance'} {l s='(France : delivery at workplace)' mod='dpdfrance'}</label>
<div id="service_classic_img"></div>
<div id="service_classic_contract">
{l s='Depot code - Contract number' mod='dpdfrance'}<br/>{l s='(i.e.: 013 - 12345)' mod='dpdfrance'}<br/><br/>
<input type="text" size="4" maxlength="4" name="classic_depot_code" class="classic_depot_code" value="{$classic_depot_code|escape:'htmlall':'UTF-8'}" /> -
<input type="text" size="8" maxlength="8" name="classic_shipper_code" class="classic_shipper_code" value="{$classic_shipper_code|escape:'htmlall':'UTF-8'}" /><br/><br/>
</div>
<div id="service_next_img"></div>
<div id="service_classic_addcarrier">
{l s='Carrier creation' mod='dpdfrance'}<br/><br/>
<input type="submit" name="submitCreateCarrierClassic" value="{l s='Create DPD Classic carrier' mod='dpdfrance'}" class="button"/><br/>
<input type="submit" name="submitCreateCarrierWorld" value="{l s='Create DPD Intercontinental carrier' mod='dpdfrance'}" class="button"/><br/>
</div>
<div id="service_next_img"></div>
<div id="service_classic_selectcarrier">
{l s='Carrier assignation' mod='dpdfrance'}<br/><br/>
<select name="dpdfrance_classic_carrier_id"><option value="0">{l s='None - Disable this carrier' mod='dpdfrance'}</option>
{foreach from=$carriers item=carrier}
{if $carrier.id_carrier == $dpdfrance_classic_carrier_id}
<option value="{$carrier.id_carrier|escape:'htmlall':'UTF-8'}" selected>{$carrier.id_carrier|escape:'htmlall':'UTF-8'} - {$carrier.name|escape:'htmlall':'UTF-8'}</option>
{else}
<option value="{$carrier.id_carrier|escape:'htmlall':'UTF-8'}">{$carrier.id_carrier|escape:'htmlall':'UTF-8'} - {$carrier.name|escape:'htmlall':'UTF-8'}</option>
{/if}
{/foreach}
</select>
</div>
</div>
<div class="notabene">{l s='Please contact your DPD sales representative to get your contract numbers and depot code.' mod='dpdfrance'}</div><br/><br/>
<center><a size="6" name="next" class="button" href="javascript:void(0)" onclick="$(&quot;#onglet1&quot;).click();">{l s='Previous' mod='dpdfrance'}</a>
<a size="6" name="next" class="button" href="javascript:void(0)" onclick="$(&quot;#onglet3&quot;).click();">{l s='Next' mod='dpdfrance'}</a></center>
<br/>
</div>
</div>
<!-- Tab Options supplémentaires -->
<div id="options_supp" style="display:none;">
<br/><span class="section_title_alt">{l s='Advanced settings' mod='dpdfrance'}</span><br/><br/>
<label>{l s='DPD Relais WebService URL' mod='dpdfrance'}</label>
<div class="margin-form">
<input type="text" size="48" name="mypudo_url" value="{$mypudo_url|escape:'htmlall':'UTF-8'}" />
<br/>
<a style="color: #dc0042; font-size: 12px;" href="javascript:void(0)" onclick="window.open(&quot;../modules/dpdfrance/docs/readme_dpdfrance_prestashop.pdf#page=7&quot;, &quot;s&quot;, &quot;width= 640, height= 900, left=0, top=0, resizable=yes, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no&quot;);">{l s='Caution! Critical setting' mod='dpdfrance'}</a>
</div>
{if $ps_version >= '1.4'}
<label>{l s='Coastal islands & Corsica overcost' mod='dpdfrance'}</label><div class="margin-form"><input type="text" size="3" name="supp_iles" value="{$supp_iles|escape:'htmlall':'UTF-8'}" />{l s=' € (-1 to disable delivery to these areas)' mod='dpdfrance'}</div><br/>
<label>{l s='Mountain areas overcost' mod='dpdfrance'}</label><div class="margin-form"><input type="text" size="3" name="supp_montagne" value="{$supp_montagne|escape:'htmlall':'UTF-8'}" />{l s=' € (-1 to disable delivery to these areas)' mod='dpdfrance'}</div>
{/if}
<br/>
<label>{l s='Google Maps API Key' mod='dpdfrance'}</label>
<div class="margin-form">
<input type="text" size="48" name="google_api_key" value="{$google_api_key|escape:'htmlall':'UTF-8'}" />
<br/>
<a href="https://console.developers.google.com/flows/enableapi?apiid=maps_backend,geocoding_backend,directions_backend,distance_matrix_backend,elevation_backend,places_backend&keyType=CLIENT_SIDE&reusekey=true" target="_blank" >{l s='Click here to retrieve your Google API Key' mod='dpdfrance'}</a>
</div>
<br/>
<center><a size="6" name="next" class="button" href="javascript:void(0)" onclick="$(&quot;#onglet2&quot;).click();">{l s='Previous' mod='dpdfrance'}</a>
<a size="6" name="next" class="button" href="javascript:void(0)" onclick="$(&quot;#onglet4&quot;).click();">{l s='Next' mod='dpdfrance'}</a></center>
<br/>
</div>
<!-- Tab Gestion des expéditions -->
<div id="gestion_exp" style="display:none;">
<br/><span class="section_title_alt">{l s='Orders management' mod='dpdfrance'}</span><br/><br/>
<label>{l s='Preparation in progress status' mod='dpdfrance'}<br/></label>
<div class="margin-form">
<select name="id_expedition">
{foreach from=$etats_factures item=value}
{if $value.id_order_state == $dpdfrance_etape_expedition}
<option value="{$value.id_order_state|escape:'htmlall':'UTF-8'}" selected>{$value.name|escape:'htmlall':'UTF-8'}</option>
{else}
<option value="{$value.id_order_state|escape:'htmlall':'UTF-8'}">{$value.name|escape:'htmlall':'UTF-8'}</option>
{/if}
{/foreach}
</select>
<br/>{l s='Orders in this state will be selected by default for exporting.' mod='dpdfrance'}<br/>
</div>
<label>{l s='Shipped status' mod='dpdfrance'}<br/></label>
<div class="margin-form">
<select name="id_expedie">
{foreach from=$etats_factures item=value}
{if $value.id_order_state == $dpdfrance_etape_expediee}
<option value="{$value.id_order_state|escape:'htmlall':'UTF-8'}" selected>{$value.name|escape:'htmlall':'UTF-8'}</option>
{else}
<option value="{$value.id_order_state|escape:'htmlall':'UTF-8'}">{$value.name|escape:'htmlall':'UTF-8'}</option>
{/if}
{/foreach}
</select>
<br/>{l s='Once parcel trackings are generated, orders will be updated to this state.' mod='dpdfrance'}<br/>
</div>
<label>{l s='Delivered status' mod='dpdfrance'}<br/></label>
<div class="margin-form">
<select name="id_livre">
{foreach from=$etats_factures item=value}
{if $value.id_order_state == $dpdfrance_etape_livre}
<option value="{$value.id_order_state|escape:'htmlall':'UTF-8'}" selected>{$value.name|escape:'htmlall':'UTF-8'}</option>
{else}
<option value="{$value.id_order_state|escape:'htmlall':'UTF-8'}">{$value.name|escape:'htmlall':'UTF-8'}</option>
{/if}
{/foreach}
</select>
<br/>{l s='Once parcels are delivered, orders will be updated to this state.' mod='dpdfrance'}<br/>
</div>
<label>{l s='Auto update of status and tracking links' mod='dpdfrance'}<br/></label>
<div class="margin-form">
<select name="auto_update">
{foreach from=$optupdate item=option key=key}
{if $key == $auto_update}
<option value="{$key|escape:'htmlall':'UTF-8'}" selected>{$option|escape:'htmlall':'UTF-8'}</option>
{else}
<option value="{$key|escape:'htmlall':'UTF-8'}">{$option|escape:'htmlall':'UTF-8'}</option>
{/if}
{/foreach}
</select>
<br/>{l s='Order statuses and tracking links will be automatically updated following parcel delivery.' mod='dpdfrance'}<br/>
</div>
<label>{l s='Allow management of non-DPD orders' mod='dpdfrance'}<br/></label>
<div class="margin-form">
<select name="marketplace_mode">
{foreach from=$optmarketplace item=option key=key}
{if $key == $marketplace_mode}
<option value="{$key|escape:'htmlall':'UTF-8'}" selected>{$option|escape:'htmlall':'UTF-8'}</option>
{else}
<option value="{$key|escape:'htmlall':'UTF-8'}">{$option|escape:'htmlall':'UTF-8'}</option>
{/if}
{/foreach}
</select>
<br/>{l s='All orders will be manageable regardless of the carrier, useful when using marketplace connectors.' mod='dpdfrance'}<br/>
</div>
<label>{l s='Parcel insurance service' mod='dpdfrance'}<br/></label>
<div class="margin-form">
<select name="ad_valorem">
{foreach from=$optvd item=option key=key}
{if $key == $dpdfrance_ad_valorem}
<option value="{$key|escape:'htmlall':'UTF-8'}" selected>{$option|escape:'htmlall':'UTF-8'}</option>
{else}
<option value="{$key|escape:'htmlall':'UTF-8'}">{$option|escape:'htmlall':'UTF-8'}</option>
{/if}
{/foreach}
</select>
<br/>{l s='Ad Valorem : Please refer to your pricing conditions.' mod='dpdfrance'}<br/>
</div>
<label>{l s='DPD Returns service' mod='dpdfrance'}<br/></label>
<div class="margin-form">
<select name="retour">
{foreach from=$optretour item=option key=key}
{if $key == $dpdfrance_retour_option}
<option value="{$key|escape:'htmlall':'UTF-8'}" selected>{$option|escape:'htmlall':'UTF-8'}</option>
{else}
<option value="{$key|escape:'htmlall':'UTF-8'}">{$option|escape:'htmlall':'UTF-8'}</option>
{/if}
{/foreach}
</select>
<br/>{l s='DPD Returns options : Please refer to your pricing conditions.' mod='dpdfrance'}<br/>
</div>
<center><a size="6" name="next" class="button" href="javascript:void(0)" onclick="$(&quot;#onglet3&quot;).click();">{l s='Previous' mod='dpdfrance'}</a>
<a size="6" name="next" class="button" href="javascript:void(0)" onclick="$(&quot;#onglet5&quot;).click();">{l s='Next' mod='dpdfrance'}</a></center>
<br/>
</div>
<!-- Tab Recapitulatif -->
<div id="recap" style="display:none;">
<strong><center><br/><br/>{l s='You\'re all set!' mod='dpdfrance'}</center></strong><br/><br/>
<center><input id="save_settings_button" type="submit" name="submitRcReferer" value="{l s='Save settings' mod='dpdfrance'}" class="button"></center></br>
<center><a size="6" name="next" class="button" href="javascript:void(0)" onclick="$(&quot;#onglet4&quot;).click();">{l s='Return to configuration' mod='dpdfrance'}</a></center><br/>
<br/>
</div>
</fieldset>
</form>

View File

@@ -0,0 +1,160 @@
{**
* 2007-2018 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 DPD France S.A.S. <support.ecommerce@dpd.fr>
* @copyright 2018 DPD France S.A.S.
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*}
{literal}
<script type='text/javascript'>
$(document).ready(function(){
$('.page-title').prepend('<img src="../modules/dpdfrance/views/img/admin/admin.png"/>')
$('.marquee').marquee({
duration: 20000,
gap: 50,
delayBeforeStart: 0,
direction: 'left',
duplicated: true,
pauseOnHover: true
});
$('a.popup').fancybox({
'hideOnContentClick': true,
'padding' : 0,
'overlayColor' :'#D3D3D3',
'overlayOpacity' : 0.7,
'width' : 1024,
'height' : 640,
'type' :'iframe'
});
jQuery.expr[':'].contains = function(a, i, m) {
return jQuery(a).text().toUpperCase().indexOf(m[3].toUpperCase()) >= 0;
};
$("#tableFilter").keyup(function () {
//split the current value of tableFilter
var data = this.value.split(";");
//create a jquery object of the rows
var jo = $("#fbody").find("tr");
if (this.value == "") {
jo.show();
return;
}
//hide all the rows
jo.hide();
//Recusively filter the jquery object to get results.
jo.filter(function (i, v) {
var t = $(this);
for (var d = 0; d < data.length; ++d) {
if (t.is(":contains('" + data[d] + "')")) {
return true;
}
}
return false;
})
//show the rows that match.
.show();
}).focus(function () {
this.value = "";
$(this).css({
"color": "black"
});
$(this).unbind('focus');
}).css({
"color": "#C0C0C0"
});
});
function checkallboxes(ele) {
var checkboxes = $("#fbody").find(".checkbox:visible");
if (ele.checked) {
for (var i = 0; i < checkboxes.length; i++) {
if (checkboxes[i].type == 'checkbox') {
checkboxes[i].checked = true;
}
}
} else {
for (var i = 0; i < checkboxes.length; i++) {
if (checkboxes[i].type == 'checkbox') {
checkboxes[i].checked = false;
}
}
}
}
</script>
{/literal}
{if !isset($stream.error) || (isset($stream.error) && !$stream.error)}
<fieldset id="fieldset_rss"><legend><a href="javascript:void(0)" onclick="$(&quot;#zonemarquee&quot;).toggle(&quot;fast&quot;, function() {literal}{}{/literal});"><img src="../modules/dpdfrance/views/img/admin/rss_icon.png" />{l s='DPD News (show/hide)' mod='dpdfrance'}</a></legend>
<div id="zonemarquee"><div id="marquee" class="marquee">
{foreach from=$stream item=item key=key}
<strong style="color:red;">{$item.category|escape:'htmlall':'UTF-8'} > {$item.title|escape:'htmlall':'UTF-8'} : </strong> {$item.description|escape:'htmlall':'UTF-8'}
{/foreach}
</div></div></fieldset><br/><br/>
{/if}
{$msg|escape:'quotes':'UTF-8'}
<div id="fieldset_grid">
{if !isset($order_info.error) || (isset($order_info.error) && !$order_info.error)}
<input id="tableFilter" placeholder="{l s='Search something, separate values with ; ' mod='dpdfrance'}"/><img id="filtericon" src="../modules/dpdfrance/views/img/admin/search.png"/><br/><br/>
<form id="exportform" action="index.php?tab=AdminDPDFrance&token={$token|escape:'htmlall':'UTF-8'}" method="POST" enctype="multipart/form-data">
<body><table>
<thead>
<tr>
<th class="hcheckexport"><input type="checkbox" onchange="checkallboxes(this)"/></th>
<th class="hid">ID</th>
<th class="href">{l s='Reference' mod='dpdfrance'}</th>
<th class="hdate">{l s='Date of order' mod='dpdfrance'}</th>
<th class="hnom">{l s='Recipient' mod='dpdfrance'}</th>
<th class="htype">{l s='Service' mod='dpdfrance'}</th>
<th class="hpr">{l s='Destination' mod='dpdfrance'}</th>
<th class="hpoids">{l s='Weight' mod='dpdfrance'}</th>
<th colspan="2" class="hprix" align="right">{l s='Amount' mod='dpdfrance'}<br/><span style="font-size:10px;">{l s='(tick to insure<br/>this parcel)' mod='dpdfrance'}</span></th>
{if $dpdfrance_retour_option !== 0}<th class="hretour">{l s='Allow return' mod='dpdfrance'}</th>{/if}
<th class="hstatutcommande" align="center">{l s='Order status' mod='dpdfrance'}</th>
<th class="hstatutcolis" align="center">{l s='Parcel trace' mod='dpdfrance'}</th>
</tr>
</thead><tbody id="fbody">
{foreach from=$order_info item=order}
<tr>
<td><input class="checkbox" type="checkbox" name="checkbox[]" {$order.checked|escape:'htmlall':'UTF-8'} value="{$order.id|escape:'htmlall':'UTF-8'}"></td><td class="id">{$order.id|escape:'htmlall':'UTF-8'}</td>
<td class="ref">{$order.reference|escape:'htmlall':'UTF-8'}</td>
<td class="date">{$order.date|escape:'htmlall':'UTF-8'}</td>
<td class="nom">{$order.nom|escape:'htmlall':'UTF-8'}</td>
<td class="type">{$order.type|escape:'quotes':'UTF-8'}</td>
<td class="pr">{$order.address|escape:'quotes':'UTF-8'}</td>
<td class="poids"><input name="parcelweight[{$order.id|escape:'htmlall':'UTF-8'}]" type="text" value="{$order.poids|escape:'htmlall':'UTF-8'}" /> {$order.weightunit|escape:'htmlall':'UTF-8'}</td>
<td class="prix" align="right">{$order.prix|escape:'htmlall':'UTF-8'}</td>
<td class="advalorem"><input class="advalorem" type="checkbox" name="advalorem[]" {$order.advalorem_checked|escape:'htmlall':'UTF-8'} value="{$order.id|escape:'htmlall':'UTF-8'}"></td>
{if $dpdfrance_retour_option !== 0}<td class="retour"><input class="retour" type="checkbox" name="retour[]" {$order.retour_checked|escape:'htmlall':'UTF-8'} value="{$order.id|escape:'htmlall':'UTF-8'}"></td>{/if}
<td class="statutcommande" align="center">{$order.statut|escape:'quotes':'UTF-8'}</td>
<td class="statutcolis" align="center"><a href="javascript:void(0)" onclick="window.open('http://www.dpd.fr/tracex_{$order.reference|escape:'htmlall':'UTF-8'}_{$order.depot_code|escape:'htmlall':'UTF-8'}{$order.shipper_code|escape:'htmlall':'UTF-8'}','','width=1024,height=768,top=30,left=20')">{$order.dernier_statut_colis|escape:'quotes':'UTF-8'}</a></td>
</tr>
{/foreach}
</tbody></table>
<p>
<input type="submit" class="button" name="exportOrders" value="{l s='Export selected orders to DPD Station' mod='dpdfrance'}" />
<input type="submit" class="button" name="updateShippedOrders" value="{l s='Update shipped orders' mod='dpdfrance'}" />
<input type="submit" class="button" name="updateDeliveredOrders" value="{l s='Update delivered orders' mod='dpdfrance'}" />
</p>
</form></div>
{else}
<div class="alert warn">{l s='There are no orders' mod='dpdfrance'}</div>
{/if}

View File

@@ -0,0 +1,34 @@
<?php
/**
* 2007-2018 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 DPD France S.A.S. <support.ecommerce@dpd.fr>
* @copyright 2018 DPD France S.A.S.
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
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;

View File

@@ -0,0 +1,34 @@
<?php
/**
* 2007-2018 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 DPD France S.A.S. <support.ecommerce@dpd.fr>
* @copyright 2018 DPD France S.A.S.
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
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;

View File

@@ -0,0 +1,34 @@
<?php
/**
* 2007-2018 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 DPD France S.A.S. <support.ecommerce@dpd.fr>
* @copyright 2018 DPD France S.A.S.
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
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;

View File

@@ -0,0 +1,34 @@
<?php
/**
* 2007-2018 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 DPD France S.A.S. <support.ecommerce@dpd.fr>
* @copyright 2018 DPD France S.A.S.
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
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;