first commit
This commit is contained in:
92
modules/dpdpoland/views/templates/admin/_pagination_16.tpl
Normal file
92
modules/dpdpoland/views/templates/admin/_pagination_16.tpl
Normal file
@@ -0,0 +1,92 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
{if $list_total > 10}
|
||||
<div class="row">
|
||||
<div class="col-lg-4 pull-right clearfix">
|
||||
|
||||
<span class="pagination">
|
||||
{l s='Display:' mod='dpdpoland'}
|
||||
<button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
|
||||
{$selected_pagination|intval}
|
||||
<i class="icon-caret-down"></i>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
{foreach $pagination AS $value}
|
||||
<li>
|
||||
<a href="javascript:void(0);" class="pagination-items-page" data-items="{$value|intval}">{$value}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
/ {$list_total|intval} {l s='result(s)' mod='dpdpoland'}
|
||||
<input type="hidden" value="{$selected_pagination|intval}" name="pagination" id="pagination-items-page">
|
||||
</span>
|
||||
<script type="text/javascript">
|
||||
$('.pagination-items-page').on('click',function(e){
|
||||
e.preventDefault();
|
||||
$('#pagination-items-page').val($(this).data("items")).closest("form").submit();
|
||||
});
|
||||
</script>
|
||||
<ul class="pagination pull-right">
|
||||
<li {if $page <= 1}class="disabled"{/if}>
|
||||
<a href="javascript:void(0);" class="pagination-link" data-page="1">
|
||||
<i class="icon-double-angle-left"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li {if $page <= 1}class="disabled"{/if}>
|
||||
<a href="javascript:void(0);" class="pagination-link" data-page="{$page|intval - 1}">
|
||||
<i class="icon-angle-left"></i>
|
||||
</a>
|
||||
</li>
|
||||
{assign p 0}
|
||||
{while $p++ < $total_pages}
|
||||
{if $p < $page-2}
|
||||
<li class="disabled">
|
||||
<a href="javascript:void(0);">…</a>
|
||||
</li>
|
||||
{assign p $page-3}
|
||||
{else if $p > $page+2}
|
||||
<li class="disabled">
|
||||
<a href="javascript:void(0);">…</a>
|
||||
</li>
|
||||
{assign p $total_pages}
|
||||
{else}
|
||||
<li {if $p == $page}class="active"{/if}>
|
||||
<a href="javascript:void(0);" class="pagination-link" data-page="{$p|intval}">{$p|intval}</a>
|
||||
</li>
|
||||
{/if}
|
||||
{/while}
|
||||
<li {if $page > $total_pages}class="disabled"{/if}>
|
||||
<a href="javascript:void(0);" class="pagination-link" data-page="{$page|intval + 1}">
|
||||
<i class="icon-angle-right"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li {if $page > $total_pages}class="disabled"{/if}>
|
||||
<a href="javascript:void(0);" class="pagination-link" data-page="{$total_pages|intval}">
|
||||
<i class="icon-double-angle-right"></i>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<script type="text/javascript">
|
||||
$('.pagination-link').on('click',function(e){
|
||||
e.preventDefault();
|
||||
$('#submitFilter'+'{$identifier|escape:'htmlall':'UTF-8'}').val($(this).data("page")).closest("form").submit();
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
40
modules/dpdpoland/views/templates/admin/address.tpl
Normal file
40
modules/dpdpoland/views/templates/admin/address.tpl
Normal file
@@ -0,0 +1,40 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
<label>{l s='Company name:' mod='dpdpoland'}</label>
|
||||
<div class="margin-form">{if isset($address.company)}{$address.company|escape:'htmlall':'UTF-8'}{/if}</div>
|
||||
|
||||
<label>{l s='Name and surname:' mod='dpdpoland'}</label>
|
||||
<div class="margin-form">{if isset($address.name)}{$address.name|escape:'htmlall':'UTF-8'}{/if}</div>
|
||||
|
||||
<label>{l s='Street and house no.:' mod='dpdpoland'}</label>
|
||||
<div class="margin-form">{if isset($address.street)}{$address.street|escape:'htmlall':'UTF-8'}{/if}</div>
|
||||
|
||||
<label>{l s='Postal code:' mod='dpdpoland'}</label>
|
||||
<div class="margin-form">{if isset($address.postcode)}{$address.postcode|escape:'htmlall':'UTF-8'}{/if}</div>
|
||||
|
||||
<label>{l s='City:' mod='dpdpoland'}</label>
|
||||
<div class="margin-form">{if isset($address.city)}{$address.city|escape:'htmlall':'UTF-8'}{/if}</div>
|
||||
|
||||
<label>{l s='Country:' mod='dpdpoland'}</label>
|
||||
<div class="margin-form">{if isset($address.country)}{$address.country|escape:'htmlall':'UTF-8'}{/if}</div>
|
||||
|
||||
<label>{l s='E-mail:' mod='dpdpoland'}</label>
|
||||
<div class="margin-form">{if isset($address.email)}{$address.email|escape:'htmlall':'UTF-8'}{/if}</div>
|
||||
|
||||
<label>{l s='Tel. No.' mod='dpdpoland'}</label>
|
||||
<div class="margin-form">{if isset($address.phone)}{$address.phone|escape:'htmlall':'UTF-8'}{/if}</div>
|
||||
42
modules/dpdpoland/views/templates/admin/address_16.tpl
Normal file
42
modules/dpdpoland/views/templates/admin/address_16.tpl
Normal file
@@ -0,0 +1,42 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
|
||||
<label class="col-lg-6 col-sm-6 col-xs-12">{l s='Company name:' mod='dpdpoland'}</label>
|
||||
<div class="col-lg-6 col-sm-6 col-xs-12">{if isset($address.company) && $address.company}{$address.company|escape:'htmlall':'UTF-8'}{/if}</div>
|
||||
<div class="clearfix"></div>
|
||||
<label class="col-lg-6 col-sm-6 col-xs-12">{l s='Name and surname:' mod='dpdpoland'}</label>
|
||||
<div class="col-lg-6 col-sm-6 col-xs-12">{if isset($address.name) && $address.name}{$address.name|escape:'htmlall':'UTF-8'}{/if}</div>
|
||||
<div class="clearfix"></div>
|
||||
<label class="col-lg-6 col-sm-6 col-xs-12">{l s='Street and house no.:' mod='dpdpoland'}</label>
|
||||
<div class="col-lg-6 col-sm-6 col-xs-12">{if isset($address.street) && $address.street}{$address.street|escape:'htmlall':'UTF-8'}{/if}</div>
|
||||
<div class="clearfix"></div>
|
||||
<label class="col-lg-6 col-sm-6 col-xs-12">{l s='Postal code:' mod='dpdpoland'}</label>
|
||||
<div class="col-lg-6 col-sm-6 col-xs-12">{if isset($address.postcode) && $address.postcode}{$address.postcode|escape:'htmlall':'UTF-8'}{/if}</div>
|
||||
<div class="clearfix"></div>
|
||||
<label class="col-lg-6 col-sm-6 col-xs-12">{l s='City:' mod='dpdpoland'}</label>
|
||||
<div class="col-lg-6 col-sm-6 col-xs-12">{if isset($address.city) && $address.city}{$address.city|escape:'htmlall':'UTF-8'}{/if}</div>
|
||||
<div class="clearfix"></div>
|
||||
<label class="col-lg-6 col-sm-6 col-xs-12">{l s='Country:' mod='dpdpoland'}</label>
|
||||
<div class="col-lg-6 col-sm-6 col-xs-12">{if isset($address.country) && $address.country}{$address.country|escape:'htmlall':'UTF-8'}{/if}</div>
|
||||
<div class="clearfix"></div>
|
||||
<label class="col-lg-6 col-sm-6 col-xs-12">{l s='E-mail:' mod='dpdpoland'}</label>
|
||||
<div class="col-lg-6 col-sm-6 col-xs-12">{if isset($address.email) && $address.email}{$address.email|escape:'htmlall':'UTF-8'}{/if}</div>
|
||||
<div class="clearfix"></div>
|
||||
<label class="col-lg-6 col-sm-6 col-xs-12">{l s='Tel. No.' mod='dpdpoland'}</label>
|
||||
<div class="col-lg-6 col-sm-6 col-xs-12">{if isset($address.phone) && $address.phone}{$address.phone|escape:'htmlall':'UTF-8'}{/if}</div>
|
||||
<div class="clearfix"></div>
|
||||
57
modules/dpdpoland/views/templates/admin/address_17.tpl
Normal file
57
modules/dpdpoland/views/templates/admin/address_17.tpl
Normal file
@@ -0,0 +1,57 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
|
||||
<div>
|
||||
<h5 class="my-0">{l s='Company name:' mod='dpdpoland'}</h5>
|
||||
<p>{if isset($address.company) && $address.company}{$address.company|escape:'htmlall':'UTF-8'}{/if}</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h5 class="my-0">{l s='Name and surname:' mod='dpdpoland'}</h5>
|
||||
<p>{if isset($address.name) && $address.name}{$address.name|escape:'htmlall':'UTF-8'}{/if}</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h5 class="my-0">{l s='Street and house no.:' mod='dpdpoland'}</h5>
|
||||
<p>{if isset($address.street) && $address.street}{$address.street|escape:'htmlall':'UTF-8'}{/if}</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h5 class="my-0">{l s='Postal code:' mod='dpdpoland'}</h5>
|
||||
<p>{if isset($address.postcode) && $address.postcode}{$address.postcode|escape:'htmlall':'UTF-8'}{/if}</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h5 class="my-0">{l s='City:' mod='dpdpoland'}</h5>
|
||||
<p>{if isset($address.city) && $address.city}{$address.city|escape:'htmlall':'UTF-8'}{/if}</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h5 class="my-0">{l s='Country:' mod='dpdpoland'}</h5>
|
||||
<p>{if isset($address.country) && $address.country}{$address.country|escape:'htmlall':'UTF-8'}{/if}</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h5 class="my-0">{l s='E-mail:' mod='dpdpoland'}</h5>
|
||||
<p>{if isset($address.email) && $address.email}{$address.email|escape:'htmlall':'UTF-8'}{/if}</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h5 class="my-0">{l s='Tel. No.' mod='dpdpoland'}</h5>
|
||||
<p>{if isset($address.phone) && $address.phone}{$address.phone|escape:'htmlall':'UTF-8'}{/if}</p>
|
||||
</div>
|
||||
61
modules/dpdpoland/views/templates/admin/address_input.tpl
Normal file
61
modules/dpdpoland/views/templates/admin/address_input.tpl
Normal file
@@ -0,0 +1,61 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
<label>{l s='Company name:' mod='dpdpoland'}</label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="dpdpoland_address_company" autocomplete="off" value="{if isset($address.company) && $address.company}{$address.company|escape:'htmlall':'UTF-8'}{/if}">
|
||||
</div>
|
||||
|
||||
<label>{l s='Name:' mod='dpdpoland'}</label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="dpdpoland_address_firstname" autocomplete="off" value="{if isset($address.firstname) && $address.firstname}{$address.firstname|escape:'htmlall':'UTF-8'}{/if}">
|
||||
</div>
|
||||
|
||||
<label>{l s='Surname:' mod='dpdpoland'}</label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="dpdpoland_address_lastname" autocomplete="off" value="{if isset($address.lastname) && $address.lastname}{$address.lastname|escape:'htmlall':'UTF-8'}{/if}">
|
||||
</div>
|
||||
|
||||
<label>{l s='Street and house no.:' mod='dpdpoland'}</label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="dpdpoland_address_street" autocomplete="off" value="{if isset($address.street) && $address.street}{$address.street|escape:'htmlall':'UTF-8'}{/if}">
|
||||
</div>
|
||||
|
||||
<label>{l s='Postal code:' mod='dpdpoland'}</label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="dpdpoland_address_postcode" autocomplete="off" value="{if isset($address.postcode) && $address.postcode}{$address.postcode|escape:'htmlall':'UTF-8'}{/if}">
|
||||
</div>
|
||||
|
||||
<label>{l s='City:' mod='dpdpoland'}</label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="dpdpoland_address_city" autocomplete="off" value="{if isset($address.city) && $address.city}{$address.city|escape:'htmlall':'UTF-8'}{/if}">
|
||||
</div>
|
||||
|
||||
<label>{l s='Country:' mod='dpdpoland'}</label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="dpdpoland_address_country" autocomplete="off" value="{if isset($address.country) && $address.country}{$address.country|escape:'htmlall':'UTF-8'}{/if}">
|
||||
</div>
|
||||
|
||||
<label>{l s='E-mail:' mod='dpdpoland'}</label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="dpdpoland_address_email" autocomplete="off" value="{if isset($address.email) && $address.email}{$address.email|escape:'htmlall':'UTF-8'}{/if}">
|
||||
</div>
|
||||
|
||||
<label>{l s='Tel. No.' mod='dpdpoland'}</label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="dpdpoland_address_phone" autocomplete="off" value="{if isset($address.phone) && $address.phone}{$address.phone|escape:'htmlall':'UTF-8'}{/if}">
|
||||
</div>
|
||||
70
modules/dpdpoland/views/templates/admin/address_input_16.tpl
Normal file
70
modules/dpdpoland/views/templates/admin/address_input_16.tpl
Normal file
@@ -0,0 +1,70 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
|
||||
<label class="col-lg-5 col-sm-5 col-xs-12">{l s='Company name:' mod='dpdpoland'}</label>
|
||||
<div class="col-lg-7 col-sm-7 col-xs-12">
|
||||
<input type="text" name="dpdpoland_address_company" autocomplete="off" value="{if isset($address.company) && $address.company}{$address.company|escape:'htmlall':'UTF-8'}{/if}">
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
<label class="col-lg-5 col-sm-5 col-xs-12">{l s='Name:' mod='dpdpoland'}</label>
|
||||
<div class="col-lg-7 col-sm-7 col-xs-12">
|
||||
<input type="text" name="dpdpoland_address_firstname" autocomplete="off" value="{if isset($address.firstname) && $address.firstname}{$address.firstname|escape:'htmlall':'UTF-8'}{/if}">
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
<label class="col-lg-5 col-sm-5 col-xs-12">{l s='Surname:' mod='dpdpoland'}</label>
|
||||
<div class="col-lg-7 col-sm-7 col-xs-12">
|
||||
<input type="text" name="dpdpoland_address_lastname" autocomplete="off" value="{if isset($address.lastname) && $address.lastname}{$address.lastname|escape:'htmlall':'UTF-8'}{/if}">
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
<label class="col-lg-5 col-sm-5 col-xs-12">{l s='Street and house no.:' mod='dpdpoland'}</label>
|
||||
<div class="col-lg-7 col-sm-7 col-xs-12">
|
||||
<input type="text" name="dpdpoland_address_street" autocomplete="off" value="{if isset($address.street) && $address.street}{$address.street|escape:'htmlall':'UTF-8'}{/if}">
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
<label class="col-lg-5 col-sm-5 col-xs-12">{l s='Postal code:' mod='dpdpoland'}</label>
|
||||
<div class="col-lg-7 col-sm-7 col-xs-12">
|
||||
<input type="text" name="dpdpoland_address_postcode" autocomplete="off" value="{if isset($address.postcode) && $address.postcode}{$address.postcode|escape:'htmlall':'UTF-8'}{/if}">
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
<label class="col-lg-5 col-sm-5 col-xs-12">{l s='City:' mod='dpdpoland'}</label>
|
||||
<div class="col-lg-7 col-sm-7 col-xs-12">
|
||||
<input type="text" name="dpdpoland_address_city" autocomplete="off" value="{if isset($address.city) && $address.city}{$address.city|escape:'htmlall':'UTF-8'}{/if}">
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
<label class="col-lg-5 col-sm-5 col-xs-12">{l s='Country:' mod='dpdpoland'}</label>
|
||||
<div class="col-lg-7 col-sm-7 col-xs-12">
|
||||
<input type="text" name="dpdpoland_address_country" autocomplete="off" value="{if isset($address.country) && $address.country}{$address.country|escape:'htmlall':'UTF-8'}{/if}">
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
<label class="col-lg-5 col-sm-5 col-xs-12">{l s='E-mail:' mod='dpdpoland'}</label>
|
||||
<div class="col-lg-7 col-sm-7 col-xs-12">
|
||||
<input type="text" name="dpdpoland_address_email" autocomplete="off" value="{if isset($address.email) && $address.email}{$address.email|escape:'htmlall':'UTF-8'}{/if}">
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
<label class="col-lg-5 col-sm-5 col-xs-12">{l s='Tel. No.' mod='dpdpoland'}</label>
|
||||
<div class="col-lg-7 col-sm-7 col-xs-12">
|
||||
<input type="text" name="dpdpoland_address_phone" autocomplete="off" value="{if isset($address.phone) && $address.phone}{$address.phone|escape:'htmlall':'UTF-8'}{/if}">
|
||||
</div>
|
||||
81
modules/dpdpoland/views/templates/admin/address_input_17.tpl
Normal file
81
modules/dpdpoland/views/templates/admin/address_input_17.tpl
Normal file
@@ -0,0 +1,81 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
|
||||
<div>
|
||||
<h5 class="my-0">{l s='Company name:' mod='dpdpoland'}</h5>
|
||||
<p>
|
||||
<input class="form-control" type="text" name="dpdpoland_address_company" autocomplete="off"
|
||||
value="{if isset($address.company) && $address.company}{$address.company|escape:'htmlall':'UTF-8'}{/if}">
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h5 class="my-0">{l s='Name:' mod='dpdpoland'}</h5>
|
||||
<p>
|
||||
<input class="form-control" type="text" name="dpdpoland_address_firstname" autocomplete="off"
|
||||
value="{if isset($address.firstname) && $address.firstname}{$address.firstname|escape:'htmlall':'UTF-8'}{/if}">
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h5 class="my-0">{l s='Surname:' mod='dpdpoland'}</h5>
|
||||
<p>
|
||||
<input class="form-control" type="text" name="dpdpoland_address_lastname" autocomplete="off"
|
||||
value="{if isset($address.lastname) && $address.lastname}{$address.lastname|escape:'htmlall':'UTF-8'}{/if}">
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h5 class="my-0">{l s='Street and house no.:' mod='dpdpoland'}</h5>
|
||||
<p>
|
||||
<input class="form-control" type="text" name="dpdpoland_address_street" autocomplete="off"
|
||||
value="{if isset($address.street) && $address.street}{$address.street|escape:'htmlall':'UTF-8'}{/if}">
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h5 class="my-0">{l s='Postal code:' mod='dpdpoland'}</h5>
|
||||
<p><input class="form-control" type="text" name="dpdpoland_address_postcode" autocomplete="off"
|
||||
value="{if isset($address.postcode) && $address.postcode}{$address.postcode|escape:'htmlall':'UTF-8'}{/if}">
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h5 class="my-0">{l s='City:' mod='dpdpoland'}</h5>
|
||||
<p><input class="form-control" type="text" name="dpdpoland_address_city" autocomplete="off"
|
||||
value="{if isset($address.city) && $address.city}{$address.city|escape:'htmlall':'UTF-8'}{/if}"></p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h5 class="my-0">{l s='Country:' mod='dpdpoland'}</h5>
|
||||
<p><input class="form-control" type="text" name="dpdpoland_address_country" autocomplete="off"
|
||||
value="{if isset($address.country) && $address.country}{$address.country|escape:'htmlall':'UTF-8'}{/if}">
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h5 class="my-0">{l s='E-mail:' mod='dpdpoland'}</h5>
|
||||
<p><input class="form-control" type="text" name="dpdpoland_address_email" autocomplete="off"
|
||||
value="{if isset($address.email) && $address.email}{$address.email|escape:'htmlall':'UTF-8'}{/if}"></p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h5 class="my-0">{l s='Tel. No.' mod='dpdpoland'}</h5>
|
||||
<p><input class="form-control" type="text" name="dpdpoland_address_phone" autocomplete="off"
|
||||
value="{if isset($address.phone) && $address.phone}{$address.phone|escape:'htmlall':'UTF-8'}{/if}"></p>
|
||||
</div>
|
||||
314
modules/dpdpoland/views/templates/admin/arrange_pickup.tpl
Normal file
314
modules/dpdpoland/views/templates/admin/arrange_pickup.tpl
Normal file
@@ -0,0 +1,314 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$("#pickupDate").datepicker({
|
||||
prevText: '',
|
||||
nextText: '',
|
||||
dateFormat: 'yy-mm-dd',
|
||||
beforeShowDay: $.datepicker.noWeekends,
|
||||
minDate: new Date()
|
||||
});
|
||||
|
||||
if ($('input[name="dox"]').is(':checked')) {
|
||||
$('#envelopes_container').show();
|
||||
}
|
||||
|
||||
if ($('input[name="parcels"]').is(':checked')) {
|
||||
$('#parcels_container').show();
|
||||
}
|
||||
|
||||
if ($('input[name="pallet"]').is(':checked')) {
|
||||
$('#pallets_container').show();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<form id="arrange_pickup_form" class="defaultForm" method="post">
|
||||
<fieldset id="sender_address">
|
||||
<legend><img
|
||||
src="{$smarty.const._DPDPOLAND_IMG_URI_|escape:'htmlall':'UTF-8'}settings.png"/> {l s='Sender address' mod='dpdpoland'}
|
||||
</legend>
|
||||
|
||||
<label>
|
||||
{l s='Sender address:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
{if $sender_addresses|count > 0}
|
||||
<select id="sender_address_selection" name="sender_address_selection" autocomplete="off">
|
||||
{foreach from=$sender_addresses item=address key=id_sender_address}
|
||||
<option value="{$id_sender_address}">{$address}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
{else}
|
||||
<p class="warn warning">{l s='Sender address must be specified in settings first' mod='dpdpoland'}</p>
|
||||
{/if}
|
||||
</div>
|
||||
<legend>
|
||||
<img src="{$smarty.const._DPDPOLAND_IMG_URI_|escape:'htmlall':'UTF-8'}settings.png"
|
||||
alt="{l s='Settings' mod='dpdpoland'}"/>
|
||||
{l s='General WS parameters' mod='dpdpoland'}
|
||||
</legend>
|
||||
|
||||
<label>
|
||||
{l s='Customer company name:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="customerCompany"
|
||||
value="{if isset($smarty.post.customerCompany)}{$smarty.post.customerCompany|escape:'htmlall':'UTF-8'}{else}{DpdPoland::getInputValue(DpdPolandConfiguration::CUSTOMER_COMPANY, $settings->customer_company)|escape:'htmlall':'UTF-8'}{/if}"/>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label>
|
||||
{l s='Customer name and surname:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="customerName"
|
||||
value="{if isset($smarty.post.customerName)}{$smarty.post.customerName|escape:'htmlall':'UTF-8'}{else}{DpdPoland::getInputValue(DpdPolandConfiguration::CUSTOMER_NAME, $settings->customer_name)|escape:'htmlall':'UTF-8'}{/if}"/>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label>
|
||||
{l s='Customer tel. No.:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="customerPhone"
|
||||
value="{if isset($smarty.post.customerPhone)}{$smarty.post.customerPhone|escape:'htmlall':'UTF-8'}{else}{DpdPoland::getInputValue(DpdPolandConfiguration::CUSTOMER_PHONE, $settings->customer_phone)|escape:'htmlall':'UTF-8'}{/if}"/>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
</fieldset>
|
||||
|
||||
<br/>
|
||||
|
||||
<fieldset id="pickup_date">
|
||||
<legend><img
|
||||
src="{$smarty.const._DPDPOLAND_IMG_URI_}settings.png"/> {l s='Date and time for pickup' mod='dpdpoland'}
|
||||
</legend>
|
||||
<label>
|
||||
{l s='Date of pickup:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input class="check_product_name updateCurrentText ac_input" type="text" id="pickupDate" name="pickupDate"
|
||||
value="{if isset($pickupDate)}{$pickupDate|escape:'htmlall':'UTF-8'}{/if}"/>
|
||||
<br/><br/>
|
||||
<div class="info hint clear visible-element relative">
|
||||
{l s='Order placement is possible only on working days, if you select non working day your order will be realized on first available working day' mod='dpdpoland'}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
<label>
|
||||
{l s='Timeframe of pickup:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div id="timeframe_container" class="margin-form">
|
||||
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</fieldset>
|
||||
|
||||
<br/>
|
||||
<fieldset id="package">
|
||||
<legend>
|
||||
<img src="{$smarty.const._DPDPOLAND_IMG_URI_|escape:'htmlall':'UTF-8'}settings.png"
|
||||
alt="{l s='Package' mod='dpdpoland'}"/>
|
||||
{l s='Package' mod='dpdpoland'}
|
||||
</legend>
|
||||
|
||||
<label>
|
||||
{l s='Shipment type:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input type="radio" checked="checked" value="DOMESTIC" autocomplete="off" name="orderType"
|
||||
id="shipment_type_domestic" {if isset($smarty.post.orderType) && $smarty.post.orderType == 'DOMESTIC'} checked="checked"{/if}>
|
||||
<label for="shipment_type_domestic" class="t">
|
||||
{l s='Domestic' mod='dpdpoland'}
|
||||
</label>
|
||||
<input type="radio" value="INTERNATIONAL" autocomplete="off" id="shipment_type_international"
|
||||
name="orderType" {if isset($smarty.post.orderType) && $smarty.post.orderType == 'INTERNATIONAL'} checked="checked"{/if}>
|
||||
<label for="shipment_type_international" class="t">
|
||||
{l s='International' mod='dpdpoland'}
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="separation"></div>
|
||||
|
||||
<label>
|
||||
{l s='Envelopes:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input type="hidden" name="parcels" value="0"/>
|
||||
<input id="toggleEnvelope" type="checkbox" autocomplete="off" name="dox"
|
||||
value="1" {if isset($smarty.post.dox) && $smarty.post.dox == 1} checked="checked"{/if} />
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<div id="envelopes_container" class="hidden-element">
|
||||
<label>
|
||||
{l s='Number of envelopes:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="doxCount"
|
||||
value="{if isset($smarty.post.doxCount)}{$smarty.post.doxCount|escape:'htmlall':'UTF-8'}{/if}"/>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div class="separation"></div>
|
||||
|
||||
{* Parcels begin *}
|
||||
<label>
|
||||
{l s='Parcels:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input type="hidden" name="parcels" value="0"/>
|
||||
<input id="toggleParcel" type="checkbox" autocomplete="off" name="parcels"
|
||||
value="1" {if isset($smarty.post.parcels) && $smarty.post.parcels == 1} checked="checked"{/if} />
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<div id="parcels_container" class="hidden-element">
|
||||
<label>
|
||||
{l s='Number of parcels:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="parcelsCount"
|
||||
value="{if isset($smarty.post.parcelsCount)}{$smarty.post.parcelsCount|escape:'htmlall':'UTF-8'}{/if}"/>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label>
|
||||
{l s='Summary weight (in kg):' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="parcelsWeight"
|
||||
value="{if isset($smarty.post.parcelsWeight)}{$smarty.post.parcelsWeight|escape:'htmlall':'UTF-8'}{/if}"/>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label>
|
||||
{l s='Weight of the heaviest item (in kg):' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="parcelMaxWeight"
|
||||
value="{if isset($smarty.post.parcelMaxWeight)}{$smarty.post.parcelMaxWeight|escape:'htmlall':'UTF-8'}{/if}"/>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label>
|
||||
{l s='Height of the tallest item (in cm):' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="parcelMaxHeight"
|
||||
value="{if isset($smarty.post.parcelMaxHeight)}{$smarty.post.parcelMaxHeight|escape:'htmlall':'UTF-8'}{/if}"/>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label>
|
||||
{l s='Length of the largest item (in cm):' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="parcelMaxDepth"
|
||||
value="{if isset($smarty.post.parcelMaxDepth)}{$smarty.post.parcelMaxDepth|escape:'htmlall':'UTF-8'}{/if}"/>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label>
|
||||
{l s='Width of the longest item (in cm):' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="parcelMaxWidth"
|
||||
value="{if isset($smarty.post.parcelMaxWidth)}{$smarty.post.parcelMaxWidth|escape:'htmlall':'UTF-8'}{/if}"/>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
{* Parcels end *}
|
||||
|
||||
<div class="separation"></div>
|
||||
{* Pallets begin *}
|
||||
|
||||
<label>
|
||||
{l s='Pallets:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input type="hidden" name="pallet" value="0"/>
|
||||
<input id="togglePallet" type="checkbox" name="pallet" value="1"
|
||||
autocomplete="off" {if isset($smarty.post.pallet) && $smarty.post.pallet == 1} checked="checked"{/if} />
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<div id="pallets_container" class="hidden-element">
|
||||
<label>
|
||||
{l s='Number of pallets:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="palletsCount"
|
||||
value="{if isset($smarty.post.palletsCount)}{$smarty.post.palletsCount|escape:'htmlall':'UTF-8'}{/if}"/>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label>
|
||||
{l s='Summary weight (in kg):' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="palletsWeight"
|
||||
value="{if isset($smarty.post.palletsWeight)}{$smarty.post.palletsWeight|escape:'htmlall':'UTF-8'}{/if}"/>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label>
|
||||
{l s='Weight of the heaviest item (in kg):' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="palletMaxWeight"
|
||||
value="{if isset($smarty.post.palletMaxWeight)}{$smarty.post.palletMaxWeight|escape:'htmlall':'UTF-8'}{/if}"/>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label>
|
||||
{l s='Height of the tallest item (in cm):' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="palletMaxHeight"
|
||||
value="{if isset($smarty.post.palletMaxHeight)}{$smarty.post.palletMaxHeight|escape:'htmlall':'UTF-8'}{/if}"/>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
{* Palets end *}
|
||||
</fieldset>
|
||||
|
||||
<br/>
|
||||
|
||||
<fieldset id="send_pickup_request">
|
||||
<legend><img
|
||||
src="{$smarty.const._DPDPOLAND_IMG_URI_|escape:'htmlall':'UTF-8'}settings.png"/> {l s='Send' mod='dpdpoland'}
|
||||
</legend>
|
||||
<p class="info hint clear visible-element relative">
|
||||
{l s='Some text for merchants information - to be agreed on.' mod='dpdpoland'}
|
||||
</p>
|
||||
<div class="margin-form">
|
||||
<input type="submit" name="requestPickup" class="button" value="{l s='Arrange Pickup' mod='dpdpoland'}"/>
|
||||
<input type="button" class="button" value="{l s='Cancel' mod='dpdpoland'}"
|
||||
onclick="window.location = '{$module_link|escape:'htmlall':'UTF-8'}'"/>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</fieldset>
|
||||
</form>
|
||||
317
modules/dpdpoland/views/templates/admin/arrange_pickup_16.tpl
Normal file
317
modules/dpdpoland/views/templates/admin/arrange_pickup_16.tpl
Normal file
@@ -0,0 +1,317 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$("#pickupDate").datepicker({
|
||||
prevText: '',
|
||||
nextText: '',
|
||||
dateFormat: 'yy-mm-dd',
|
||||
beforeShowDay: $.datepicker.noWeekends,
|
||||
minDate: new Date()
|
||||
});
|
||||
|
||||
if ($('input[name="dox"]').is(':checked')) {
|
||||
$('#envelopes_container').show();
|
||||
}
|
||||
|
||||
if ($('input[name="parcels"]').is(':checked')) {
|
||||
$('#parcels_container').show();
|
||||
}
|
||||
|
||||
if ($('input[name="pallet"]').is(':checked')) {
|
||||
$('#pallets_container').show();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<form id="arrange_pickup_form" class="form-horizontal" method="post">
|
||||
<div id="sender_address" class="panel">
|
||||
<div class="panel-heading">
|
||||
<i class="icon-cogs"></i>
|
||||
{l s='Sender address' mod='dpdpoland'}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3 col-sm-6">
|
||||
{l s='Sender address:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9 col-sm-6">
|
||||
{if $sender_addresses|count > 0}
|
||||
<select id="sender_address_selection" name="sender_address_selection" autocomplete="off">
|
||||
{foreach from=$sender_addresses item=address key=id_sender_address}
|
||||
<option value="{$id_sender_address}">{$address}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
{else}
|
||||
<p class="alert alert-warning">{l s='Sender address must be specified in settings first' mod='dpdpoland'}</p>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">
|
||||
{l s='Customer company name:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" name="customerCompany" value="{if isset($smarty.post.customerCompany)}{$smarty.post.customerCompany|escape:'htmlall':'UTF-8'}{else}{DpdPoland::getInputValue(DpdPolandConfiguration::CUSTOMER_COMPANY, $settings->customer_company)|escape:'htmlall':'UTF-8'}{/if}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">
|
||||
{l s='Customer name and surname:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" name="customerName" value="{if isset($smarty.post.customerName)}{$smarty.post.customerName|escape:'htmlall':'UTF-8'}{else}{DpdPoland::getInputValue(DpdPolandConfiguration::CUSTOMER_NAME, $settings->customer_name)|escape:'htmlall':'UTF-8'}{/if}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">
|
||||
{l s='Customer tel. No.:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" name="customerPhone" value="{if isset($smarty.post.customerPhone)}{$smarty.post.customerPhone|escape:'htmlall':'UTF-8'}{else}{DpdPoland::getInputValue(DpdPolandConfiguration::CUSTOMER_PHONE, $settings->customer_phone)|escape:'htmlall':'UTF-8'}{/if}" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="pickup_date" class="panel">
|
||||
<div class="panel-heading">
|
||||
<i class="icon-cogs"></i>
|
||||
{l s='Date and time for pickup' mod='dpdpoland'}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3 col-sm-6" for="login_input">
|
||||
{l s='Date of pickup:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9 col-sm-6">
|
||||
<input class="check_product_name updateCurrentText ac_input" type="text" id="pickupDate" name="pickupDate" value="{if isset($pickupDate)}{$pickupDate|escape:'htmlall':'UTF-8'}{/if}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="alert alert-info">
|
||||
{l s='Order placement is possible only on working days, if you select non working day your order will be realized on first available working day' mod='dpdpoland'}
|
||||
</p>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3 col-sm-6" for="login_input">
|
||||
{l s='Timeframe of pickup:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9 col-sm-6">
|
||||
<div id="timeframe_container" class="margin-form">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="package" class="panel">
|
||||
<div class="panel-heading">
|
||||
<i class="icon-cogs"></i>
|
||||
{l s='Package' mod='dpdpoland'}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3 col-sm-6">
|
||||
{l s='Shipment type:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9 col-sm-6">
|
||||
<p class="radio">
|
||||
<label>
|
||||
<input type="radio" checked="checked" value="DOMESTIC" autocomplete="off" name="orderType" id="shipment_type_domestic" {if isset($smarty.post.orderType) && $smarty.post.orderType == 'DOMESTIC'} checked="checked"{/if}>
|
||||
{l s='Domestic' mod='dpdpoland'}
|
||||
</label>
|
||||
</p>
|
||||
<p class="radio">
|
||||
<label>
|
||||
<input type="radio" value="INTERNATIONAL" autocomplete="off" id="shipment_type_international" name="orderType" {if isset($smarty.post.orderType) && $smarty.post.orderType == 'INTERNATIONAL'} checked="checked"{/if}>
|
||||
{l s='International' mod='dpdpoland'}
|
||||
</label>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="row">
|
||||
<label class="control-label col-lg-3 col-sm-6 col-xs-4">
|
||||
{l s='Envelopes:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9 col-sm-6 col-xs-8">
|
||||
<input type="hidden" name="parcels" value="0" />
|
||||
<input id="toggleEnvelope" type="checkbox" autocomplete="off" name="dox" value="1" {if isset($smarty.post.dox) && $smarty.post.dox == 1} checked="checked"{/if} />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div id="envelopes_container" class="col-lg-12 hidden-element">
|
||||
<br />
|
||||
<label class="control-label col-lg-3 col-sm-6">
|
||||
{l s='Number of envelopes:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9 col-sm-6">
|
||||
<input type="text" name="doxCount" value="{if isset($smarty.post.doxCount)}{$smarty.post.doxCount|escape:'htmlall':'UTF-8'}{/if}" />
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="row">
|
||||
<label class="control-label col-lg-3 col-sm-6 col-xs-4">
|
||||
{l s='Parcels:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9 col-sm-6 col-xs-8">
|
||||
<input type="hidden" name="parcels" value="0" />
|
||||
<input id="toggleParcel" type="checkbox" autocomplete="off" name="parcels" value="1" {if isset($smarty.post.parcels) && $smarty.post.parcels == 1} checked="checked"{/if} />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div id="parcels_container" class="col-lg-12 hidden-element">
|
||||
<br />
|
||||
<label class="control-label col-lg-3 col-sm-6">
|
||||
{l s='Number of parcels:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9 col-sm-6">
|
||||
<input type="text" name="parcelsCount" value="{if isset($smarty.post.parcelsCount)}{$smarty.post.parcelsCount|escape:'htmlall':'UTF-8'}{/if}" />
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<br />
|
||||
<label class="control-label col-lg-3 col-sm-6">
|
||||
{l s='Summary weight (in kg):' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9 col-sm-6">
|
||||
<input type="text" name="parcelsWeight" value="{if isset($smarty.post.parcelsWeight)}{$smarty.post.parcelsWeight|escape:'htmlall':'UTF-8'}{/if}" />
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<br />
|
||||
<label class="control-label col-lg-3 col-sm-6">
|
||||
{l s='Weight of the heaviest item (in kg):' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9 col-sm-6">
|
||||
<input type="text" name="parcelMaxWeight" value="{if isset($smarty.post.parcelMaxWeight)}{$smarty.post.parcelMaxWeight|escape:'htmlall':'UTF-8'}{/if}" />
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<br />
|
||||
<label class="control-label col-lg-3 col-sm-6">
|
||||
{l s='Height of the tallest item (in cm):' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9 col-sm-6">
|
||||
<input type="text" name="parcelMaxHeight" value="{if isset($smarty.post.parcelMaxHeight)}{$smarty.post.parcelMaxHeight|escape:'htmlall':'UTF-8'}{/if}" />
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<br />
|
||||
<label class="control-label col-lg-3 col-sm-6">
|
||||
{l s='Length of the largest item (in cm):' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9 col-sm-6">
|
||||
<input type="text" name="parcelMaxDepth" value="{if isset($smarty.post.parcelMaxDepth)}{$smarty.post.parcelMaxDepth|escape:'htmlall':'UTF-8'}{/if}" />
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<br />
|
||||
<label class="control-label col-lg-3 col-sm-6">
|
||||
{l s='Width of the longest item (in cm):' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9 col-sm-6">
|
||||
<input type="text" name="parcelMaxWidth" value="{if isset($smarty.post.parcelMaxWidth)}{$smarty.post.parcelMaxWidth|escape:'htmlall':'UTF-8'}{/if}" />
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="row">
|
||||
<label class="control-label col-lg-3 col-sm-6 col-xs-4">
|
||||
{l s='Pallets:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9 col-sm-6 col-xs-8">
|
||||
<input type="hidden" name="pallet" value="0" />
|
||||
<input id="togglePallet" type="checkbox" name="pallet" value="1" autocomplete="off" {if isset($smarty.post.pallet) && $smarty.post.pallet == 1} checked="checked"{/if} />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div id="pallets_container" class="col-lg-12 hidden-element">
|
||||
<br />
|
||||
<label class="control-label col-lg-3 col-sm-6">
|
||||
{l s='Number of pallets:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9 col-sm-6">
|
||||
<input type="text" name="palletsCount" value="{if isset($smarty.post.palletsCount)}{$smarty.post.palletsCount|escape:'htmlall':'UTF-8'}{/if}" />
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<br />
|
||||
<label class="control-label col-lg-3 col-sm-6">
|
||||
{l s='Summary weight (in kg):' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9 col-sm-6">
|
||||
<input type="text" name="palletsWeight" value="{if isset($smarty.post.palletsWeight)}{$smarty.post.palletsWeight|escape:'htmlall':'UTF-8'}{/if}" />
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<br />
|
||||
<label class="control-label col-lg-3 col-sm-6">
|
||||
{l s='Weight of the heaviest item (in kg):' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9 col-sm-6">
|
||||
<input type="text" name="palletMaxWeight" value="{if isset($smarty.post.palletMaxWeight)}{$smarty.post.palletMaxWeight|escape:'htmlall':'UTF-8'}{/if}" />
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<br />
|
||||
<label class="control-label col-lg-3 col-sm-6">
|
||||
{l s='Height of the tallest item (in cm):' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9 col-sm-6">
|
||||
<input type="text" name="palletMaxHeight" value="{if isset($smarty.post.palletMaxHeight)}{$smarty.post.palletMaxHeight|escape:'htmlall':'UTF-8'}{/if}" />
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="send_pickup_request" class="panel">
|
||||
<div class="panel-heading">
|
||||
<i class="icon-cogs"></i>
|
||||
{l s='Send' mod='dpdpoland'}
|
||||
</div>
|
||||
|
||||
<p class="alert alert-info">
|
||||
{l s='Some text for merchants information - to be agreed on.' mod='dpdpoland'}
|
||||
</p>
|
||||
|
||||
<div class="panel-footer">
|
||||
<a class="btn btn-default" href="{$module_link|escape:'htmlall':'UTF-8'}">
|
||||
<i class="process-icon-cancel"></i>
|
||||
{l s='Cancel' mod='dpdpoland'}
|
||||
</a>
|
||||
<button class="btn btn-default pull-right" name="requestPickup" type="submit">
|
||||
<i class="process-icon-save"></i>
|
||||
{l s='Arrange Pickup' mod='dpdpoland'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
605
modules/dpdpoland/views/templates/admin/configuration.tpl
Normal file
605
modules/dpdpoland/views/templates/admin/configuration.tpl
Normal file
@@ -0,0 +1,605 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
<form id="configuration_form" class="defaultForm" action="{$saveAction|escape:'htmlall':'UTF-8'}&menu=configuration" method="post" enctype="multipart/form-data">
|
||||
<fieldset id="credentials">
|
||||
<legend>
|
||||
<img src="{$smarty.const._DPDPOLAND_IMG_URI_|escape:'htmlall':'UTF-8'}settings.png" alt="{l s='Settings' mod='dpdpoland'}" />
|
||||
{l s='DPD credentials' mod='dpdpoland'}
|
||||
</legend>
|
||||
|
||||
<label>
|
||||
{l s='Login:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input id="login_input" type="text" name="{DpdPolandConfiguration::LOGIN|escape:'htmlall':'UTF-8'}" value="{DpdPoland::getInputValue(DpdPolandConfiguration::LOGIN, $settings->login)|escape:'htmlall':'UTF-8'}" />
|
||||
<sup>*</sup>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label>
|
||||
{l s='Password:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input id="password" type="password" name="{DpdPolandConfiguration::PASSWORD|escape:'htmlall':'UTF-8'}" value="{DpdPoland::getInputValue(DpdPolandConfiguration::PASSWORD, $settings->password)|escape:'htmlall':'UTF-8'}" />
|
||||
<sup>*</sup>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<label>
|
||||
{l s='Customer FID:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="{DpdPolandConfiguration::CUSTOMER_FID|escape:'htmlall':'UTF-8'}" value="{DpdPoland::getInputValue(DpdPolandConfiguration::CUSTOMER_FID, $settings->customer_fid)|escape:'htmlall':'UTF-8'}" />
|
||||
<sup>*</sup>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="separation"></div>
|
||||
|
||||
<div id="error_message" class="error hidden-element"></div>
|
||||
<div id="success_message" class="conf hidden-element"></div>
|
||||
|
||||
<div class="float-left">
|
||||
<label>
|
||||
{l s='DPD client number:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input id="client_number" type="text" name="" value="" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="float-left">
|
||||
<label>
|
||||
{l s='Client name:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input id="client_name" type="text" name="" value="" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="add-client-number-button-container">
|
||||
<input id="addClientNumber" type="button" class="button" value="{l s='Add' mod='dpdpoland'}" />
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label>
|
||||
{l s='Master FID:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<div id="client_numbers_table_container">
|
||||
{include file=$smarty.const._DPDPOLAND_TPL_DIR_|cat:'admin/payer_numbers_table.tpl'}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="margin-form">
|
||||
<input type="submit" class="button" name="{DpdPolandConfigurationController::SETTINGS_SAVE_ACTION|escape:'htmlall':'UTF-8'}" value="{l s='Save' mod='dpdpoland'}" />
|
||||
</div>
|
||||
|
||||
<div class="small">
|
||||
<sup>*</sup> {l s='Required field' mod='dpdpoland'}
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<br />
|
||||
|
||||
<fieldset id="customer_data">
|
||||
<legend>
|
||||
<img src="{$smarty.const._DPDPOLAND_IMG_URI_|escape:'htmlall':'UTF-8'}settings.png" alt="{l s='Settings' mod='dpdpoland'}" />
|
||||
{l s='General WS parameters' mod='dpdpoland'}
|
||||
</legend>
|
||||
|
||||
<label>
|
||||
{l s='Customer company name:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="{DpdPolandConfiguration::CUSTOMER_COMPANY|escape:'htmlall':'UTF-8'}" value="{DpdPoland::getInputValue(DpdPolandConfiguration::CUSTOMER_COMPANY, $settings->customer_company)|escape:'htmlall':'UTF-8'}" />
|
||||
<sup>*</sup>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label>
|
||||
{l s='Customer name and surname:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="{DpdPolandConfiguration::CUSTOMER_NAME|escape:'htmlall':'UTF-8'}" value="{DpdPoland::getInputValue(DpdPolandConfiguration::CUSTOMER_NAME, $settings->customer_name)|escape:'htmlall':'UTF-8'}" />
|
||||
<sup>*</sup>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label>
|
||||
{l s='Customer tel. No.:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="{DpdPolandConfiguration::CUSTOMER_PHONE|escape:'htmlall':'UTF-8'}" value="{DpdPoland::getInputValue(DpdPolandConfiguration::CUSTOMER_PHONE, $settings->customer_phone)|escape:'htmlall':'UTF-8'}" />
|
||||
<sup>*</sup>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="margin-form">
|
||||
<input type="submit" class="button" name="{DpdPolandConfigurationController::SETTINGS_SAVE_ACTION|escape:'htmlall':'UTF-8'}" value="{l s='Save' mod='dpdpoland'}" />
|
||||
</div>
|
||||
|
||||
<div class="small">
|
||||
<sup>*</sup> {l s='Required field' mod='dpdpoland'}
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<br />
|
||||
|
||||
<fieldset id="shipping">
|
||||
<legend>
|
||||
<img src="{$smarty.const._DPDPOLAND_IMG_URI_|escape:'htmlall':'UTF-8'}settings.png" alt="{l s='Settings' mod='dpdpoland'}" />
|
||||
{l s='Active shiping services' mod='dpdpoland'}
|
||||
</legend>
|
||||
|
||||
<label for="dpd_standard">
|
||||
{l s='DPD domestic shipment - Standard:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input id="dpd_standard" type="checkbox" name="{DpdPolandConfiguration::CARRIER_STANDARD|escape:'htmlall':'UTF-8'}" {if DpdPoland::getInputValue(DpdPolandConfiguration::CARRIER_STANDARD, $settings->carrier_standard)}checked="checked"{/if} value="1" />
|
||||
<p class="preference_description">
|
||||
{l s='DPD domestic shipment - Standard:' mod='dpdpoland'}
|
||||
</p>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label for="dpd_standard_cod">
|
||||
{l s='DPD domestic shipment - Standard with COD:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input id="dpd_standard_cod" {if !DPDpoland::CODMethodIsAvailable()}onclick="alert(no_COD_methods_message); return false;"{/if} type="checkbox" name="{DpdPolandConfiguration::CARRIER_STANDARD_COD}" {if DpdPoland::getInputValue(DpdPolandConfiguration::CARRIER_STANDARD_COD, $settings->carrier_standard_cod) && DPDpoland::CODMethodIsAvailable()}checked="checked"{/if} value="1" />
|
||||
<p class="preference_description">
|
||||
{l s='DPD domestic shipment - Standard with COD' mod='dpdpoland'}
|
||||
</p>
|
||||
{if DPDpoland::CODMethodIsAvailable()}
|
||||
<div class="payment_modules_container">
|
||||
<table>
|
||||
{section name=iii loop=$payment_modules}
|
||||
<tr>
|
||||
<td align="right">
|
||||
<label>{$payment_modules[iii].displayName|escape:'htmlall':'UTF-8'}</label>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" name="{DpdPolandConfiguration::COD_MODULE_PREFIX|escape:'htmlall':'UTF-8'}{$payment_modules[iii].name|escape:'htmlall':'UTF-8'}" value="1" {if Configuration::get(DpdPolandConfiguration::COD_MODULE_PREFIX|escape:'htmlall':'UTF-8'|cat:$payment_modules[iii].name|escape:'htmlall':'UTF-8')}checked="checked"{/if} />
|
||||
</td>
|
||||
</tr>
|
||||
{/section}
|
||||
</table>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<p class="clear hint list info visible-element relative">
|
||||
{l s='RULE: DPD Polska Sp. z o.o. allows payment on the delivery ONLY by cash. In your payment modules you have available this types of payment, please mark those payment methods that support this rule.' mod='dpdpoland'}
|
||||
</p>
|
||||
|
||||
<label for="dpd_classic">
|
||||
{l s='DPD international shipment (DPD Classic):' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input id="dpd_classic" type="checkbox" name="{DpdPolandConfiguration::CARRIER_CLASSIC|escape:'htmlall':'UTF-8'}" {if DpdPoland::getInputValue(DpdPolandConfiguration::CARRIER_CLASSIC, $settings->carrier_classic)}checked="checked"{/if} value="1" />
|
||||
<p class="preference_description">
|
||||
{l s='DPD international shipment (DPD Classic)' mod='dpdpoland'}
|
||||
</p>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label for="dpd_pudo">
|
||||
{l s='DPD Poland Reception Point Pickup:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input id="dpd_pudo" type="checkbox" name="{DpdPolandConfiguration::CARRIER_PUDO|escape:'htmlall':'UTF-8'}" {if DpdPoland::getInputValue(DpdPolandConfiguration::CARRIER_PUDO, $settings->carrier_pudo)}checked="checked"{/if} value="1" />
|
||||
<p class="preference_description">
|
||||
{l s='DPD Poland Reception Point Pickup' mod='dpdpoland'}
|
||||
</p>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<p class="clear list info hint visible-element relative">
|
||||
{l s='Please note that after module installation carriers are not created.' mod='dpdpoland'}
|
||||
</p>
|
||||
|
||||
<div class="margin-form">
|
||||
<input type="submit" class="button" name="{DpdPolandConfigurationController::SETTINGS_SAVE_ACTION|escape:'htmlall':'UTF-8'}" value="{l s='Save' mod='dpdpoland'}" />
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<br />
|
||||
|
||||
<fieldset id="active_zones">
|
||||
<legend>
|
||||
<img src="{$smarty.const._DPDPOLAND_IMG_URI_|escape:'htmlall':'UTF-8'}settings.png" alt="{l s='Settings' mod='dpdpoland'}" />
|
||||
{l s='Active zones' mod='dpdpoland'}
|
||||
</legend>
|
||||
|
||||
<div class="margin-form">
|
||||
<table cellspacing="0" cellpadding="5" id="zones_table">
|
||||
<thead>
|
||||
<th>
|
||||
|
||||
</th>
|
||||
<th>
|
||||
{l s='DPD domestic shipment - Standard' mod='dpdpoland'}
|
||||
</th>
|
||||
<th>
|
||||
|
||||
</th>
|
||||
<th>
|
||||
{l s='DPD domestic shipment - Standard with COD' mod='dpdpoland'}
|
||||
</th>
|
||||
<th>
|
||||
|
||||
</th>
|
||||
<th>
|
||||
{l s='DPD international shipment (DPD Classic)' mod='dpdpoland'}
|
||||
</th>
|
||||
<th>
|
||||
{l s='DPD Poland Reception Point Pickup' mod='dpdpoland'}
|
||||
</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{section name=ii loop=$zones}
|
||||
<tr class="fees{if $smarty.section.ii.index %2 == 0} alt_row{/if}">
|
||||
<td class="border_top border_bottom border_bold">
|
||||
{$zones[ii].name|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td class="center">
|
||||
<input type="checkbox"{if in_array($zones[ii].id_zone, $carrier_zones['standard'])} checked="checked"{/if} name="standard_{$zones[ii].id_zone|intval}" class="form-control domestic_zone" value="1" />
|
||||
</td>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
<td class="center">
|
||||
<input type="checkbox"{if in_array($zones[ii].id_zone, $carrier_zones['standard_cod'])} checked="checked"{/if} name="standard_cod_{$zones[ii].id_zone|intval}" class="form-control domestic_cod_zone" value="1" />
|
||||
</td>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
<td class="center">
|
||||
<input type="checkbox"{if in_array($zones[ii].id_zone, $carrier_zones['classic'])} checked="checked"{/if} name="classic_{$zones[ii].id_zone|intval}" class="form-control classic_zone" value="1">
|
||||
</td>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
<td class="center">
|
||||
<input type="checkbox"{if in_array($zones[ii].id_zone, $carrier_zones['pudo'])} checked="checked"{/if} name="pudo_{$zones[ii].id_zone|intval}" class="form-control pudo_zone" value="1">
|
||||
</td>
|
||||
</tr>
|
||||
{/section}
|
||||
</tbody></table>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<p class="clear list info hint visible-element relative">
|
||||
{l s='Please define price ranges for each carrier in carrier configuration page or import CSV file with price ranges.' mod='dpdpoland'}
|
||||
</p>
|
||||
|
||||
<div class="margin-form">
|
||||
<input type="submit" class="button" name="{DpdPolandConfigurationController::SETTINGS_SAVE_ACTION|escape:'htmlall':'UTF-8'}" value="{l s='Save' mod='dpdpoland'}" />
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<br />
|
||||
|
||||
<fieldset id="price_calculation">
|
||||
<legend>
|
||||
<img src="{$smarty.const._DPDPOLAND_IMG_URI_|escape:'htmlall':'UTF-8'}settings.png" alt="{l s='Settings' mod='dpdpoland'}" />
|
||||
{l s='Price calculation' mod='dpdpoland'}
|
||||
</legend>
|
||||
|
||||
<label>
|
||||
{l s='Shipping price calculation method:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input id="price_calculation_csv" type="radio" name="{DpdPolandConfiguration::PRICE_CALCULATION_TYPE|escape:'htmlall':'UTF-8'}" {if DpdPoland::getInputValue(DpdPolandConfiguration::PRICE_CALCULATION_TYPE, $settings->price_calculation_type) == DpdPolandConfiguration::PRICE_CALCULATION_CSV}checked="checked"{/if} value="{DpdPolandConfiguration::PRICE_CALCULATION_CSV}" />
|
||||
<label class="t" for="price_calculation_csv">
|
||||
{l s='CSV rules' mod='dpdpoland'}
|
||||
</label>
|
||||
<input id="price_calculation_prestashop" type="radio" name="{DpdPolandConfiguration::PRICE_CALCULATION_TYPE|escape:'htmlall':'UTF-8'}" {if DpdPoland::getInputValue(DpdPolandConfiguration::PRICE_CALCULATION_TYPE, $settings->price_calculation_type) == DpdPolandConfiguration::PRICE_CALCULATION_PRESTASHOP}checked="checked"{/if} value="{DpdPolandConfiguration::PRICE_CALCULATION_PRESTASHOP}" />
|
||||
<label class="t" for="price_calculation_prestashop">
|
||||
{l s='PrestaShop shipping locations rules' mod='dpdpoland'}
|
||||
</label>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="margin-form">
|
||||
<input type="submit" class="button" name="{DpdPolandConfigurationController::SETTINGS_SAVE_ACTION|escape:'htmlall':'UTF-8'}" value="{l s='Save' mod='dpdpoland'}" />
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<br />
|
||||
|
||||
<fieldset id="weight_measurement">
|
||||
<legend>
|
||||
<img src="{$smarty.const._DPDPOLAND_IMG_URI_|escape:'htmlall':'UTF-8'}settings.png" alt="{l s='Settings' mod='dpdpoland'}" />
|
||||
{l s='Weight measurement units conversation' mod='dpdpoland'}
|
||||
</legend>
|
||||
|
||||
<label>
|
||||
{l s='System default weight units:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
{Configuration::get('PS_WEIGHT_UNIT')|escape:'htmlall':'UTF-8'}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label>
|
||||
{l s='DPD weight units:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
{$smarty.const._DPDPOLAND_DEFAULT_WEIGHT_UNIT_|escape:'htmlall':'UTF-8'}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label>
|
||||
{l s='Conversation rate:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input id="weight_conversion_input" type="text" name="{DpdPolandConfiguration::WEIGHT_CONVERSATION_RATE|escape:'htmlall':'UTF-8'}" value="{DpdPoland::getInputValue(DpdPolandConfiguration::WEIGHT_CONVERSATION_RATE, $settings->weight_conversation_rate)|escape:'htmlall':'UTF-8'}" />
|
||||
<sup>*</sup>
|
||||
1 {Configuration::get('PS_WEIGHT_UNIT')|escape:'htmlall':'UTF-8'} = <span id="dpd_weight_unit">{DpdPoland::getInputValue(DpdPolandConfiguration::WEIGHT_CONVERSATION_RATE, $settings->weight_conversation_rate|escape:'htmlall':'UTF-8')}</span> {$smarty.const._DPDPOLAND_DEFAULT_WEIGHT_UNIT_|escape:'htmlall':'UTF-8'}
|
||||
<p class="preference_description">
|
||||
{l s='Conversation rate from system to DPD weight units. If your system uses the same units as DPD please fill 1.' mod='dpdpoland'}
|
||||
</p>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="margin-form">
|
||||
<input type="submit" class="button" name="{DpdPolandConfigurationController::SETTINGS_SAVE_ACTION|escape:'htmlall':'UTF-8'}" value="{l s='Save' mod='dpdpoland'}" />
|
||||
</div>
|
||||
|
||||
<div class="small">
|
||||
<sup>*</sup> {l s='Required field' mod='dpdpoland'}
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<br />
|
||||
|
||||
<fieldset id="dimension_measurement">
|
||||
<legend>
|
||||
<img src="{$smarty.const._DPDPOLAND_IMG_URI_|escape:'htmlall':'UTF-8'}settings.png" alt="{l s='Settings' mod='dpdpoland'}" />
|
||||
{l s='Dimension measurement units conversation' mod='dpdpoland'}
|
||||
</legend>
|
||||
|
||||
<label>
|
||||
{l s='System default dimension units:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
{Configuration::get('PS_DIMENSION_UNIT')|escape:'htmlall':'UTF-8'}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label>
|
||||
{l s='DPD dimension units:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
{$smarty.const._DPDPOLAND_DEFAULT_DIMENSION_UNIT_|escape:'htmlall':'UTF-8'}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label>
|
||||
{l s='Conversation rate:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input id="weight_conversion_input" type="text" name="{DpdPolandConfiguration::DIMENSION_CONVERSATION_RATE|escape:'htmlall':'UTF-8'}" value="{DpdPoland::getInputValue(DpdPolandConfiguration::DIMENSION_CONVERSATION_RATE, $settings->dimension_conversation_rate)|escape:'htmlall':'UTF-8'}" />
|
||||
<sup>*</sup>
|
||||
1 {Configuration::get('PS_DIMENSION_UNIT')|escape:'htmlall':'UTF-8'} = <span id="dpd_weight_unit">{DpdPoland::getInputValue(DpdPolandConfiguration::DIMENSION_CONVERSATION_RATE, $settings->dimension_conversation_rate)|escape:'htmlall':'UTF-8'}</span> {$smarty.const._DPDPOLAND_DEFAULT_DIMENSION_UNIT_|escape:'htmlall':'UTF-8'}
|
||||
<p class="preference_description">
|
||||
{l s='Conversation rate from system to DPD dimension units. If your system uses the same units as DPD please fill 1.' mod='dpdpoland'}
|
||||
</p>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="margin-form">
|
||||
<input type="submit" class="button" name="{DpdPolandConfigurationController::SETTINGS_SAVE_ACTION|escape:'htmlall':'UTF-8'}" value="{l s='Save' mod='dpdpoland'}" />
|
||||
</div>
|
||||
|
||||
<div class="small">
|
||||
<sup>*</sup> {l s='Required field' mod='dpdpoland'}
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<br />
|
||||
|
||||
<fieldset id="ws_url">
|
||||
<legend>
|
||||
<img src="{$smarty.const._DPDPOLAND_IMG_URI_|escape:'htmlall':'UTF-8'}settings.png" alt="{l s='Settings' mod='dpdpoland'}" />
|
||||
{l s='Web Services URL' mod='dpdpoland'}
|
||||
</legend>
|
||||
|
||||
<label>
|
||||
{l s='Web Services URL:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<select id="ws_url_input" name="{DpdPolandConfiguration::WS_URL|escape:'htmlall':'UTF-8'}">
|
||||
<option value="{DpdPolandConfiguration::WSDL_URL_LIVE|escape:'htmlall':'UTF-8'}"{if DpdPoland::getInputValue(DpdPolandConfiguration::WS_URL, $settings->ws_url) == DpdPolandConfiguration::WSDL_URL_LIVE} selected="selected"{/if}>{l s='Access to the production system' mod='dpdpoland'}</option>
|
||||
<option value="{DpdPolandConfiguration::WSDL_URL_DEMO|escape:'htmlall':'UTF-8'}"{if DpdPoland::getInputValue(DpdPolandConfiguration::WS_URL, $settings->ws_url) == DpdPolandConfiguration::WSDL_URL_DEMO} selected="selected"{/if}>{l s='Access to the demonstration system' mod='dpdpoland'}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="margin-form">
|
||||
<input type="submit" class="button" name="{DpdPolandConfigurationController::SETTINGS_SAVE_ACTION|escape:'htmlall':'UTF-8'}" value="{l s='Save' mod='dpdpoland'}" />
|
||||
</div>
|
||||
|
||||
<div class="small">
|
||||
<sup>*</sup> {l s='Required field' mod='dpdpoland'}
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<br />
|
||||
|
||||
<fieldset id="additional_settings">
|
||||
<legend>
|
||||
<img src="{$smarty.const._DPDPOLAND_IMG_URI_|escape:'htmlall':'UTF-8'}settings.png" alt="{l s='Settings' mod='dpdpoland'}" />
|
||||
{l s='Additional settings' mod='dpdpoland'}
|
||||
</legend>
|
||||
|
||||
<label for="declared_value">
|
||||
{l s='Declared value:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input id="declared_value" type="checkbox" name="{DpdPolandConfiguration::DECLARED_VALUE|escape:'htmlall':'UTF-8'}" {if DpdPoland::getInputValue(DpdPolandConfiguration::DECLARED_VALUE, $settings->declared_value)}checked="checked"{/if} value="1" />
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label for="cud">
|
||||
{l s='Return parcel:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input id="cud" type="checkbox" name="{DpdPolandConfiguration::CUD|escape:'htmlall':'UTF-8'}" {if DpdPoland::getInputValue(DpdPolandConfiguration::CUD, $settings->cud)}checked="checked"{/if} value="1" />
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label for="rod">
|
||||
{l s='Return documents:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input id="rod" type="checkbox" name="{DpdPolandConfiguration::ROD|escape:'htmlall':'UTF-8'}" {if DpdPoland::getInputValue(DpdPolandConfiguration::ROD, $settings->rod)}checked="checked"{/if} value="1" />
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label for="dpde">
|
||||
{l s='DPD Express:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input id="dpde" type="checkbox" name="{DpdPolandConfiguration::DPDE|escape:'htmlall':'UTF-8'}" {if DpdPoland::getInputValue(DpdPolandConfiguration::DPDE, $settings->dpde)}checked="checked"{/if} value="1" />
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label for="dpdnd">
|
||||
{l s='DPD Next day:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input id="dpdnd" type="checkbox" name="{DpdPolandConfiguration::DPDND|escape:'htmlall':'UTF-8'}" {if DpdPoland::getInputValue(DpdPolandConfiguration::DPDND, $settings->dpdnd)}checked="checked"{/if} value="1" />
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label>
|
||||
{l s='Ref1' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<span class="radio">
|
||||
<input id="additional_ref1_none" type="radio" name="{DpdPolandConfiguration::ADDITIONAL_REF1|escape:'htmlall':'UTF-8'}" {if DpdPoland::getInputValue(DpdPolandConfiguration::ADDITIONAL_REF1, $settings->ref1) == DpdPolandConfiguration::ADDITIONAL_TYPE_NONE}checked="checked"{/if} value="{DpdPolandConfiguration::ADDITIONAL_TYPE_NONE}" />
|
||||
<label class="t" for="additional_ref1_none">
|
||||
{l s='None' mod='dpdpoland'}
|
||||
</label>
|
||||
</span>
|
||||
<span class="radio">
|
||||
<input id="additional_ref1_dynamic" type="radio" name="{DpdPolandConfiguration::ADDITIONAL_REF1|escape:'htmlall':'UTF-8'}" {if DpdPoland::getInputValue(DpdPolandConfiguration::ADDITIONAL_REF1, $settings->ref1) == DpdPolandConfiguration::ADDITIONAL_TYPE_DYNAMIC}checked="checked"{/if} value="{DpdPolandConfiguration::ADDITIONAL_TYPE_DYNAMIC}" />
|
||||
<label class="t" for="additional_ref1_dynamic">
|
||||
{l s='Dynamic' mod='dpdpoland'}
|
||||
</label>
|
||||
<span class="hidable">
|
||||
<select name="{DpdPolandConfiguration::CUSTOMER_DATA_DYNAMIC|escape:'htmlall':'UTF-8'}">
|
||||
<option value="{DpdPolandConfiguration::DYNAMIC_ORDER_ID|escape:'htmlall':'UTF-8'}"{if DpdPoland::getInputValue(DpdPolandConfiguration::CUSTOMER_DATA_DYNAMIC, $settings->customer_data_dynamic) == DpdPolandConfiguration::DYNAMIC_ORDER_ID} selected="selected"{/if}>{l s='Order ID' mod='dpdpoland'}</option>
|
||||
<option value="{DpdPolandConfiguration::DYNAMIC_ORDER_REFERENCE|escape:'htmlall':'UTF-8'}"{if DpdPoland::getInputValue(DpdPolandConfiguration::CUSTOMER_DATA_DYNAMIC, $settings->customer_data_dynamic) == DpdPolandConfiguration::DYNAMIC_ORDER_REFERENCE} selected="selected"{/if}>{l s='Order reference' mod='dpdpoland'}</option>
|
||||
<option value="{DpdPolandConfiguration::DYNAMIC_INVOICE_ID|escape:'htmlall':'UTF-8'}"{if DpdPoland::getInputValue(DpdPolandConfiguration::CUSTOMER_DATA_DYNAMIC, $settings->customer_data_dynamic) == DpdPolandConfiguration::DYNAMIC_INVOICE_ID} selected="selected"{/if}>{l s='Invoice ID' mod='dpdpoland'}</option>
|
||||
<option value="{DpdPolandConfiguration::DYNAMIC_SHIPPING_ADDRESS|escape:'htmlall':'UTF-8'}"{if DpdPoland::getInputValue(DpdPolandConfiguration::CUSTOMER_DATA_DYNAMIC, $settings->customer_data_dynamic) == DpdPolandConfiguration::DYNAMIC_SHIPPING_ADDRESS} selected="selected"{/if}>{l s='Other field in shipping address' mod='dpdpoland'}</option>
|
||||
</select>
|
||||
</span>
|
||||
</span>
|
||||
<span class="radio">
|
||||
<input id="additional_ref1_static" type="radio" name="{DpdPolandConfiguration::ADDITIONAL_REF1|escape:'htmlall':'UTF-8'}" {if DpdPoland::getInputValue(DpdPolandConfiguration::ADDITIONAL_REF1, $settings->ref1) == DpdPolandConfiguration::ADDITIONAL_TYPE_STATIC}checked="checked"{/if} value="{DpdPolandConfiguration::ADDITIONAL_TYPE_STATIC}" />
|
||||
<label class="t" for="additional_ref1_static">
|
||||
{l s='Static' mod='dpdpoland'}
|
||||
</label>
|
||||
<span class="hidable">
|
||||
<input type="text" name="{DpdPolandConfiguration::CUSTOMER_DATA_STATIC|escape:'htmlall':'UTF-8'}" value="{DpdPoland::getInputValue(DpdPolandConfiguration::CUSTOMER_DATA_STATIC, $settings->customer_data_static)|escape:'htmlall':'UTF-8'}" />
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label>
|
||||
{l s='Ref2' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<span class="radio">
|
||||
<input id="additional_ref2_none" type="radio" name="{DpdPolandConfiguration::ADDITIONAL_REF2|escape:'htmlall':'UTF-8'}" {if DpdPoland::getInputValue(DpdPolandConfiguration::ADDITIONAL_REF2, $settings->ref2) == DpdPolandConfiguration::ADDITIONAL_TYPE_NONE}checked="checked"{/if} value="{DpdPolandConfiguration::ADDITIONAL_TYPE_NONE}" />
|
||||
<label class="t" for="additional_ref2_none">
|
||||
{l s='None' mod='dpdpoland'}
|
||||
</label>
|
||||
</span>
|
||||
<span class="radio">
|
||||
<input id="additional_ref2_dynamic" type="radio" name="{DpdPolandConfiguration::ADDITIONAL_REF2|escape:'htmlall':'UTF-8'}" {if DpdPoland::getInputValue(DpdPolandConfiguration::ADDITIONAL_REF2, $settings->ref2) == DpdPolandConfiguration::ADDITIONAL_TYPE_DYNAMIC}checked="checked"{/if} value="{DpdPolandConfiguration::ADDITIONAL_TYPE_DYNAMIC}" />
|
||||
<label class="t" for="additional_ref2_dynamic">
|
||||
{l s='Dynamic' mod='dpdpoland'}
|
||||
</label>
|
||||
<span class="hidable">
|
||||
<select name="{DpdPolandConfiguration::REF2_DYNAMIC|escape:'htmlall':'UTF-8'}">
|
||||
<option value="{DpdPolandConfiguration::DYNAMIC_ORDER_ID|escape:'htmlall':'UTF-8'}"{if DpdPoland::getInputValue(DpdPolandConfiguration::REF2_DYNAMIC, $settings->ref2_dynamic) == DpdPolandConfiguration::DYNAMIC_ORDER_ID} selected="selected"{/if}>{l s='Order ID' mod='dpdpoland'}</option>
|
||||
<option value="{DpdPolandConfiguration::DYNAMIC_ORDER_REFERENCE|escape:'htmlall':'UTF-8'}"{if DpdPoland::getInputValue(DpdPolandConfiguration::REF2_DYNAMIC, $settings->ref2_dynamic) == DpdPolandConfiguration::DYNAMIC_ORDER_REFERENCE} selected="selected"{/if}>{l s='Order reference' mod='dpdpoland'}</option>
|
||||
<option value="{DpdPolandConfiguration::DYNAMIC_INVOICE_ID|escape:'htmlall':'UTF-8'}"{if DpdPoland::getInputValue(DpdPolandConfiguration::REF2_DYNAMIC, $settings->ref2_dynamic) == DpdPolandConfiguration::DYNAMIC_INVOICE_ID} selected="selected"{/if}>{l s='Invoice ID' mod='dpdpoland'}</option>
|
||||
<option value="{DpdPolandConfiguration::DYNAMIC_SHIPPING_ADDRESS|escape:'htmlall':'UTF-8'}"{if DpdPoland::getInputValue(DpdPolandConfiguration::REF2_DYNAMIC, $settings->ref2_dynamic) == DpdPolandConfiguration::DYNAMIC_SHIPPING_ADDRESS} selected="selected"{/if}>{l s='Other field in shipping address' mod='dpdpoland'}</option>
|
||||
</select>
|
||||
</span>
|
||||
</span>
|
||||
<span class="radio">
|
||||
<input id="additional_ref2_static" type="radio" name="{DpdPolandConfiguration::ADDITIONAL_REF2|escape:'htmlall':'UTF-8'}" {if DpdPoland::getInputValue(DpdPolandConfiguration::ADDITIONAL_REF2, $settings->ref2) == DpdPolandConfiguration::ADDITIONAL_TYPE_STATIC}checked="checked"{/if} value="{DpdPolandConfiguration::ADDITIONAL_TYPE_STATIC}" />
|
||||
<label class="t" for="additional_ref2_static">
|
||||
{l s='Static' mod='dpdpoland'}
|
||||
</label>
|
||||
<span class="hidable">
|
||||
<input type="text" name="{DpdPolandConfiguration::REF2_STATIC|escape:'htmlall':'UTF-8'}" value="{DpdPoland::getInputValue(DpdPolandConfiguration::REF2_STATIC, $settings->ref2_static)|escape:'htmlall':'UTF-8'}" />
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label>
|
||||
{l s='CustomerData1' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<span class="radio">
|
||||
<input id="additional_customer_data_1_none" type="radio" name="{DpdPolandConfiguration::ADDITIONAL_CUSTOMER_DATA_1|escape:'htmlall':'UTF-8'}" {if DpdPoland::getInputValue(DpdPolandConfiguration::ADDITIONAL_CUSTOMER_DATA_1, $settings->customer_data_1) == DpdPolandConfiguration::ADDITIONAL_TYPE_NONE}checked="checked"{/if} value="{DpdPolandConfiguration::ADDITIONAL_TYPE_NONE}" />
|
||||
<label class="t" for="additional_customer_data_1_none">
|
||||
{l s='None' mod='dpdpoland'}
|
||||
</label>
|
||||
</span>
|
||||
<span class="radio">
|
||||
<input id="additional_customer_data_1_dynamic" type="radio" name="{DpdPolandConfiguration::ADDITIONAL_CUSTOMER_DATA_1|escape:'htmlall':'UTF-8'}" {if DpdPoland::getInputValue(DpdPolandConfiguration::ADDITIONAL_CUSTOMER_DATA_1, $settings->customer_data_1) == DpdPolandConfiguration::ADDITIONAL_TYPE_DYNAMIC}checked="checked"{/if} value="{DpdPolandConfiguration::ADDITIONAL_TYPE_DYNAMIC}" />
|
||||
<label class="t" for="additional_customer_data_1_dynamic">
|
||||
{l s='Dynamic' mod='dpdpoland'}
|
||||
</label>
|
||||
<span class="hidable">
|
||||
<select name="{DpdPolandConfiguration::CUSTOMER_DATA_DYNAMIC|escape:'htmlall':'UTF-8'}">
|
||||
<option value="{DpdPolandConfiguration::DYNAMIC_ORDER_ID|escape:'htmlall':'UTF-8'}"{if DpdPoland::getInputValue(DpdPolandConfiguration::CUSTOMER_DATA_DYNAMIC, $settings->customer_data_dynamic) == DpdPolandConfiguration::DYNAMIC_ORDER_ID} selected="selected"{/if}>{l s='Order ID' mod='dpdpoland'}</option>
|
||||
<option value="{DpdPolandConfiguration::DYNAMIC_ORDER_REFERENCE|escape:'htmlall':'UTF-8'}"{if DpdPoland::getInputValue(DpdPolandConfiguration::CUSTOMER_DATA_DYNAMIC, $settings->customer_data_dynamic) == DpdPolandConfiguration::DYNAMIC_ORDER_REFERENCE} selected="selected"{/if}>{l s='Order reference' mod='dpdpoland'}</option>
|
||||
<option value="{DpdPolandConfiguration::DYNAMIC_INVOICE_ID|escape:'htmlall':'UTF-8'}"{if DpdPoland::getInputValue(DpdPolandConfiguration::CUSTOMER_DATA_DYNAMIC, $settings->customer_data_dynamic) == DpdPolandConfiguration::DYNAMIC_INVOICE_ID} selected="selected"{/if}>{l s='Invoice ID' mod='dpdpoland'}</option>
|
||||
<option value="{DpdPolandConfiguration::DYNAMIC_SHIPPING_ADDRESS|escape:'htmlall':'UTF-8'}"{if DpdPoland::getInputValue(DpdPolandConfiguration::CUSTOMER_DATA_DYNAMIC, $settings->customer_data_dynamic) == DpdPolandConfiguration::DYNAMIC_SHIPPING_ADDRESS} selected="selected"{/if}>{l s='Other field in shipping address' mod='dpdpoland'}</option>
|
||||
</select>
|
||||
</span>
|
||||
</span>
|
||||
<span class="radio">
|
||||
<input id="additional_customer_data_1_static" type="radio" name="{DpdPolandConfiguration::ADDITIONAL_CUSTOMER_DATA_1|escape:'htmlall':'UTF-8'}" {if DpdPoland::getInputValue(DpdPolandConfiguration::ADDITIONAL_CUSTOMER_DATA_1, $settings->customer_data_1) == DpdPolandConfiguration::ADDITIONAL_TYPE_STATIC}checked="checked"{/if} value="{DpdPolandConfiguration::ADDITIONAL_TYPE_STATIC}" />
|
||||
<label class="t" for="additional_customer_data_1_static">
|
||||
{l s='Static' mod='dpdpoland'}
|
||||
</label>
|
||||
<span class="hidable">
|
||||
<input type="text" name="{DpdPolandConfiguration::CUSTOMER_DATA_STATIC|escape:'htmlall':'UTF-8'}" value="{DpdPoland::getInputValue(DpdPolandConfiguration::CUSTOMER_DATA_STATIC, $settings->customer_data_static)|escape:'htmlall':'UTF-8'}" />
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="margin-form">
|
||||
<input type="submit" class="button" name="{DpdPolandConfigurationController::SETTINGS_SAVE_ACTION|escape:'htmlall':'UTF-8'}" value="{l s='Save' mod='dpdpoland'}" />
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
790
modules/dpdpoland/views/templates/admin/configuration_16.tpl
Normal file
790
modules/dpdpoland/views/templates/admin/configuration_16.tpl
Normal file
@@ -0,0 +1,790 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
|
||||
<script>
|
||||
var dpdpoland_16 = true;
|
||||
</script>
|
||||
|
||||
<form id="configuration_form" class="form-horizontal" action="{$saveAction|escape:'htmlall':'UTF-8'}&menu=configuration"
|
||||
method="post" enctype="multipart/form-data">
|
||||
<div id="credentials" class="panel">
|
||||
<div class="panel-heading">
|
||||
<i class="icon-cogs"></i>
|
||||
{l s='DPD credentials' mod='dpdpoland'}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3 required" for="login_input">
|
||||
{l s='Login:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<input id="login_input" type="text" name="{DpdPolandConfiguration::LOGIN|escape:'htmlall':'UTF-8'}"
|
||||
value="{DpdPoland::getInputValue(DpdPolandConfiguration::LOGIN, $settings->login)|escape:'htmlall':'UTF-8'}"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3 required" for="password">
|
||||
{l s='Password:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<input id="password" type="password" name="{DpdPolandConfiguration::PASSWORD|escape:'htmlall':'UTF-8'}"
|
||||
value="{DpdPoland::getInputValue(DpdPolandConfiguration::PASSWORD, $settings->password)|escape:'htmlall':'UTF-8'}"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3 required">
|
||||
{l s='Master FID:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" name="{DpdPolandConfiguration::CUSTOMER_FID|escape:'htmlall':'UTF-8'}"
|
||||
value="{DpdPoland::getInputValue(DpdPolandConfiguration::CUSTOMER_FID, $settings->customer_fid)|escape:'htmlall':'UTF-8'}"/>
|
||||
</div>
|
||||
</div>
|
||||
<hr/>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="bootstrap">
|
||||
<div id="error_message" class="alert alert-danger hidden-element"></div>
|
||||
<div id="success_message" class="alert alert-success hidden-element"></div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-3">
|
||||
|
||||
</div>
|
||||
<div class="col-lg-9">
|
||||
<div class="col-lg-5">
|
||||
<label class="control-label col-lg-5" for="client_number">
|
||||
{l s='DPD client number:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-7">
|
||||
<input id="client_number" type="text" name="" value=""/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-5">
|
||||
<label class="control-label col-lg-5" for="client_name">
|
||||
{l s='Client name:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-7">
|
||||
<input id="client_name" type="text" name="" value=""/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-2">
|
||||
<a id="addClientNumber" class="btn btn-link confirm_leave">
|
||||
<i class="icon-plus-sign"></i> {l s='Add' mod='dpdpoland'}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<label class="control-label col-lg-3 required" for="password">
|
||||
{l s='Default client number:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<div id="client_numbers_table_container">
|
||||
{include file=$smarty.const._DPDPOLAND_TPL_DIR_|cat:'admin/payer_numbers_table.tpl'}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-footer">
|
||||
<button class="btn btn-default pull-right"
|
||||
name="{DpdPolandConfigurationController::SETTINGS_SAVE_ACTION|escape:'htmlall':'UTF-8'}"
|
||||
type="submit">
|
||||
<i class="process-icon-save"></i>
|
||||
{l s='Save' mod='dpdpoland'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="customer_data" class="panel">
|
||||
<div class="panel-heading">
|
||||
<i class="icon-cogs"></i>
|
||||
{l s='Client parameters' mod='dpdpoland'}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">
|
||||
{l s='Customer company name:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" name="{DpdPolandConfiguration::CUSTOMER_COMPANY|escape:'htmlall':'UTF-8'}"
|
||||
value="{DpdPoland::getInputValue(DpdPolandConfiguration::CUSTOMER_COMPANY, $settings->customer_company)|escape:'htmlall':'UTF-8'}"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">
|
||||
{l s='Customer name and surname:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" name="{DpdPolandConfiguration::CUSTOMER_NAME|escape:'htmlall':'UTF-8'}"
|
||||
value="{DpdPoland::getInputValue(DpdPolandConfiguration::CUSTOMER_NAME, $settings->customer_name)|escape:'htmlall':'UTF-8'}"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">
|
||||
{l s='Customer tel. No.:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" name="{DpdPolandConfiguration::CUSTOMER_PHONE|escape:'htmlall':'UTF-8'}"
|
||||
value="{DpdPoland::getInputValue(DpdPolandConfiguration::CUSTOMER_PHONE, $settings->customer_phone)|escape:'htmlall':'UTF-8'}"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-footer">
|
||||
<button class="btn btn-default pull-right"
|
||||
name="{DpdPolandConfigurationController::SETTINGS_SAVE_ACTION|escape:'htmlall':'UTF-8'}"
|
||||
type="submit">
|
||||
<i class="process-icon-save"></i>
|
||||
{l s='Save' mod='dpdpoland'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="shipping" class="panel">
|
||||
<div class="panel-heading">
|
||||
<i class="icon-cogs"></i>
|
||||
{l s='Active shiping services' mod='dpdpoland'}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3" for="dpd_standard">
|
||||
{l s='DPD domestic shipment - Standard:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<input id="dpd_standard" type="checkbox"
|
||||
name="{DpdPolandConfiguration::CARRIER_STANDARD|escape:'htmlall':'UTF-8'}"
|
||||
{if DpdPoland::getInputValue(DpdPolandConfiguration::CARRIER_STANDARD, $settings->carrier_standard)}checked="checked"{/if}
|
||||
value="1"/>
|
||||
</div>
|
||||
<div class="col-lg-9 col-lg-offset-3">
|
||||
<p class="help-block">
|
||||
{l s='DPD domestic shipment - Standard:' mod='dpdpoland'}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3" for="dpd_standard_cod">
|
||||
{l s='DPD domestic shipment - Standard with COD:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<input id="dpd_standard_cod"
|
||||
{if !DPDpoland::CODMethodIsAvailable()}onclick="alert(no_COD_methods_message); return false;"{/if}
|
||||
type="checkbox"
|
||||
name="{DpdPolandConfiguration::CARRIER_STANDARD_COD}" {if DpdPoland::getInputValue(DpdPolandConfiguration::CARRIER_STANDARD_COD, $settings->carrier_standard_cod) && DPDpoland::CODMethodIsAvailable()}checked="checked"{/if}
|
||||
value="1"/>
|
||||
</div>
|
||||
<div class="col-lg-9 col-lg-offset-3">
|
||||
<p class="help-block">
|
||||
{l s='DPD domestic shipment - Standard with COD' mod='dpdpoland'}
|
||||
</p>
|
||||
</div>
|
||||
{if DPDpoland::CODMethodIsAvailable()}
|
||||
<div class="payment_modules_container col-lg-offset-3">
|
||||
<table>
|
||||
{section name=iii loop=$payment_modules}
|
||||
<tr>
|
||||
<td align="right">
|
||||
<label>{$payment_modules[iii].displayName|escape:'htmlall':'UTF-8'}</label>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox"
|
||||
name="{DpdPolandConfiguration::COD_MODULE_PREFIX|escape:'htmlall':'UTF-8'}{$payment_modules[iii].name|escape:'htmlall':'UTF-8'}"
|
||||
value="1"
|
||||
{if Configuration::get(DpdPolandConfiguration::COD_MODULE_PREFIX|escape:'htmlall':'UTF-8'|cat:$payment_modules[iii].name|escape:'htmlall':'UTF-8')}checked="checked"{/if} />
|
||||
</td>
|
||||
</tr>
|
||||
{/section}
|
||||
</table>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<p class="alert alert-info">
|
||||
{l s='RULE: DPD Polska Sp. z o.o. allows payment on the delivery ONLY by cash. In your payment modules you have available this types of payment, please mark those payment methods that support this rule.' mod='dpdpoland'}
|
||||
</p>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3" for="dpd_classic">
|
||||
{l s='DPD international shipment (DPD Classic):' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<input id="dpd_classic" type="checkbox"
|
||||
name="{DpdPolandConfiguration::CARRIER_CLASSIC|escape:'htmlall':'UTF-8'}"
|
||||
{if DpdPoland::getInputValue(DpdPolandConfiguration::CARRIER_CLASSIC, $settings->carrier_classic)}checked="checked"{/if}
|
||||
value="1"/>
|
||||
</div>
|
||||
<div class="col-lg-9 col-lg-offset-3">
|
||||
<p class="help-block">
|
||||
{l s='DPD international shipment (DPD Classic)' mod='dpdpoland'}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3" for="dpd_pudo">
|
||||
{l s='DPD Poland Reception Point Pickup:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<input id="dpd_pudo" type="checkbox"
|
||||
name="{DpdPolandConfiguration::CARRIER_PUDO|escape:'htmlall':'UTF-8'}"
|
||||
{if DpdPoland::getInputValue(DpdPolandConfiguration::CARRIER_PUDO, $settings->carrier_pudo)}checked="checked"{/if}
|
||||
value="1"/>
|
||||
</div>
|
||||
<div class="col-lg-9 col-lg-offset-3">
|
||||
<p class="help-block">
|
||||
{l s='DPD Poland Reception Point Pickup' mod='dpdpoland'}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="alert alert-info">
|
||||
{l s='Please note that after module installation carriers are not created.' mod='dpdpoland'}
|
||||
</p>
|
||||
|
||||
<div class="panel-footer">
|
||||
<button class="btn btn-default pull-right"
|
||||
name="{DpdPolandConfigurationController::SETTINGS_SAVE_ACTION|escape:'htmlall':'UTF-8'}"
|
||||
type="submit">
|
||||
<i class="process-icon-save"></i>
|
||||
{l s='Save' mod='dpdpoland'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="active_zones" class="panel">
|
||||
<div class="panel-heading">
|
||||
<i class="icon-cogs"></i>
|
||||
{l s='Active zones' mod='dpdpoland'}
|
||||
</div>
|
||||
|
||||
<div id="zones_table_container" class="form-group">
|
||||
<table class="table" id="zones_table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
<td class="border_bottom text-center">
|
||||
<label>{l s='DPD domestic shipment - Standard' mod='dpdpoland'}</label>
|
||||
</td>
|
||||
<td class="border_bottom text-center">
|
||||
<label>{l s='DPD domestic shipment - Standard with COD' mod='dpdpoland'}</label>
|
||||
</td>
|
||||
<td class="border_bottom text-center">
|
||||
<label>{l s='DPD international shipment (DPD Classic)' mod='dpdpoland'}</label>
|
||||
</td>
|
||||
<td class="border_bottom text-center">
|
||||
<label>{l s='DPD Poland Reception Point Pickup' mod='dpdpoland'}</label>
|
||||
</td>
|
||||
</tr>
|
||||
{section name=ii loop=$zones}
|
||||
<tr class="fees_all">
|
||||
<td class="border_top border_bottom border_bold">
|
||||
{$zones[ii].name|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox"{if in_array($zones[ii].id_zone, $carrier_zones['standard'])} checked="checked"{/if}
|
||||
name="standard_{$zones[ii].id_zone|intval}" class="form-control domestic_zone"
|
||||
value="1"/>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox"{if in_array($zones[ii].id_zone, $carrier_zones['standard_cod'])} checked="checked"{/if}
|
||||
name="standard_cod_{$zones[ii].id_zone|intval}"
|
||||
class="form-control domestic_cod_zone" value="1"/>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox"{if in_array($zones[ii].id_zone, $carrier_zones['classic'])} checked="checked"{/if}
|
||||
name="classic_{$zones[ii].id_zone|intval}" class="form-control classic_zone"
|
||||
value="1">
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox"{if in_array($zones[ii].id_zone, $carrier_zones['pudo'])} checked="checked"{/if}
|
||||
name="pudo_{$zones[ii].id_zone|intval}" class="form-control pudo_zone" value="1">
|
||||
</td>
|
||||
</tr>
|
||||
{/section}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<p class="alert alert-info">
|
||||
{l s='Please define price ranges for each carrier in carrier configuration page or import CSV file with price ranges.' mod='dpdpoland'}
|
||||
</p>
|
||||
|
||||
<div class="panel-footer">
|
||||
<button class="btn btn-default pull-right"
|
||||
name="{DpdPolandConfigurationController::SETTINGS_SAVE_ACTION|escape:'htmlall':'UTF-8'}"
|
||||
type="submit">
|
||||
<i class="process-icon-save"></i>
|
||||
{l s='Save' mod='dpdpoland'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="price_calculation" class="panel">
|
||||
<div class="panel-heading">
|
||||
<i class="icon-cogs"></i>
|
||||
{l s='Price calculation' mod='dpdpoland'}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3" for="price_calculation_csv">
|
||||
{l s='Shipping price calculation method:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<p class="radio">
|
||||
<label for="price_calculation_csv">
|
||||
<input id="price_calculation_csv" type="radio"
|
||||
name="{DpdPolandConfiguration::PRICE_CALCULATION_TYPE|escape:'htmlall':'UTF-8'}"
|
||||
{if DpdPoland::getInputValue(DpdPolandConfiguration::PRICE_CALCULATION_TYPE, $settings->price_calculation_type) == DpdPolandConfiguration::PRICE_CALCULATION_CSV}checked="checked"{/if}
|
||||
value="{DpdPolandConfiguration::PRICE_CALCULATION_CSV}"/>
|
||||
{l s='CSV rules' mod='dpdpoland'}
|
||||
</label>
|
||||
</p>
|
||||
<p class="radio">
|
||||
<label for="price_calculation_prestashop">
|
||||
<input id="price_calculation_prestashop" type="radio"
|
||||
name="{DpdPolandConfiguration::PRICE_CALCULATION_TYPE|escape:'htmlall':'UTF-8'}"
|
||||
{if DpdPoland::getInputValue(DpdPolandConfiguration::PRICE_CALCULATION_TYPE, $settings->price_calculation_type) == DpdPolandConfiguration::PRICE_CALCULATION_PRESTASHOP}checked="checked"{/if}
|
||||
value="{DpdPolandConfiguration::PRICE_CALCULATION_PRESTASHOP}"/>
|
||||
{l s='PrestaShop shipping locations rules' mod='dpdpoland'}
|
||||
</label>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-footer">
|
||||
<button class="btn btn-default pull-right"
|
||||
name="{DpdPolandConfigurationController::SETTINGS_SAVE_ACTION|escape:'htmlall':'UTF-8'}"
|
||||
type="submit">
|
||||
<i class="process-icon-save"></i>
|
||||
{l s='Save' mod='dpdpoland'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="weight_measurement" class="panel">
|
||||
<div class="panel-heading">
|
||||
<i class="icon-cogs"></i>
|
||||
{l s='Weight measurement units conversation' mod='dpdpoland'}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">
|
||||
{l s='System default weight units:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
{Configuration::get('PS_WEIGHT_UNIT')|escape:'htmlall':'UTF-8'}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">
|
||||
{l s='DPD weight units:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
{$smarty.const._DPDPOLAND_DEFAULT_WEIGHT_UNIT_|escape:'htmlall':'UTF-8'}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3" for="weight_conversion_input">
|
||||
{l s='Conversation rate:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-7">
|
||||
<input id="weight_conversion_input" type="text"
|
||||
name="{DpdPolandConfiguration::WEIGHT_CONVERSATION_RATE|escape:'htmlall':'UTF-8'}"
|
||||
value="{DpdPoland::getInputValue(DpdPolandConfiguration::WEIGHT_CONVERSATION_RATE, $settings->weight_conversation_rate)|escape:'htmlall':'UTF-8'}"/>
|
||||
</div>
|
||||
<div class="col-lg-2">
|
||||
1 {Configuration::get('PS_WEIGHT_UNIT')|escape:'htmlall':'UTF-8'} = <span
|
||||
id="dpd_weight_unit">{DpdPoland::getInputValue(DpdPolandConfiguration::WEIGHT_CONVERSATION_RATE, $settings->weight_conversation_rate|escape:'htmlall':'UTF-8')}</span> {$smarty.const._DPDPOLAND_DEFAULT_WEIGHT_UNIT_|escape:'htmlall':'UTF-8'}
|
||||
</div>
|
||||
<div class="col-lg-9 col-lg-offset-3">
|
||||
<p class="help-block">
|
||||
{l s='Conversation rate from system to DPD weight units. If your system uses the same units as DPD please fill 1.' mod='dpdpoland'}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-footer">
|
||||
<button class="btn btn-default pull-right"
|
||||
name="{DpdPolandConfigurationController::SETTINGS_SAVE_ACTION|escape:'htmlall':'UTF-8'}"
|
||||
type="submit">
|
||||
<i class="process-icon-save"></i>
|
||||
{l s='Save' mod='dpdpoland'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="dimension_measurement" class="panel">
|
||||
<div class="panel-heading">
|
||||
<i class="icon-cogs"></i>
|
||||
{l s='Dimension measurement units conversation' mod='dpdpoland'}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">
|
||||
{l s='System default dimension units:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
{Configuration::get('PS_DIMENSION_UNIT')|escape:'htmlall':'UTF-8'}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">
|
||||
{l s='DPD dimension units:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
{$smarty.const._DPDPOLAND_DEFAULT_DIMENSION_UNIT_|escape:'htmlall':'UTF-8'}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3" for="weight_conversion_input">
|
||||
{l s='Conversation rate:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-7">
|
||||
<input id="weight_conversion_input" type="text"
|
||||
name="{DpdPolandConfiguration::DIMENSION_CONVERSATION_RATE|escape:'htmlall':'UTF-8'}"
|
||||
value="{DpdPoland::getInputValue(DpdPolandConfiguration::DIMENSION_CONVERSATION_RATE, $settings->dimension_conversation_rate)|escape:'htmlall':'UTF-8'}"/>
|
||||
</div>
|
||||
<div class="col-lg-2">
|
||||
1 {Configuration::get('PS_DIMENSION_UNIT')|escape:'htmlall':'UTF-8'} = <span
|
||||
id="dpd_weight_unit">{DpdPoland::getInputValue(DpdPolandConfiguration::DIMENSION_CONVERSATION_RATE, $settings->dimension_conversation_rate)|escape:'htmlall':'UTF-8'}</span> {$smarty.const._DPDPOLAND_DEFAULT_DIMENSION_UNIT_|escape:'htmlall':'UTF-8'}
|
||||
</div>
|
||||
<div class="col-lg-9 col-lg-offset-3">
|
||||
<p class="help-block">
|
||||
{l s='Conversation rate from system to DPD dimension units. If your system uses the same units as DPD please fill 1.' mod='dpdpoland'}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-footer">
|
||||
<button class="btn btn-default pull-right"
|
||||
name="{DpdPolandConfigurationController::SETTINGS_SAVE_ACTION|escape:'htmlall':'UTF-8'}"
|
||||
type="submit">
|
||||
<i class="process-icon-save"></i>
|
||||
{l s='Save' mod='dpdpoland'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="ws_url" class="panel">
|
||||
<div class="panel-heading">
|
||||
<i class="icon-cogs"></i>
|
||||
{l s='Web Services URL' mod='dpdpoland'}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3 required">
|
||||
{l s='Web Services URL:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<select id="ws_url_input" name="{DpdPolandConfiguration::WS_URL|escape:'htmlall':'UTF-8'}">
|
||||
<option value="{DpdPolandConfiguration::WSDL_URL_LIVE|escape:'htmlall':'UTF-8'}"{if DpdPoland::getInputValue(DpdPolandConfiguration::WS_URL, $settings->ws_url) == DpdPolandConfiguration::WSDL_URL_LIVE} selected="selected"{/if}>{l s='Access to the production system' mod='dpdpoland'}</option>
|
||||
<option value="{DpdPolandConfiguration::WSDL_URL_DEMO|escape:'htmlall':'UTF-8'}"{if DpdPoland::getInputValue(DpdPolandConfiguration::WS_URL, $settings->ws_url) == DpdPolandConfiguration::WSDL_URL_DEMO} selected="selected"{/if}>{l s='Access to the demonstration system' mod='dpdpoland'}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-footer">
|
||||
<button class="btn btn-default pull-right"
|
||||
name="{DpdPolandConfigurationController::SETTINGS_SAVE_ACTION|escape:'htmlall':'UTF-8'}"
|
||||
type="submit">
|
||||
<i class="process-icon-save"></i>
|
||||
{l s='Save' mod='dpdpoland'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="additional_settings" class="panel">
|
||||
<div class="panel-heading">
|
||||
<i class="icon-cogs"></i>
|
||||
{l s='Additional settings' mod='dpdpoland'}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3" for="declared_value">
|
||||
{l s='Declared value:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<input id="declared_value" type="checkbox"
|
||||
name="{DpdPolandConfiguration::DECLARED_VALUE|escape:'htmlall':'UTF-8'}"
|
||||
{if DpdPoland::getInputValue(DpdPolandConfiguration::DECLARED_VALUE, $settings->declared_value)}checked="checked"{/if}
|
||||
value="1"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3" for="cud">
|
||||
{l s='Return parcel:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<input id="cud" type="checkbox" name="{DpdPolandConfiguration::CUD|escape:'htmlall':'UTF-8'}"
|
||||
{if DpdPoland::getInputValue(DpdPolandConfiguration::CUD, $settings->cud)}checked="checked"{/if}
|
||||
value="1"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3" for="rod">
|
||||
{l s='Return documents:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<input id="rod" type="checkbox" name="{DpdPolandConfiguration::ROD|escape:'htmlall':'UTF-8'}"
|
||||
{if DpdPoland::getInputValue(DpdPolandConfiguration::ROD, $settings->rod)}checked="checked"{/if}
|
||||
value="1"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3" for="dpde">
|
||||
{l s='DPD Express:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<input id="dpde" type="checkbox" name="{DpdPolandConfiguration::DPDE|escape:'htmlall':'UTF-8'}"
|
||||
{if DpdPoland::getInputValue(DpdPolandConfiguration::DPDE, $settings->dpde)}checked="checked"{/if}
|
||||
value="1"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3" for="dpdnd">
|
||||
{l s='DPD Next day:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<input id="dpdnd" type="checkbox" name="{DpdPolandConfiguration::DPDND|escape:'htmlall':'UTF-8'}"
|
||||
{if DpdPoland::getInputValue(DpdPolandConfiguration::DPDND, $settings->dpdnd)}checked="checked"{/if}
|
||||
value="1"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3" for="duty">
|
||||
{l s='Duty:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<input id="duty" type="checkbox" name="{DpdPolandConfiguration::DUTY|escape:'htmlall':'UTF-8'}"
|
||||
{if DpdPoland::getInputValue(DpdPolandConfiguration::DUTY, $settings->duty)}checked="checked"{/if}
|
||||
value="1"/>
|
||||
<p>{l s='Generating shipment with DUTY service requires DECLARED VALUE service' mod='dpdpoland'}</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3" for="additional_ref1_none">
|
||||
{l s='Ref1' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<p class="radio">
|
||||
<label for="additional_ref1_none">
|
||||
<input id="additional_ref1_none" type="radio"
|
||||
name="{DpdPolandConfiguration::ADDITIONAL_REF1|escape:'htmlall':'UTF-8'}"
|
||||
{if DpdPoland::getInputValue(DpdPolandConfiguration::ADDITIONAL_REF1, $settings->ref1) == DpdPolandConfiguration::ADDITIONAL_TYPE_NONE}checked="checked"{/if}
|
||||
value="{DpdPolandConfiguration::ADDITIONAL_TYPE_NONE}"/>
|
||||
{l s='None' mod='dpdpoland'}
|
||||
</label>
|
||||
</p>
|
||||
<p class="radio">
|
||||
<label for="additional_ref1_dynamic">
|
||||
<input id="additional_ref1_dynamic" type="radio"
|
||||
name="{DpdPolandConfiguration::ADDITIONAL_REF1|escape:'htmlall':'UTF-8'}"
|
||||
{if DpdPoland::getInputValue(DpdPolandConfiguration::ADDITIONAL_REF1, $settings->ref1) == DpdPolandConfiguration::ADDITIONAL_TYPE_DYNAMIC}checked="checked"{/if}
|
||||
value="{DpdPolandConfiguration::ADDITIONAL_TYPE_DYNAMIC}"/>
|
||||
<span class="col-lg-3">
|
||||
{l s='Dynamic' mod='dpdpoland'}
|
||||
</span>
|
||||
<span class="col-lg-9 hidable">
|
||||
<select name="{DpdPolandConfiguration::REF1_DYNAMIC|escape:'htmlall':'UTF-8'}">
|
||||
<option value="{DpdPolandConfiguration::DYNAMIC_ORDER_ID|escape:'htmlall':'UTF-8'}"{if DpdPoland::getInputValue(DpdPolandConfiguration::REF1_DYNAMIC, $settings->ref1_dynamic) == DpdPolandConfiguration::DYNAMIC_ORDER_ID} selected="selected"{/if}>{l s='Order ID' mod='dpdpoland'}</option>
|
||||
<option value="{DpdPolandConfiguration::DYNAMIC_ORDER_REFERENCE|escape:'htmlall':'UTF-8'}"{if DpdPoland::getInputValue(DpdPolandConfiguration::REF1_DYNAMIC, $settings->ref1_dynamic) == DpdPolandConfiguration::DYNAMIC_ORDER_REFERENCE} selected="selected"{/if}>{l s='Order reference' mod='dpdpoland'}</option>
|
||||
<option value="{DpdPolandConfiguration::DYNAMIC_INVOICE_ID|escape:'htmlall':'UTF-8'}"{if DpdPoland::getInputValue(DpdPolandConfiguration::REF1_DYNAMIC, $settings->ref1_dynamic) == DpdPolandConfiguration::DYNAMIC_INVOICE_ID} selected="selected"{/if}>{l s='Invoice ID' mod='dpdpoland'}</option>
|
||||
<option value="{DpdPolandConfiguration::DYNAMIC_SHIPPING_ADDRESS|escape:'htmlall':'UTF-8'}"{if DpdPoland::getInputValue(DpdPolandConfiguration::REF1_DYNAMIC, $settings->ref1_dynamic) == DpdPolandConfiguration::DYNAMIC_SHIPPING_ADDRESS} selected="selected"{/if}>{l s='Other field in shipping address' mod='dpdpoland'}</option>
|
||||
</select>
|
||||
</span>
|
||||
</label>
|
||||
</p>
|
||||
<p class="radio">
|
||||
<label for="additional_ref1_static">
|
||||
<input id="additional_ref1_static" type="radio"
|
||||
name="{DpdPolandConfiguration::ADDITIONAL_REF1|escape:'htmlall':'UTF-8'}"
|
||||
{if DpdPoland::getInputValue(DpdPolandConfiguration::ADDITIONAL_REF1, $settings->ref1) == DpdPolandConfiguration::ADDITIONAL_TYPE_STATIC}checked="checked"{/if}
|
||||
value="{DpdPolandConfiguration::ADDITIONAL_TYPE_STATIC}"/>
|
||||
<span class="col-lg-3">
|
||||
{l s='Static' mod='dpdpoland'}
|
||||
</span>
|
||||
<span class="col-lg-9 hidable">
|
||||
<input type="text" name="{DpdPolandConfiguration::REF1_STATIC|escape:'htmlall':'UTF-8'}"
|
||||
value="{DpdPoland::getInputValue(DpdPolandConfiguration::REF1_STATIC, $settings->ref1_static)|escape:'htmlall':'UTF-8'}"/>
|
||||
</span>
|
||||
</label>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3" for="additional_ref2_none">
|
||||
{l s='Ref2' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<p class="radio">
|
||||
<label for="additional_ref2_none">
|
||||
<input id="additional_ref2_none" type="radio"
|
||||
name="{DpdPolandConfiguration::ADDITIONAL_REF2|escape:'htmlall':'UTF-8'}"
|
||||
{if DpdPoland::getInputValue(DpdPolandConfiguration::ADDITIONAL_REF2, $settings->ref2) == DpdPolandConfiguration::ADDITIONAL_TYPE_NONE}checked="checked"{/if}
|
||||
value="{DpdPolandConfiguration::ADDITIONAL_TYPE_NONE}"/>
|
||||
{l s='None' mod='dpdpoland'}
|
||||
</label>
|
||||
</p>
|
||||
<p class="radio">
|
||||
<label for="additional_ref2_dynamic">
|
||||
<input id="additional_ref2_dynamic" type="radio"
|
||||
name="{DpdPolandConfiguration::ADDITIONAL_REF2|escape:'htmlall':'UTF-8'}"
|
||||
{if DpdPoland::getInputValue(DpdPolandConfiguration::ADDITIONAL_REF2, $settings->ref2) == DpdPolandConfiguration::ADDITIONAL_TYPE_DYNAMIC}checked="checked"{/if}
|
||||
value="{DpdPolandConfiguration::ADDITIONAL_TYPE_DYNAMIC}"/>
|
||||
<span class="col-lg-3">
|
||||
{l s='Dynamic' mod='dpdpoland'}
|
||||
</span>
|
||||
<span class="col-lg-9 hidable">
|
||||
<select name="{DpdPolandConfiguration::REF2_DYNAMIC|escape:'htmlall':'UTF-8'}">
|
||||
<option value="{DpdPolandConfiguration::DYNAMIC_ORDER_ID|escape:'htmlall':'UTF-8'}"{if DpdPoland::getInputValue(DpdPolandConfiguration::REF2_DYNAMIC, $settings->ref2_dynamic) == DpdPolandConfiguration::DYNAMIC_ORDER_ID} selected="selected"{/if}>{l s='Order ID' mod='dpdpoland'}</option>
|
||||
<option value="{DpdPolandConfiguration::DYNAMIC_ORDER_REFERENCE|escape:'htmlall':'UTF-8'}"{if DpdPoland::getInputValue(DpdPolandConfiguration::REF2_DYNAMIC, $settings->ref2_dynamic) == DpdPolandConfiguration::DYNAMIC_ORDER_REFERENCE} selected="selected"{/if}>{l s='Order reference' mod='dpdpoland'}</option>
|
||||
<option value="{DpdPolandConfiguration::DYNAMIC_INVOICE_ID|escape:'htmlall':'UTF-8'}"{if DpdPoland::getInputValue(DpdPolandConfiguration::REF2_DYNAMIC, $settings->ref2_dynamic) == DpdPolandConfiguration::DYNAMIC_INVOICE_ID} selected="selected"{/if}>{l s='Invoice ID' mod='dpdpoland'}</option>
|
||||
<option value="{DpdPolandConfiguration::DYNAMIC_SHIPPING_ADDRESS|escape:'htmlall':'UTF-8'}"{if DpdPoland::getInputValue(DpdPolandConfiguration::REF2_DYNAMIC, $settings->ref2_dynamic) == DpdPolandConfiguration::DYNAMIC_SHIPPING_ADDRESS} selected="selected"{/if}>{l s='Other field in shipping address' mod='dpdpoland'}</option>
|
||||
</select>
|
||||
</span>
|
||||
</label>
|
||||
</p>
|
||||
<p class="radio">
|
||||
<label for="additional_ref2_static">
|
||||
<input id="additional_ref2_static" type="radio"
|
||||
name="{DpdPolandConfiguration::ADDITIONAL_REF2|escape:'htmlall':'UTF-8'}"
|
||||
{if DpdPoland::getInputValue(DpdPolandConfiguration::ADDITIONAL_REF2, $settings->ref2) == DpdPolandConfiguration::ADDITIONAL_TYPE_STATIC}checked="checked"{/if}
|
||||
value="{DpdPolandConfiguration::ADDITIONAL_TYPE_STATIC}"/>
|
||||
<span class="col-lg-3">
|
||||
{l s='Static' mod='dpdpoland'}
|
||||
</span>
|
||||
<span class="col-lg-9 hidable">
|
||||
<input type="text" name="{DpdPolandConfiguration::REF2_STATIC|escape:'htmlall':'UTF-8'}"
|
||||
value="{DpdPoland::getInputValue(DpdPolandConfiguration::REF2_STATIC, $settings->ref2_static)|escape:'htmlall':'UTF-8'}"/>
|
||||
</span>
|
||||
</label>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3" for="additional_customer_data_1_none">
|
||||
{l s='CustomerData1' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<p class="radio">
|
||||
<label for="additional_customer_data_1_none">
|
||||
<input id="additional_customer_data_1_none" type="radio"
|
||||
name="{DpdPolandConfiguration::ADDITIONAL_CUSTOMER_DATA_1|escape:'htmlall':'UTF-8'}"
|
||||
{if DpdPoland::getInputValue(DpdPolandConfiguration::ADDITIONAL_CUSTOMER_DATA_1, $settings->customer_data_1) == DpdPolandConfiguration::ADDITIONAL_TYPE_NONE}checked="checked"{/if}
|
||||
value="{DpdPolandConfiguration::ADDITIONAL_TYPE_NONE}"/>
|
||||
{l s='None' mod='dpdpoland'}
|
||||
</label>
|
||||
</p>
|
||||
<p class="radio">
|
||||
<label for="additional_customer_data_1_dynamic">
|
||||
<input id="additional_customer_data_1_dynamic" type="radio"
|
||||
name="{DpdPolandConfiguration::ADDITIONAL_CUSTOMER_DATA_1|escape:'htmlall':'UTF-8'}"
|
||||
{if DpdPoland::getInputValue(DpdPolandConfiguration::ADDITIONAL_CUSTOMER_DATA_1, $settings->customer_data_1) == DpdPolandConfiguration::ADDITIONAL_TYPE_DYNAMIC}checked="checked"{/if}
|
||||
value="{DpdPolandConfiguration::ADDITIONAL_TYPE_DYNAMIC}"/>
|
||||
<span class="col-lg-3">
|
||||
{l s='Dynamic' mod='dpdpoland'}
|
||||
</span>
|
||||
<span class="col-lg-9 hidable">
|
||||
<select name="{DpdPolandConfiguration::CUSTOMER_DATA_DYNAMIC|escape:'htmlall':'UTF-8'}">
|
||||
<option value="{DpdPolandConfiguration::DYNAMIC_ORDER_ID|escape:'htmlall':'UTF-8'}"{if DpdPoland::getInputValue(DpdPolandConfiguration::CUSTOMER_DATA_DYNAMIC, $settings->customer_data_dynamic) == DpdPolandConfiguration::DYNAMIC_ORDER_ID} selected="selected"{/if}>{l s='Order ID' mod='dpdpoland'}</option>
|
||||
<option value="{DpdPolandConfiguration::DYNAMIC_ORDER_REFERENCE|escape:'htmlall':'UTF-8'}"{if DpdPoland::getInputValue(DpdPolandConfiguration::CUSTOMER_DATA_DYNAMIC, $settings->customer_data_dynamic) == DpdPolandConfiguration::DYNAMIC_ORDER_REFERENCE} selected="selected"{/if}>{l s='Order reference' mod='dpdpoland'}</option>
|
||||
<option value="{DpdPolandConfiguration::DYNAMIC_INVOICE_ID|escape:'htmlall':'UTF-8'}"{if DpdPoland::getInputValue(DpdPolandConfiguration::CUSTOMER_DATA_DYNAMIC, $settings->customer_data_dynamic) == DpdPolandConfiguration::DYNAMIC_INVOICE_ID} selected="selected"{/if}>{l s='Invoice ID' mod='dpdpoland'}</option>
|
||||
<option value="{DpdPolandConfiguration::DYNAMIC_SHIPPING_ADDRESS|escape:'htmlall':'UTF-8'}"{if DpdPoland::getInputValue(DpdPolandConfiguration::CUSTOMER_DATA_DYNAMIC, $settings->customer_data_dynamic) == DpdPolandConfiguration::DYNAMIC_SHIPPING_ADDRESS} selected="selected"{/if}>{l s='Other field in shipping address' mod='dpdpoland'}</option>
|
||||
</select>
|
||||
</span>
|
||||
</label>
|
||||
</p>
|
||||
<p class="radio">
|
||||
<label for="additional_customer_data_1_static">
|
||||
<input id="additional_customer_data_1_static" type="radio"
|
||||
name="{DpdPolandConfiguration::ADDITIONAL_CUSTOMER_DATA_1|escape:'htmlall':'UTF-8'}"
|
||||
{if DpdPoland::getInputValue(DpdPolandConfiguration::ADDITIONAL_CUSTOMER_DATA_1, $settings->customer_data_1) == DpdPolandConfiguration::ADDITIONAL_TYPE_STATIC}checked="checked"{/if}
|
||||
value="{DpdPolandConfiguration::ADDITIONAL_TYPE_STATIC}"/>
|
||||
<span class="col-lg-3">
|
||||
{l s='Static' mod='dpdpoland'}
|
||||
</span>
|
||||
<span class="col-lg-9 hidable">
|
||||
<input type="text"
|
||||
name="{DpdPolandConfiguration::CUSTOMER_DATA_STATIC|escape:'htmlall':'UTF-8'}"
|
||||
value="{DpdPoland::getInputValue(DpdPolandConfiguration::CUSTOMER_DATA_STATIC, $settings->customer_data_static)|escape:'htmlall':'UTF-8'}"/>
|
||||
</span>
|
||||
</label>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-footer">
|
||||
<button class="btn btn-default pull-right"
|
||||
name="{DpdPolandConfigurationController::SETTINGS_SAVE_ACTION|escape:'htmlall':'UTF-8'}"
|
||||
type="submit">
|
||||
<i class="process-icon-save"></i>
|
||||
{l s='Save' mod='dpdpoland'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="add_config" class="panel">
|
||||
<div class="panel-heading">
|
||||
<i class="icon-cogs"></i>
|
||||
{l s='Config' mod='dpdpoland'}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">
|
||||
{l s='Log mode:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<select id="log_config_input" name="{DpdPolandConfiguration::LOG_MODE|escape:'htmlall':'UTF-8'}">
|
||||
<option value="" {if DpdPoland::getInputValue(DpdPolandConfiguration::LOG_MODE, $settings->log_mode) == ""} selected="selected"{/if}>{l s='No logs' mod='dpdpoland'}</option>
|
||||
<option value="{DpdPolandLog::LOG_ERROR|escape:'htmlall':'UTF-8'}" {if DpdPoland::getInputValue(DpdPolandConfiguration::LOG_MODE, $settings->log_mode) == DpdPolandLog::LOG_ERROR|escape:'htmlall':'UTF-8'} selected="selected"{/if}>{l s='Error - only errors' mod='dpdpoland'}</option>
|
||||
<option value="{DpdPolandLog::LOG_DEBUG|escape:'htmlall':'UTF-8'}" {if DpdPoland::getInputValue(DpdPolandConfiguration::LOG_MODE, $settings->log_mode) == DpdPolandLog::LOG_DEBUG|escape:'htmlall':'UTF-8'} selected="selected"{/if}>{l s='Debug - errors and debug' mod='dpdpoland'}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">
|
||||
{l s='Disable mail:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<select id="config_input"
|
||||
name="{DpdPolandConfiguration::DISABLE_SEND_SHIPPING_MAIL|escape:'htmlall':'UTF-8'}">
|
||||
<option value="" {if DpdPoland::getInputValue(DpdPolandConfiguration::DISABLE_SEND_SHIPPING_MAIL, $settings->disable_send_shipping_mail) == ''} selected="selected"{/if}>{l s='Disable' mod='dpdpoland'}</option>
|
||||
<option value="1" {if DpdPoland::getInputValue(DpdPolandConfiguration::DISABLE_SEND_SHIPPING_MAIL, $settings->disable_send_shipping_mail) == 1} selected="selected"{/if}>{l s='Enable' mod='dpdpoland'}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel-footer">
|
||||
<button class="btn btn-default pull-right"
|
||||
name="{DpdPolandConfigurationController::SETTINGS_SAVE_ACTION|escape:'htmlall':'UTF-8'}"
|
||||
type="submit">
|
||||
<i class="process-icon-save"></i>
|
||||
{l s='Save' mod='dpdpoland'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
36
modules/dpdpoland/views/templates/admin/content_header.tpl
Normal file
36
modules/dpdpoland/views/templates/admin/content_header.tpl
Normal file
@@ -0,0 +1,36 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
|
||||
<fieldset id="content_header" class="panel">
|
||||
<a target="_blank" href="{$smarty.const._DPDPOLAND_CONTENT_HEADER_URL_|escape:'htmlall':'UTF-8'}" title="{$module_display_name|escape:'htmlall':'UTF-8'}">
|
||||
<img src="{$smarty.const._DPDPOLAND_IMG_URI_|escape:'htmlall':'UTF-8'}content_header_logo.png" alt="{$module_display_name|escape:'htmlall':'UTF-8'}" />
|
||||
</a>
|
||||
<p>{l s='As leading provider of standard and express shipping services in Poland, DPD does not only operate a highly efficient transport network with over 500 depots in more than 40 countries, DPD also develops individual solutions so that you have quick access to all the world\'s major business regions.' mod='dpdpoland'}</p>
|
||||
<p>{l s='DPD offers the right solutions for every possible shipping requirement.' mod='dpdpoland'}</p>
|
||||
<div class="clear clearfix"></div>
|
||||
<ul>
|
||||
<li><b>{l s='From the domestic standard parcel,' mod='dpdpoland'}</b> {l s='all the way to time-definite delivery the following day, DPD will bring your shipment quickly and reliably to your customer.' mod='dpdpoland'}</li>
|
||||
<li><b>{l s='International delivery?' mod='dpdpoland'}</b> {l s='Trust the DPD international service. You can reach many countries around the world quickly and reliably!' mod='dpdpoland'}</li>
|
||||
<li><b>{l s='Maybe C.O.D.?' mod='dpdpoland'}</b> {l s='In our domestic service you can use our cash-on-delivery option. We will only deliver your parcel in return for immediate payment. We collect the payment before handing over the parcel, and send it securely to you on the receiver’s behalf.' mod='dpdpoland'}</li>
|
||||
</ul>
|
||||
<p><a href="{$smarty.const._DPDPOLAND_PRICES_ZIP_URL_|escape:'htmlall':'UTF-8'}">{l s='Check out our prices!' mod='dpdpoland'}</a></p>
|
||||
<p>{l s='To send your parcels via DPD, firstly please' mod='dpdpoland'} <a href="mailto: prestashop@dpd.com.pl">{l s='contact' mod='dpdpoland'}</a> {l s='and then configure your module.' mod='dpdpoland'}</p>
|
||||
</fieldset>
|
||||
{if !$ps_16}
|
||||
<br />
|
||||
{/if}
|
||||
225
modules/dpdpoland/views/templates/admin/country_list.tpl
Normal file
225
modules/dpdpoland/views/templates/admin/country_list.tpl
Normal file
@@ -0,0 +1,225 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$("table.Countries .datepicker").datepicker({
|
||||
prevText: '',
|
||||
nextText: '',
|
||||
dateFormat: 'yy-mm-dd'
|
||||
});
|
||||
|
||||
$('table#country_list .filter').keypress(function(event){
|
||||
formSubmit(event, 'submitFilterButtonCountries');
|
||||
})
|
||||
});
|
||||
</script>
|
||||
|
||||
<form class="form" action="{$full_url|escape:'htmlall':'UTF-8'}" method="post">
|
||||
<input type="hidden" value="0" name="submitFilterCountries" id="submitFilterCountries">
|
||||
<table id="country_list" name="list_table" class="table_grid">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="bottom">
|
||||
<span class="float-left">
|
||||
{if $page > 1}
|
||||
<input type="image" src="../img/admin/list-prev2.gif" onclick="getE('submitFilterCountries').value=1"/>
|
||||
<input type="image" src="../img/admin/list-prev.gif" onclick="getE('submitFilterCountries').value=;{$page|escape:'htmlall':'UTF-8' - 1}"/>
|
||||
{/if}
|
||||
{l s='Page' mod='dpdpoland'} <b>{$page|escape:'htmlall':'UTF-8'}</b> / {$total_pages|escape:'htmlall':'UTF-8'}
|
||||
{if $page < $total_pages}
|
||||
<input type="image" src="../img/admin/list-next.gif" onclick="getE('submitFilterCountries').value=;{$page|escape:'htmlall':'UTF-8' + 1}"/>
|
||||
<input type="image" src="../img/admin/list-next2.gif" onclick="getE('submitFilterCountries').value=;{$total_pages|escape:'htmlall':'UTF-8'}"/>
|
||||
{/if}
|
||||
| {l s='Display' mod='dpdpoland'}
|
||||
<select name="pagination" onchange="submit()">
|
||||
{foreach from=$pagination item=value}
|
||||
<option value="{$value|intval|escape:'htmlall':'UTF-8'}"{if $selected_pagination == $value} selected="selected" {elseif $selected_pagination == NULL && $value == $pagination[1]} selected="selected2"{/if}>{$value|intval|escape:'htmlall':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
/ {$list_total|escape:'htmlall':'UTF-8'} {l s='result(s)' mod='dpdpoland'}
|
||||
</span>
|
||||
<span class="float-right">
|
||||
<input type="submit" class="button" value="{l s='Filter' mod='dpdpoland'}" name="submitFilterButtonCountries" id="submitFilterButtonCountries">
|
||||
<input type="submit" class="button" value="{l s='Reset' mod='dpdpoland'}" name="submitResetCountries">
|
||||
</span>
|
||||
<span class="clear"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="0" class="table Countries">
|
||||
<colgroup>
|
||||
<col width="10px">
|
||||
<col width="80px">
|
||||
<col>
|
||||
<col width="80px">
|
||||
<col width="70px">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr class="nodrag nodrop titles-row">
|
||||
<th class="center">
|
||||
<input type="checkbox" onclick="checkDelBoxes(this.form, 'CountriesBox[]', this.checked)" class="noborder" name="checkme">
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='ID' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&CountriesOrderBy=id_country&CountriesOrderWay=desc">
|
||||
{if $order_by == 'id_country' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&CountriesOrderBy=id_country&CountriesOrderWay=asc">
|
||||
{if $order_by == 'id_country' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Country' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&CountriesOrderBy=name&CountriesOrderWay=desc">
|
||||
{if $order_by == 'name' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&CountriesOrderBy=name&CountriesOrderWay=asc">
|
||||
{if $order_by == 'name' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='ISO code' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&CountriesOrderBy=iso_code&CountriesOrderWay=desc">
|
||||
{if $order_by == 'iso_code' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&CountriesOrderBy=iso_code&CountriesOrderWay=asc">
|
||||
{if $order_by == 'iso_code' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Enabled' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
</th>
|
||||
</tr>
|
||||
<tr class="nodrag nodrop filter row_hover filter-row">
|
||||
<td class="center">
|
||||
--
|
||||
</td>
|
||||
<td class="center">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('CountriesFilter_id_country') && Context::getContext()->cookie->CountriesFilter_id_country}{Context::getContext()->cookie->CountriesFilter_id_country}{/if}" name="CountriesFilter_id_country" class="filter">
|
||||
</td>
|
||||
<td class="center">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('CountriesFilter_name') && Context::getContext()->cookie->CountriesFilter_name}{Context::getContext()->cookie->CountriesFilter_name}{/if}" name="CountriesFilter_name" class="filter">
|
||||
</td>
|
||||
<td class="right">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('CountriesFilter_iso_code') && Context::getContext()->cookie->CountriesFilter_iso_code}{Context::getContext()->cookie->CountriesFilter_iso_code}{/if}" name="CountriesFilter_iso_code" class="filter">
|
||||
</td>
|
||||
<td class="center">
|
||||
<select name="CountriesFilter_enabled" onchange="$('input#submitFilterButtonCountries').click();">
|
||||
<option value="">--</option>
|
||||
<option {if Context::getContext()->cookie->__isset('CountriesFilter_enabled') && Context::getContext()->cookie->CountriesFilter_enabled == '1'}selected="selected" {/if}value="1">{l s='Yes' mod='dpdpoland'}</option>
|
||||
<option {if Context::getContext()->cookie->__isset('CountriesFilter_enabled') && Context::getContext()->cookie->CountriesFilter_enabled == '0'}selected="selected" {/if}value="0">{l s='No' mod='dpdpoland'}</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{if isset($table_data) && $table_data}
|
||||
{section name=ii loop=$table_data}
|
||||
<tr class="row_hover" id="tr_{$smarty.section.ii.index|escape:'htmlall':'UTF-8' + 1}_{$table_data[ii].id_country|escape:'htmlall':'UTF-8'}_0">
|
||||
<td class="center">
|
||||
<input type="checkbox" class="noborder" value="{$table_data[ii].id_country|escape:'htmlall':'UTF-8'}" name="CountriesBox[]"{if isset($smarty.post.CountriesBox) && in_array($table_data[ii].id_country, $smarty.post.CountriesBox)} checked="checked"{/if}>
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].id_country}
|
||||
{$table_data[ii].id_country|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
{if $table_data[ii].name}
|
||||
{$table_data[ii].name|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].iso_code}
|
||||
{$table_data[ii].iso_code|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].enabled == '' || $table_data[ii].enabled == 1}
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&disable_country=1&id_country={$table_data[ii].id_country|escape:'htmlall':'UTF-8'}&submitFilterCountries={$page|escape:'htmlall':'UTF-8'}&pagination={$selected_pagination|escape:'htmlall':'UTF-8'}">
|
||||
<img alt="{l s='Enabled' mod='dpdpoland'}" src="../img/admin/enabled.gif" />
|
||||
</a>
|
||||
{else}
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&enable_country=1&id_country={$table_data[ii].id_country|escape:'htmlall':'UTF-8'}&submitFilterCountries={$page|escape:'htmlall':'UTF-8'}&pagination={$selected_pagination|escape:'htmlall':'UTF-8'}">
|
||||
<img alt="{l s='Disabled' mod='dpdpoland'}" src="../img/admin/disabled.gif" />
|
||||
</a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/section}
|
||||
{else}
|
||||
<tr>
|
||||
<td colspan="5" class="center">
|
||||
{l s='No countries' mod='dpdpoland'}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</tbody>
|
||||
</table>
|
||||
<p>
|
||||
<input class="button" type="submit" onclick="return confirm('{l s='Are you sure?' mod='dpdpoland'}');" value="{l s='Disable selection' mod='dpdpoland'}" name="disableCountries" />
|
||||
<input class="button" type="submit" onclick="return confirm('{l s='Are you sure?' mod='dpdpoland'}');" value="{l s='Enable selection' mod='dpdpoland'}" name="enableCountries" />
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
294
modules/dpdpoland/views/templates/admin/country_list_16.tpl
Normal file
294
modules/dpdpoland/views/templates/admin/country_list_16.tpl
Normal file
@@ -0,0 +1,294 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$('table.country_list .filter').keypress(function(e){
|
||||
var key = (e.keyCode ? e.keyCode : e.which);
|
||||
if (key == 13)
|
||||
{
|
||||
e.preventDefault();
|
||||
formSubmit(event, 'submitFilterButtonCountries');
|
||||
}
|
||||
});
|
||||
$('#submitFilterButtonCountries').click(function() {
|
||||
$('#submitFilterCountries').val(1);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<form class="form-horizontal clearfix" action="{$full_url|escape:'htmlall':'UTF-8'}" method="post">
|
||||
<input type="hidden" value="0" name="submitFilterButtonCountries" id="submitFilterCountries" />
|
||||
<div class="panel col-lg-12">
|
||||
<div class="panel-heading">
|
||||
{l s='Shipment countries' mod='dpdpoland'}
|
||||
<span class="badge">{$list_total|intval}</span>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive clearfix">
|
||||
<table id="country_list" class="table country_list">
|
||||
<thead>
|
||||
<tr class="nodrag nodrop">
|
||||
<th class="center fixed-width-xs">
|
||||
|
||||
</th>
|
||||
<th class="fixed-width-xs center">
|
||||
<span class="title_box{if $order_by == 'id_country'} active{/if}">
|
||||
{l s='ID' mod='dpdpoland'}
|
||||
<a{if $order_by == 'id_country' && $order_way == 'desc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&CountriesOrderBy=id_country&CountriesOrderWay=desc">
|
||||
<i class="icon-caret-down"></i>
|
||||
</a>
|
||||
<a{if $order_by == 'id_country' && $order_way == 'asc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&CountriesOrderBy=id_country&CountriesOrderWay=asc">
|
||||
<i class="icon-caret-up"></i>
|
||||
</a>
|
||||
</span>
|
||||
</th>
|
||||
<th class="left">
|
||||
<span class="title_box{if $order_by == 'name'} active{/if}">
|
||||
{l s='Country' mod='dpdpoland'}
|
||||
<a{if $order_by == 'name' && $order_way == 'desc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&CountriesOrderBy=name&CountriesOrderWay=desc">
|
||||
<i class="icon-caret-down"></i>
|
||||
</a>
|
||||
<a{if $order_by == 'name' && $order_way == 'asc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&CountriesOrderBy=name&CountriesOrderWay=asc">
|
||||
<i class="icon-caret-up"></i>
|
||||
</a>
|
||||
</span>
|
||||
</th>
|
||||
<th class="fixed-width-xs center">
|
||||
<span class="title_box{if $order_by == 'iso_code'} active{/if}">
|
||||
{l s='ISO code' mod='dpdpoland'}
|
||||
<a{if $order_by == 'iso_code' && $order_way == 'desc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&CountriesOrderBy=iso_code&CountriesOrderWay=desc">
|
||||
<i class="icon-caret-down"></i>
|
||||
</a>
|
||||
<a{if $order_by == 'iso_code' && $order_way == 'asc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&CountriesOrderBy=iso_code&CountriesOrderWay=asc">
|
||||
<i class="icon-caret-up"></i>
|
||||
</a>
|
||||
</span>
|
||||
</th>
|
||||
<th class="fixed-width-sm text-center">
|
||||
<span class="title_box">
|
||||
{l s='Enabled' mod='dpdpoland'}
|
||||
</span>
|
||||
</th>
|
||||
<th class="fixed-width-sm">
|
||||
|
||||
</th>
|
||||
</tr>
|
||||
<tr class="nodrag nodrop filter row_hover">
|
||||
<th class="text-center">
|
||||
--
|
||||
</th>
|
||||
<th class="center">
|
||||
<input class="filter" type="text" value="{if Context::getContext()->cookie->__isset('CountriesFilter_id_country') && Context::getContext()->cookie->CountriesFilter_id_country}{Context::getContext()->cookie->CountriesFilter_id_country}{/if}" name="CountriesFilter_id_country" />
|
||||
</th>
|
||||
<th>
|
||||
<input class="filter" type="text" value="{if Context::getContext()->cookie->__isset('CountriesFilter_name') && Context::getContext()->cookie->CountriesFilter_name}{Context::getContext()->cookie->CountriesFilter_name}{/if}" name="CountriesFilter_name">
|
||||
</th>
|
||||
<th>
|
||||
<input class="filter" type="text" value="{if Context::getContext()->cookie->__isset('CountriesFilter_iso_code') && Context::getContext()->cookie->CountriesFilter_iso_code}{Context::getContext()->cookie->CountriesFilter_iso_code}{/if}" name="CountriesFilter_iso_code">
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<select class="filter" name="CountriesFilter_enabled">
|
||||
<option value="">-</option>
|
||||
<option {if Context::getContext()->cookie->__isset('CountriesFilter_enabled') && Context::getContext()->cookie->CountriesFilter_enabled == '1'}selected="selected" {/if}value="1">{l s='Yes' mod='dpdpoland'}</option>
|
||||
<option {if Context::getContext()->cookie->__isset('CountriesFilter_enabled') && Context::getContext()->cookie->CountriesFilter_enabled == '0'}selected="selected" {/if}value="0">{l s='No' mod='dpdpoland'}</option>
|
||||
</select>
|
||||
</th>
|
||||
<th class="actions">
|
||||
<span class="pull-right">
|
||||
<button id="submitFilterButtonCountries" class="btn btn-default" data-list-id="Countries" name="submitFilter" type="submit">
|
||||
<i class="icon-search"></i>
|
||||
{l s='Search' mod='dpdpoland'}
|
||||
</button>
|
||||
{if isset($filters_has_value) && $filters_has_value}
|
||||
<button type="submit" name="submitResetCountries" class="btn btn-warning">
|
||||
<i class="icon-eraser"></i> {l s='Reset' mod='dpdpoland'}
|
||||
</button>
|
||||
{/if}
|
||||
</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{if isset($table_data) && $table_data}
|
||||
{section name=ii loop=$table_data}
|
||||
<tr id="tr__{$table_data[ii].id_country|escape:'htmlall':'UTF-8'}_0" class="odd">
|
||||
<td class="text-center">
|
||||
<input class="noborder" type="checkbox" value="{$table_data[ii].id_country|escape:'htmlall':'UTF-8'}" name="CountriesBox[]"{if isset($smarty.post.CountriesBox) && in_array($table_data[ii].id_country, $smarty.post.CountriesBox)} checked="checked"{/if} />
|
||||
</td>
|
||||
<td class="pointer fixed-width-xs center">
|
||||
{if $table_data[ii].id_country}
|
||||
{$table_data[ii].id_country|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="pointer fixed-width-xs">
|
||||
{if $table_data[ii].name}
|
||||
{$table_data[ii].name|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="pointer fixed-width-xs center">
|
||||
{if $table_data[ii].iso_code}
|
||||
{$table_data[ii].iso_code|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="pointer fixed-width-sm text-center">
|
||||
{if $table_data[ii].enabled == '' || $table_data[ii].enabled == 1}
|
||||
<a class="list-action-enable action-enabled" title="{l s='Enabled' mod='dpdpoland'}" href="{$full_url|escape:'htmlall':'UTF-8'}&disable_country=1&id_country={$table_data[ii].id_country|escape:'htmlall':'UTF-8'}&submitFilterCountries={$page|escape:'htmlall':'UTF-8'}&pagination={$selected_pagination|escape:'htmlall':'UTF-8'}">
|
||||
<i class="icon-check"></i>
|
||||
</a>
|
||||
{else}
|
||||
<a class="list-action-enable action-disabled" title="{l s='Disabled' mod='dpdpoland'}" href="{$full_url|escape:'htmlall':'UTF-8'}&enable_country=1&id_country={$table_data[ii].id_country|escape:'htmlall':'UTF-8'}&submitFilterCountries={$page|escape:'htmlall':'UTF-8'}&pagination={$selected_pagination|escape:'htmlall':'UTF-8'}">
|
||||
<i class="icon-remove"></i>
|
||||
</a>
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
{/section}
|
||||
{else}
|
||||
<tr>
|
||||
<td class="list-empty" colspan="6">
|
||||
<div class="list-empty-msg">
|
||||
<i class="icon-warning-sign list-empty-icon"></i>
|
||||
{l s='No countries' mod='dpdpoland'}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
<div class="btn-group bulk-actions">
|
||||
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown" type="button">
|
||||
{l s='Bulk actions' mod='dpdpoland'}
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a onclick="checkDelBoxes($(this).closest('form').get(0), 'CountriesBox[]', true);return false;" href="#">
|
||||
<i class="icon-check-sign"></i>
|
||||
{l s='Select all' mod='dpdpoland'}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a onclick="checkDelBoxes($(this).closest('form').get(0), 'CountriesBox[]', false);return false;" href="#">
|
||||
<i class="icon-check-empty"></i>
|
||||
{l s='Unselect all' mod='dpdpoland'}
|
||||
</a>
|
||||
</li>
|
||||
<li class="divider"></li>
|
||||
<li>
|
||||
<a onclick="sendBulkAction($(this).closest('form').get(0), 'enableCountries');" href="#">
|
||||
<i class="icon-power-off text-success"></i>
|
||||
{l s='Enable selection' mod='dpdpoland'}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a onclick="sendBulkAction($(this).closest('form').get(0), 'disableCountries');" href="#">
|
||||
<i class="icon-power-off text-danger"></i>
|
||||
{l s='Disable selection' mod='dpdpoland'}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{if $list_total > 10}
|
||||
<div class="col-lg-4">
|
||||
<span class="pagination">
|
||||
{l s='Display' mod='dpdpoland'}:
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||||
{$selected_pagination|intval}
|
||||
<i class="icon-caret-down"></i>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
{foreach $pagination AS $value}
|
||||
<li>
|
||||
<a href="javascript:void(0);" class="pagination-items-page" data-items="{$value|intval}">{$value}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
/ {$list_total|intval} {l s='result(s)' mod='dpdpoland'}
|
||||
<input type="hidden" id="pagination-items-page" name="pagination" value="{$selected_pagination|intval}" />
|
||||
</span>
|
||||
<script type="text/javascript">
|
||||
$('.pagination-items-page').on('click',function(e){
|
||||
e.preventDefault();
|
||||
$('#pagination-items-page').val($(this).data("items")).closest("form").submit();
|
||||
});
|
||||
</script>
|
||||
<ul class="pagination pull-right">
|
||||
<li {if $page <= 1}class="disabled"{/if}>
|
||||
<a href="javascript:void(0);" class="pagination-link" data-page="1">
|
||||
<i class="icon-double-angle-left"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li {if $page <= 1}class="disabled"{/if}>
|
||||
<a href="javascript:void(0);" class="pagination-link" data-page="{$page|intval - 1}">
|
||||
<i class="icon-angle-left"></i>
|
||||
</a>
|
||||
</li>
|
||||
{assign p 0}
|
||||
{while $p++ < $total_pages}
|
||||
{if $p < $page-2}
|
||||
<li class="disabled">
|
||||
<a href="javascript:void(0);">…</a>
|
||||
</li>
|
||||
{assign p $page-3}
|
||||
{else if $p > $page+2}
|
||||
<li class="disabled">
|
||||
<a href="javascript:void(0);">…</a>
|
||||
</li>
|
||||
{assign p $total_pages}
|
||||
{else}
|
||||
<li {if $p == $page}class="active"{/if}>
|
||||
<a href="javascript:void(0);" class="pagination-link" data-page="{$p|escape:'htmlall':'UTF-8'}">{$p|escape:'htmlall':'UTF-8'}</a>
|
||||
</li>
|
||||
{/if}
|
||||
{/while}
|
||||
<li {if $page > $total_pages}class="disabled"{/if}>
|
||||
<a href="javascript:void(0);" class="pagination-link" data-page="{$page|intval + 1}">
|
||||
<i class="icon-angle-right"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li {if $page > $total_pages}class="disabled"{/if}>
|
||||
<a href="javascript:void(0);" class="pagination-link" data-page="{$total_pages|intval}">
|
||||
<i class="icon-double-angle-right"></i>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<script type="text/javascript">
|
||||
$('.pagination-link').on('click',function(e){
|
||||
e.preventDefault();
|
||||
$('#submitFilterCountries').val($(this).data("page")).closest("form").submit();
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
208
modules/dpdpoland/views/templates/admin/csv.tpl
Normal file
208
modules/dpdpoland/views/templates/admin/csv.tpl
Normal file
@@ -0,0 +1,208 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
<form id="configuration_csv_form" class="defaultForm" action="{$saveAction|escape:'htmlall':'UTF-8'}" method="post" enctype="multipart/form-data">
|
||||
<fieldset id="sender_payer">
|
||||
<legend>
|
||||
<img src="{$smarty.const._DPDPOLAND_IMG_URI_|escape:'htmlall':'UTF-8'}settings.png" alt="{l s='Settings |' mod='dpdpoland'}" />
|
||||
{l s='Price rules import' mod='dpdpoland'}
|
||||
</legend>
|
||||
|
||||
<label>
|
||||
{l s='Upload CSV:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input type="file" name="{DpdPolandCSV::CSV_FILE|escape:'htmlall':'UTF-8'}" value="" />
|
||||
<input type="submit" class="button" name="{DpdPolandCSVController::SETTINGS_SAVE_CSV_ACTION|escape:'htmlall':'UTF-8'}" value="{l s='Upload' mod='dpdpoland'}" />
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label>
|
||||
{l s='Download CSV:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input type="button" class="button" name="{DpdPolandCSVController::SETTINGS_DOWNLOAD_CSV_ACTION|escape:'htmlall':'UTF-8'}" value="{l s='Download' mod='dpdpoland'}" />
|
||||
</div>
|
||||
|
||||
<div class="separation"></div>
|
||||
|
||||
<h3>
|
||||
{l s='Preview imported prices:' mod='dpdpoland'}
|
||||
</h3>
|
||||
|
||||
<div class="csv_information_block">
|
||||
<p class="preference_description">
|
||||
{l s='Available' mod='dpdpoland'} <b>{l s='carriers' mod='dpdpoland'}</b> {l s='(shipping methods) and their ID\'s:' mod='dpdpoland'}
|
||||
</p>
|
||||
<p class="preference_description">
|
||||
{l s='* DPD domestic shipment - Standard:' mod='dpdpoland'} <b>{$smarty.const._DPDPOLAND_STANDARD_ID_|escape:'htmlall':'UTF-8'}</b>
|
||||
</p>
|
||||
<p class="preference_description">
|
||||
{l s='* DPD domestic shipment - Standard with COD:' mod='dpdpoland'} <b>{$smarty.const._DPDPOLAND_STANDARD_COD_ID_|escape:'htmlall':'UTF-8'}</b>
|
||||
</p>
|
||||
<p class="preference_description">
|
||||
{l s='* DPD international shipment (DPD Classic):' mod='dpdpoland'} <b>{$smarty.const._DPDPOLAND_CLASSIC_ID_|escape:'htmlall':'UTF-8'}</b>
|
||||
</p>
|
||||
<p class="preference_description">
|
||||
{l s='* DPD Poland Reception Point Pickup:' mod='dpdpoland'} <b>{$smarty.const._DPDPOLAND_PUDO_ID_|escape:'htmlall':'UTF-8'}</b>
|
||||
</p>
|
||||
<br />
|
||||
<p class="preference_description">
|
||||
<b>{l s='Country' mod='dpdpoland'}</b> {l s='- this column should contain the full name of the country (the letters are not case sensitive, or as an abbreviation, e.g. PL, DE, GB)' mod='dpdpoland'}
|
||||
</p>
|
||||
<p class="preference_description">
|
||||
<b>{l s='Cart price from' mod='dpdpoland'}</b> {l s='- this column contains the cart total price without shipping which is the lower limit of the price range for the specified price.' mod='dpdpoland'}
|
||||
</p>
|
||||
<p class="preference_description">
|
||||
<b>{l s='Cart price to' mod='dpdpoland'}</b> {l s='- this column contains the cart total price without shipping which is the upper limit of the price range for the specified price.' mod='dpdpoland'}
|
||||
</p>
|
||||
<p class="preference_description">
|
||||
<b>{l s='Parcel weight from' mod='dpdpoland'}</b> {l s='- this column contains the parcel weight which is the lower limit of the weight range for the specified price.' mod='dpdpoland'}
|
||||
</p>
|
||||
<p class="preference_description">
|
||||
<b>{l s='Parcel weight to' mod='dpdpoland'}</b> {l s='- this column contains the parcel weight which is the upper limit of the weight range for the specified price.' mod='dpdpoland'}
|
||||
</p>
|
||||
<p class="preference_description">
|
||||
<b>{l s='Parcel price' mod='dpdpoland'}</b> {l s='- in this column the user enters the price in PLN which will be charged to the client for dispatch of one parcel with the weight within the specified weight range.' mod='dpdpoland'}
|
||||
</p>
|
||||
<br />
|
||||
<table name="list_table" class="table_grid">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="bottom">
|
||||
<span class="float-left">
|
||||
{if $page > 1}
|
||||
<a href="{$saveAction|escape:'htmlall':'UTF-8'}¤t_page=1&pagination={$selected_pagination|escape:'htmlall':'UTF-8'}">
|
||||
<img class="pagination_image" src="../img/admin/list-prev2.gif" alt="{l s='First page' mod='dpdpoland'}" />
|
||||
</a>
|
||||
<a href="{$saveAction|escape:'htmlall':'UTF-8'}¤t_page={$page|escape:'htmlall':'UTF-8' - 1}&pagination={$selected_pagination|escape:'htmlall':'UTF-8'}">
|
||||
<img class="pagination_image" src="../img/admin/list-prev.gif" alt="{l s='Previous page' mod='dpdpoland'}" />
|
||||
</a>
|
||||
{/if}
|
||||
{l s='Page' mod='dpdpoland'} <b>{$page|escape:'htmlall':'UTF-8'}</b> / {$total_pages|escape:'htmlall':'UTF-8'}
|
||||
{if $page < $total_pages}
|
||||
<a href="{$saveAction|escape:'htmlall':'UTF-8'}¤t_page={$page|escape:'htmlall':'UTF-8' + 1}&pagination={$selected_pagination|escape:'htmlall':'UTF-8'}">
|
||||
<img class="pagination_image" src="../img/admin/list-next.gif" alt="{l s='Next page' mod='dpdpoland'}" />
|
||||
</a>
|
||||
<a href="{$saveAction|escape:'htmlall':'UTF-8'}¤t_page={$total_pages|escape:'htmlall':'UTF-8'}&pagination={$selected_pagination|escape:'htmlall':'UTF-8'}">
|
||||
<img class="pagination_image" src="../img/admin/list-next2.gif" alt="{l s='Last page' mod='dpdpoland'}" />
|
||||
</a>
|
||||
{/if}
|
||||
| {l s='Display' mod='dpdpoland'}
|
||||
<select name="pagination" onchange="submit()">
|
||||
{foreach $pagination AS $value}
|
||||
<option value="{$value|intval|escape:'htmlall':'UTF-8'}"{if $selected_pagination == $value} selected="selected" {elseif $selected_pagination == NULL && $value == $pagination[1]} selected="selected2"{/if}>{$value|intval|escape:'htmlall':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
/ {$list_total|escape:'htmlall':'UTF-8'} {l s='result(s)' mod='dpdpoland'}
|
||||
</span>
|
||||
<span class="clear"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td clas="no-border">
|
||||
<table cellspacing="0" cellpadding="0" class="table document">
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
<col>
|
||||
<col>
|
||||
<col>
|
||||
<col>
|
||||
<col>
|
||||
<col>
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr class="nodrag nodrop titles-row">
|
||||
<th class="center">
|
||||
<span class="title_box">{l s='Country' mod='dpdpoland'}</span>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">{l s='Cart price from (PLN)' mod='dpdpoland'}</span>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">{l s='Cart price to (PLN)' mod='dpdpoland'}</span>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">{l s='Parcel weight from (kg)' mod='dpdpoland'}</span>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">{l s='Parcel weight to (kg)' mod='dpdpoland'}</span>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">{l s='Parcel price (PLN)' mod='dpdpoland'}</span>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">{l s='Carrier' mod='dpdpoland'}</span>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">{l s='COD cost (PLN)' mod='dpdpoland'}</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{if isset($csv_data) && !empty($csv_data)}
|
||||
{section name=ii loop=$csv_data}
|
||||
<tr>
|
||||
<td class="center">
|
||||
{$csv_data[ii].iso_country|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td class="center">
|
||||
{$csv_data[ii].price_from|floatval}
|
||||
</td>
|
||||
<td class="center">
|
||||
{$csv_data[ii].price_to|floatval}
|
||||
</td>
|
||||
<td class="center">
|
||||
{$csv_data[ii].weight_from|floatval}
|
||||
</td>
|
||||
<td class="center">
|
||||
{$csv_data[ii].weight_to|floatval}
|
||||
</td>
|
||||
<td class="center">
|
||||
{$csv_data[ii].parcel_price|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td class="center">
|
||||
{$csv_data[ii].id_carrier|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td class="center">
|
||||
{$csv_data[ii].cod_price|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
</tr>
|
||||
{/section}
|
||||
{else}
|
||||
<tr>
|
||||
<td colspan="8" class="center">
|
||||
{l s='No prices' mod='dpdpoland'}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="submit" {if !isset($csv_data) || isset($csv_data) && empty($csv_data)}disabled="disabled"{/if} class="button" name="{DpdPolandCSVController::SETTINGS_DELETE_CSV_ACTION}" value="{l s='Delete all prices' mod='dpdpoland'}" />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
222
modules/dpdpoland/views/templates/admin/csv_16.tpl
Normal file
222
modules/dpdpoland/views/templates/admin/csv_16.tpl
Normal file
@@ -0,0 +1,222 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
<form id="configuration_csv_form" class="form-horizontal" action="{$saveAction|escape:'htmlall':'UTF-8'}" method="post" enctype="multipart/form-data">
|
||||
<div id="sender_payer" class="panel">
|
||||
<div class="panel-heading">
|
||||
<i class="icon-cogs"></i>
|
||||
{l s='Price rules import' mod='dpdpoland'}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3 required" for="login_input">
|
||||
{l s='Upload CSV:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<div class="col-lg-3">
|
||||
<input class="btn btn-default" type="file" name="{DpdPolandCSV::CSV_FILE|escape:'htmlall':'UTF-8'}" value="" />
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
<input type="submit" class="btn btn-default" name="{DpdPolandCSVController::SETTINGS_SAVE_CSV_ACTION|escape:'htmlall':'UTF-8'}" value="{l s='Upload' mod='dpdpoland'}" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3 required" for="login_input">
|
||||
{l s='Download CSV:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<input type="button" class="btn btn-default" name="{DpdPolandCSVController::SETTINGS_DOWNLOAD_CSV_ACTION|escape:'htmlall':'UTF-8'}" value="{l s='Download' mod='dpdpoland'}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3>
|
||||
<i class="icon-cogs"></i>
|
||||
{l s='Preview imported prices' mod='dpdpoland'}
|
||||
</h3>
|
||||
|
||||
<div class="col-lg-12">
|
||||
<p class="preference_description">
|
||||
{l s='Available' mod='dpdpoland'} <b>{l s='carriers' mod='dpdpoland'}</b> {l s='(shipping methods) and their ID\'s:' mod='dpdpoland'}
|
||||
</p>
|
||||
<p class="preference_description">
|
||||
{l s='* DPD domestic shipment - Standard:' mod='dpdpoland'} <b>{$smarty.const._DPDPOLAND_STANDARD_ID_|escape:'htmlall':'UTF-8'}</b>
|
||||
</p>
|
||||
<p class="preference_description">
|
||||
{l s='* DPD domestic shipment - Standard with COD:' mod='dpdpoland'} <b>{$smarty.const._DPDPOLAND_STANDARD_COD_ID_|escape:'htmlall':'UTF-8'}</b>
|
||||
</p>
|
||||
<p class="preference_description">
|
||||
{l s='* DPD international shipment (DPD Classic):' mod='dpdpoland'} <b>{$smarty.const._DPDPOLAND_CLASSIC_ID_|escape:'htmlall':'UTF-8'}</b>
|
||||
</p>
|
||||
<p class="preference_description">
|
||||
{l s='* DPD Poland Reception Point Pickup:' mod='dpdpoland'} <b>{$smarty.const._DPDPOLAND_PUDO_ID_|escape:'htmlall':'UTF-8'}</b>
|
||||
</p>
|
||||
<br />
|
||||
<p class="preference_description">
|
||||
<b>{l s='Country' mod='dpdpoland'}</b> {l s='- this column should contain the full name of the country (the letters are not case sensitive, or as an abbreviation, e.g. PL, DE, GB)' mod='dpdpoland'}
|
||||
</p>
|
||||
<p class="preference_description">
|
||||
<b>{l s='Cart price from' mod='dpdpoland'}</b> {l s='- this column contains the cart total price without shipping which is the lower limit of the price range for the specified price.' mod='dpdpoland'}
|
||||
</p>
|
||||
<p class="preference_description">
|
||||
<b>{l s='Cart price to' mod='dpdpoland'}</b> {l s='- this column contains the cart total price without shipping which is the upper limit of the price range for the specified price.' mod='dpdpoland'}
|
||||
</p>
|
||||
<p class="preference_description">
|
||||
<b>{l s='Parcel weight from' mod='dpdpoland'}</b> {l s='- this column contains the parcel weight which is the lower limit of the weight range for the specified price.' mod='dpdpoland'}
|
||||
</p>
|
||||
<p class="preference_description">
|
||||
<b>{l s='Parcel weight to' mod='dpdpoland'}</b> {l s='- this column contains the parcel weight which is the upper limit of the weight range for the specified price.' mod='dpdpoland'}
|
||||
</p>
|
||||
<p class="preference_description">
|
||||
<b>{l s='Parcel price' mod='dpdpoland'}</b> {l s='- in this column the user enters the price in PLN which will be charged to the client for dispatch of one parcel with the weight within the specified weight range.' mod='dpdpoland'}
|
||||
</p>
|
||||
<hr />
|
||||
<div id="csv_list_table_container">
|
||||
<table name="list_table" class="table_grid col-lg-12">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="bottom">
|
||||
<span class="float-left">
|
||||
{if $page > 1}
|
||||
<a href="{$saveAction|escape:'htmlall':'UTF-8'}¤t_page=1&pagination={$selected_pagination|escape:'htmlall':'UTF-8'}">
|
||||
<img class="pagination_image" src="../img/admin/list-prev2.gif" alt="{l s='First page' mod='dpdpoland'}" />
|
||||
</a>
|
||||
<a href="{$saveAction|escape:'htmlall':'UTF-8'}¤t_page={$page|escape:'htmlall':'UTF-8' - 1}&pagination={$selected_pagination|escape:'htmlall':'UTF-8'}">
|
||||
<img class="pagination_image" src="../img/admin/list-prev.gif" alt="{l s='Previous page' mod='dpdpoland'}" />
|
||||
</a>
|
||||
{/if}
|
||||
{l s='Page' mod='dpdpoland'} <b>{$page|escape:'htmlall':'UTF-8'}</b> / {$total_pages|escape:'htmlall':'UTF-8'}
|
||||
{if $page < $total_pages}
|
||||
<a href="{$saveAction|escape:'htmlall':'UTF-8'}¤t_page={$page|escape:'htmlall':'UTF-8' + 1}&pagination={$selected_pagination|escape:'htmlall':'UTF-8'}">
|
||||
<img class="pagination_image" src="../img/admin/list-next.gif" alt="{l s='Next page' mod='dpdpoland'}" />
|
||||
</a>
|
||||
<a href="{$saveAction|escape:'htmlall':'UTF-8'}¤t_page={$total_pages|escape:'htmlall':'UTF-8'}&pagination={$selected_pagination|escape:'htmlall':'UTF-8'}">
|
||||
<img class="pagination_image" src="../img/admin/list-next2.gif" alt="{l s='Last page' mod='dpdpoland'}" />
|
||||
</a>
|
||||
{/if}
|
||||
| {l s='Display' mod='dpdpoland'}
|
||||
</span>
|
||||
<span class="float-left">
|
||||
<select name="pagination" onchange="submit()">
|
||||
{foreach $pagination AS $value}
|
||||
<option value="{$value|intval|escape:'htmlall':'UTF-8'}"{if $selected_pagination == $value} selected="selected" {elseif $selected_pagination == NULL && $value == $pagination[1]} selected="selected2"{/if}>{$value|intval|escape:'htmlall':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</span>
|
||||
<span class="float-left">
|
||||
/ {$list_total|escape:'htmlall':'UTF-8'} {l s='result(s)' mod='dpdpoland'}
|
||||
</span>
|
||||
<span class="clear"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="no-border">
|
||||
<table cellspacing="0" cellpadding="0" class="table document">
|
||||
<colgroup>
|
||||
<col>
|
||||
<col><col>
|
||||
<col>
|
||||
<col>
|
||||
<col>
|
||||
<col>
|
||||
<col>
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr class="nodrag nodrop titles-row">
|
||||
<th class="center">
|
||||
<span class="title_box">{l s='Country' mod='dpdpoland'}</span>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">{l s='Cart price from (PLN)' mod='dpdpoland'}</span>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">{l s='Cart price to (PLN)' mod='dpdpoland'}</span>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">{l s='Parcel weight from (kg)' mod='dpdpoland'}</span>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">{l s='Parcel weight to (kg)' mod='dpdpoland'}</span>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">{l s='Parcel price (PLN)' mod='dpdpoland'}</span>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">{l s='Carrier' mod='dpdpoland'}</span>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">{l s='COD cost (PLN)' mod='dpdpoland'}</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{if isset($csv_data) && !empty($csv_data)}
|
||||
{section name=ii loop=$csv_data}
|
||||
<tr>
|
||||
<td class="center">
|
||||
{$csv_data[ii].iso_country|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td class="center">
|
||||
{$csv_data[ii].price_from|floatval}
|
||||
</td>
|
||||
<td class="center">
|
||||
{$csv_data[ii].price_to|floatval}
|
||||
</td>
|
||||
<td class="center">
|
||||
{$csv_data[ii].weight_from|floatval}
|
||||
</td>
|
||||
<td class="center">
|
||||
{$csv_data[ii].weight_to|floatval}
|
||||
</td>
|
||||
<td class="center">
|
||||
{$csv_data[ii].parcel_price|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td class="center">
|
||||
{$csv_data[ii].id_carrier|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td class="center">
|
||||
{$csv_data[ii].cod_price|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
</tr>
|
||||
{/section}
|
||||
{else}
|
||||
<tr>
|
||||
<td colspan="8" class="center">
|
||||
{l s='No prices' mod='dpdpoland'}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="submit" {if !isset($csv_data) || isset($csv_data) && empty($csv_data)}disabled="disabled"{/if} class="btn btn-default" name="{DpdPolandCSVController::SETTINGS_DELETE_CSV_ACTION}" value="{l s='Delete all prices' mod='dpdpoland'}" />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</form>
|
||||
36
modules/dpdpoland/views/templates/admin/errors.tpl
Normal file
36
modules/dpdpoland/views/templates/admin/errors.tpl
Normal file
@@ -0,0 +1,36 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
{if count($errors)}
|
||||
<div class="bootstrap">
|
||||
<div class="error alert alert-danger">
|
||||
<p>
|
||||
{if count($errors) == 1}
|
||||
{$errors[0]|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
{$errors|count} {l s='errors' mod='dpdpoland'}
|
||||
<br/>
|
||||
<ol>
|
||||
{foreach $errors as $error}
|
||||
<li>{$error|escape:'htmlall':'UTF-8'}</li>
|
||||
{/foreach}
|
||||
</ol>
|
||||
{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
25
modules/dpdpoland/views/templates/admin/global_variables.tpl
Normal file
25
modules/dpdpoland/views/templates/admin/global_variables.tpl
Normal file
@@ -0,0 +1,25 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
<script>
|
||||
var dpdpoland_ajax_uri = "{$dpdpoland_ajax_uri|escape:'htmlall':'UTF-8'}";
|
||||
var dpdpoland_pdf_uri = "{$dpdpoland_pdf_uri|escape:'htmlall':'UTF-8'}";
|
||||
var dpdpoland_token = "{$dpdpoland_token|escape:'htmlall':'UTF-8'}";
|
||||
var dpdpoland_id_shop = "{$dpdpoland_id_shop|escape:'htmlall':'UTF-8'}";
|
||||
var dpdpoland_id_lang = "{$dpdpoland_id_lang|escape:'htmlall':'UTF-8'}";
|
||||
var no_COD_methods_message = "{l s='No COD modules found' mod='dpdpoland'}";
|
||||
</script>
|
||||
29
modules/dpdpoland/views/templates/admin/help.tpl
Normal file
29
modules/dpdpoland/views/templates/admin/help.tpl
Normal file
@@ -0,0 +1,29 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
{if version_compare($smarty.const._PS_VERSION_, '1.6', '<')}
|
||||
<br />
|
||||
{/if}
|
||||
<div id="help_container"{if version_compare($smarty.const._PS_VERSION_, '1.6', '>=')} class="panel"{/if}>
|
||||
<img src="{$smarty.const._DPDPOLAND_IMG_URI_|escape:'htmlall':'UTF-8'}pdf.gif" />
|
||||
<a href="{$module_link|escape:'htmlall':'UTF-8'}&menu=help&print_pdf">{l s='User guide in English' mod='dpdpoland'}</a>
|
||||
<br /><br />
|
||||
<img src="{$smarty.const._DPDPOLAND_IMG_URI_|escape:'htmlall':'UTF-8'}pdf.gif" />
|
||||
<a href="{$module_link|escape:'htmlall':'UTF-8'}&menu=help&print_pdf&polish">{l s='User guide in Polish' mod='dpdpoland'}</a>
|
||||
<br /><br />
|
||||
<a target="_blank" href="{$smarty.const._DPDPOLAND_SUPPORT_URL_|escape:'htmlall':'UTF-8'}">{l s='If you have any questions, please contact our support team.' mod='dpdpoland'}</a>
|
||||
</div>
|
||||
29
modules/dpdpoland/views/templates/admin/index.php
Normal file
29
modules/dpdpoland/views/templates/admin/index.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*/
|
||||
|
||||
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;
|
||||
27
modules/dpdpoland/views/templates/admin/list_action.tpl
Normal file
27
modules/dpdpoland/views/templates/admin/list_action.tpl
Normal file
@@ -0,0 +1,27 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
|
||||
{if isset($ps_15) && $ps_15}
|
||||
<a href="{$href|escape:'html':'UTF-8'}" title="{$action|escape:'html':'UTF-8'}" >
|
||||
<img src="{$smarty.const._DPDPOLAND_IMG_URI_}download.gif" alt="{$action|escape:'html':'UTF-8'}" />
|
||||
</a>
|
||||
{else}
|
||||
<a href="{$href|escape:'html':'UTF-8'}" title="{$action|escape:'html':'UTF-8'}" >
|
||||
<i class="{$icon|escape:'html':'UTF-8'}"></i> {$action|escape:'html':'UTF-8'}
|
||||
</a>
|
||||
{/if}
|
||||
234
modules/dpdpoland/views/templates/admin/manifest_list.tpl
Normal file
234
modules/dpdpoland/views/templates/admin/manifest_list.tpl
Normal file
@@ -0,0 +1,234 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$("table.Manifests .datepicker").datepicker({
|
||||
prevText: '',
|
||||
nextText: '',
|
||||
dateFormat: 'yy-mm-dd'
|
||||
});
|
||||
|
||||
$('table#manifests_list .filter').keypress(function(event){
|
||||
formSubmit(event, 'submitFilterButtonManifests');
|
||||
})
|
||||
});
|
||||
</script>
|
||||
|
||||
<form class="form" action="{$full_url|escape:'htmlall':'UTF-8'}" method="post">
|
||||
<input type="hidden" value="0" name="submitFilterManifests" id="submitFilterManifests">
|
||||
<table id="manifests_list" name="list_table" class="table_grid">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="bottom">
|
||||
<span class="float-left">
|
||||
{if $page > 1}
|
||||
<input type="image" src="../img/admin/list-prev2.gif" onclick="getE('submitFilterManifests').value=1"/>
|
||||
<input type="image" src="../img/admin/list-prev.gif" onclick="getE('submitFilterManifests').value=;{$page|escape:'htmlall':'UTF-8' - 1}"/>
|
||||
{/if}
|
||||
{l s='Page' mod='dpdpoland'} <b>{$page|escape:'htmlall':'UTF-8'}</b> / {$total_pages|escape:'htmlall':'UTF-8'}
|
||||
{if $page < $total_pages}
|
||||
<input type="image" src="../img/admin/list-next.gif" onclick="getE('submitFilterManifests').value=;{$page|escape:'htmlall':'UTF-8' + 1}"/>
|
||||
<input type="image" src="../img/admin/list-next2.gif" onclick="getE('submitFilterManifests').value=;{$total_pages|escape:'htmlall':'UTF-8'}"/>
|
||||
{/if}
|
||||
| {l s='Display' mod='dpdpoland'}
|
||||
<select name="pagination" onchange="submit()">
|
||||
{foreach from=$pagination item=value}
|
||||
<option value="{$value|intval|escape:'htmlall':'UTF-8'}"{if $selected_pagination == $value} selected="selected" {elseif $selected_pagination == NULL && $value == $pagination[1]} selected="selected2"{/if}>{$value|intval|escape:'htmlall':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
/ {$list_total|escape:'htmlall':'UTF-8'} {l s='result(s)' mod='dpdpoland'}
|
||||
</span>
|
||||
<span class="float-right">
|
||||
<input type="submit" class="button" value="{l s='Filter' mod='dpdpoland'}" name="submitFilterButtonManifests" id="submitFilterButtonManifests">
|
||||
<input type="submit" class="button" value="{l s='Reset' mod='dpdpoland'}" name="submitResetManifests">
|
||||
</span>
|
||||
<span class="clear"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="0" class="table Manifests">
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
<col>
|
||||
<col>
|
||||
<col width="30px">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr class="nodrag nodrop titles-row">
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Manifest Number' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ManifestsOrderBy=id_manifest_ws&ManifestsOrderWay=desc">
|
||||
{if $order_by == 'id_manifest_ws' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ManifestsOrderBy=id_manifest_ws&ManifestsOrderWay=asc">
|
||||
{if $order_by == 'id_manifest_ws' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Number of Parcels' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ManifestsOrderBy=count_parcels&ManifestsOrderWay=desc">
|
||||
{if $order_by == 'count_parcels' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ManifestsOrderBy=count_parcels&ManifestsOrderWay=asc">
|
||||
{if $order_by == 'count_parcels' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Number of Orders' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ManifestsOrderBy=count_orders&ManifestsOrderWay=desc">
|
||||
{if $order_by == 'count_orders' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ManifestsOrderBy=count_orders&ManifestsOrderWay=asc">
|
||||
{if $order_by == 'count_orders' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Date of printout' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ManifestsOrderBy=date_add&ManifestsOrderWay=desc">
|
||||
{if $order_by == 'date_add' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ManifestsOrderBy=date_add&ManifestsOrderWay=asc">
|
||||
{if $order_by == 'date_add' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Actions' mod='dpdpoland'}<br>
|
||||
</span>
|
||||
<br>
|
||||
</th>
|
||||
</tr>
|
||||
<tr class="nodrag nodrop filter row_hover filter-row">
|
||||
<td class="center">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('ManifestsFilter_id_manifest_ws') && Context::getContext()->cookie->ManifestsFilter_id_manifest_ws}{Context::getContext()->cookie->ManifestsFilter_id_manifest_ws}{/if}" name="ManifestsFilter_id_manifest_ws" class="filter">
|
||||
</td>
|
||||
<td class="center">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('ManifestsFilter_count_parcels') && Context::getContext()->cookie->ManifestsFilter_count_parcels}{Context::getContext()->cookie->ManifestsFilter_count_parcels}{/if}" name="ManifestsFilter_count_parcels" class="filter">
|
||||
</td>
|
||||
<td class="center">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('ManifestsFilter_count_orders') && Context::getContext()->cookie->ManifestsFilter_count_orders}{Context::getContext()->cookie->ManifestsFilter_count_orders}{/if}" name="ManifestsFilter_count_orders" class="filter">
|
||||
</td>
|
||||
<td class="right">
|
||||
{l s='From' mod='dpdpoland'} <input type="text" value="" name="ManifestsFilter_date_add[0]" id="ManifestsFilter_date_add_0" class="filter datepicker">
|
||||
<br>
|
||||
{l s='To' mod='dpdpoland'} <input type="text" value="" name="ManifestsFilter_date_add[1]" id="ManifestsFilter_date_add_1" class="filter datepicker">
|
||||
</td>
|
||||
<td class="center">
|
||||
--
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{if isset($table_data) && $table_data}
|
||||
{section name=ii loop=$table_data}
|
||||
<tr class="row_hover" id="tr_{$smarty.section.ii.index|escape:'htmlall':'UTF-8' + 1}_{$table_data[ii].id_manifest_ws|escape:'htmlall':'UTF-8'}_0">
|
||||
<td class="center">
|
||||
{if $table_data[ii].id_manifest_ws}
|
||||
{$table_data[ii].id_manifest_ws|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].count_parcels}
|
||||
{$table_data[ii].count_parcels|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].count_orders}
|
||||
{$table_data[ii].count_orders|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].date_add}
|
||||
{$table_data[ii].date_add|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center manifest-list-buttons">
|
||||
<a title="{l s='Print manifest' mod='dpdpoland'}" href="{$full_url|escape:'htmlall':'UTF-8'}&printManifest&id_manifest_ws={$table_data[ii].id_manifest_ws|escape:'htmlall':'UTF-8'}">
|
||||
<img alt="{l s='Print manifest' mod='dpdpoland'}" src="../img/admin/pdf.gif">
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/section}
|
||||
{else}
|
||||
<tr>
|
||||
<td colspan="5" class="center">
|
||||
{l s='There are no manifests yet' mod='dpdpoland'}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
182
modules/dpdpoland/views/templates/admin/manifest_list_16.tpl
Normal file
182
modules/dpdpoland/views/templates/admin/manifest_list_16.tpl
Normal file
@@ -0,0 +1,182 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$("table#manifests_list .datepicker").datepicker({
|
||||
prevText: '',
|
||||
nextText: '',
|
||||
dateFormat: 'yy-mm-dd'
|
||||
});
|
||||
|
||||
$('table#manifests_list .filter').keypress(function(event){
|
||||
formSubmit(event, 'submitFilterButtonManifests');
|
||||
});
|
||||
|
||||
$('table#packages_list .filter').keypress(function(e){
|
||||
var key = (e.keyCode ? e.keyCode : e.which);
|
||||
if (key == 13)
|
||||
{
|
||||
e.preventDefault();
|
||||
formSubmit(event, 'submitFilterButtonManifests');
|
||||
}
|
||||
});
|
||||
|
||||
$('#submitFilterButtonManifests').click(function() {
|
||||
$('#submitFilterManifests').val(1);
|
||||
$('#manifests').submit();
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
<form id="manifests" class="form-horizontal clearfix" action="{$full_url|escape:'htmlall':'UTF-8'}" method="post">
|
||||
<input type="hidden" value="0" name="submitFilterButtonManifests" id="submitFilterManifests">
|
||||
<div class="panel col-lg-12">
|
||||
<div class="panel-heading">{l s='Manifests' mod='dpdpoland'}<span class="badge">{$list_total|escape:'htmlall':'UTF-8'}</span></div>
|
||||
<div class="table-responsive clearfix">
|
||||
<table class="table" id="manifests_list" name="list_table">
|
||||
<thead>
|
||||
<tr class="nodrag nodrop">
|
||||
<th class="center">
|
||||
<span class="title_box{if $order_by == 'id_manifest_ws'} active{/if}">{l s='Manifest Number' mod='dpdpoland'}
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ManifestsOrderBy=id_manifest_ws&ManifestsOrderWay=desc"{if $order_by == 'id_manifest_ws' && $order_way == 'desc'} class="active"{/if}><i class="icon-caret-down"></i></a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ManifestsOrderBy=id_manifest_ws&ManifestsOrderWay=asc"{if $order_by == 'id_manifest_ws' && $order_way == 'asc'} class="active"{/if}><i class="icon-caret-up"></i></a>
|
||||
</span>
|
||||
</th>
|
||||
<th class="">
|
||||
<span class="title_box{if $order_by == 'count_parcels'} active{/if}">{l s='Number of Parcels' mod='dpdpoland'}
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ManifestsOrderBy=count_parcels&ManifestsOrderWay=desc"{if $order_by == 'count_parcels' && $order_way == 'desc'} class="active"{/if}><i class="icon-caret-down"></i></a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ManifestsOrderBy=count_parcels&ManifestsOrderWay=asc"{if $order_by == 'count_parcels' && $order_way == 'asc'} class="active"{/if}><i class="icon-caret-up"></i></a>
|
||||
</span>
|
||||
</th>
|
||||
<th class="left">
|
||||
<span class="title_box{if $order_by == 'count_orders'} active{/if}">{l s='Number of Orders' mod='dpdpoland'}
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ManifestsOrderBy=count_orders&ManifestsOrderWay=desc"{if $order_by == 'count_orders' && $order_way == 'desc'} class="active"{/if}><i class="icon-caret-down"></i></a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ManifestsOrderBy=count_orders&ManifestsOrderWay=asc"{if $order_by == 'count_orders' && $order_way == 'asc'} class="active"{/if}><i class="icon-caret-up"></i></a>
|
||||
</span>
|
||||
</th>
|
||||
<th class="">
|
||||
<span class="title_box{if $order_by == 'date_add'} active{/if}">{l s='Date of printout' mod='dpdpoland'}
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ManifestsOrderBy=date_add&ManifestsOrderWay=desc"{if $order_by == 'date_add' && $order_way == 'desc'} class="active"{/if}><i class="icon-caret-down"></i></a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ManifestsOrderBy=date_add&ManifestsOrderWay=asc"{if $order_by == 'date_add' && $order_way == 'asc'} class="active"{/if}><i class="icon-caret-up"></i></a>
|
||||
</span>
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
<tr class="nodrag nodrop filter row_hover">
|
||||
<th class="center">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('ManifestsFilter_id_manifest_ws') && Context::getContext()->cookie->ManifestsFilter_id_manifest_ws}{Context::getContext()->cookie->ManifestsFilter_id_manifest_ws}{/if}" name="ManifestsFilter_id_manifest_ws" class="filter">
|
||||
</th>
|
||||
|
||||
<th class="center">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('ManifestsFilter_count_parcels') && Context::getContext()->cookie->ManifestsFilter_count_parcels}{Context::getContext()->cookie->ManifestsFilter_count_parcels}{/if}" name="ManifestsFilter_count_parcels" class="filter">
|
||||
</th>
|
||||
|
||||
<th>
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('ManifestsFilter_count_orders') && Context::getContext()->cookie->ManifestsFilter_count_orders}{Context::getContext()->cookie->ManifestsFilter_count_orders}{/if}" name="ManifestsFilter_count_orders" class="filter">
|
||||
</th>
|
||||
|
||||
<th class="text-right">
|
||||
<div class="date_range row">
|
||||
<div class="input-group fixed-width-md">
|
||||
<input type="text" class="filter datepicker" id="ManifestsFilter_date_add_0" name="ManifestsFilter_date_add[0]" placeholder="{l s='From' mod='dpdpoland'}">
|
||||
<span class="input-group-addon">
|
||||
<i class="icon-calendar"></i>
|
||||
</span>
|
||||
</div>
|
||||
<div class="input-group fixed-width-md">
|
||||
<input type="text" class="filter datepicker" id="ManifestsFilter_date_add_1" name="ManifestsFilter_date_add[1]" placeholder="{l s='To' mod='dpdpoland'}">
|
||||
<span class="input-group-addon">
|
||||
<i class="icon-calendar"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</th>
|
||||
|
||||
<th class="actions text-center">
|
||||
<span class="pull-right">
|
||||
<button id="submitFilterButtonManifests" class="btn btn-default" data-list-id="manifests_list" name="submitFilter" type="submit">
|
||||
<i class="icon-search"></i>
|
||||
{l s='Search' mod='dpdpoland'}
|
||||
</button>
|
||||
{if $filters_has_value}
|
||||
<button type="submit" name="submitResetManifests" class="btn btn-warning">
|
||||
<i class="icon-eraser"></i> {l s='Reset' mod='dpdpoland'}
|
||||
</button>
|
||||
{/if}
|
||||
</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{if isset($table_data) && $table_data}
|
||||
{section name=ii loop=$table_data}
|
||||
<tr class="odd" id="tr_{$smarty.section.ii.index|escape:'htmlall':'UTF-8' + 1}_{$table_data[ii].id_manifest_ws|escape:'htmlall':'UTF-8'}_0">
|
||||
<td class="center">
|
||||
{if $table_data[ii].id_manifest_ws}
|
||||
{$table_data[ii].id_manifest_ws|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].count_parcels}
|
||||
{$table_data[ii].count_parcels|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].count_orders}
|
||||
{$table_data[ii].count_orders|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="text-left">
|
||||
{if $table_data[ii].date_add}
|
||||
{$table_data[ii].date_add|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="text-right manifest-list-buttons">
|
||||
<a title="{l s='Print manifest' mod='dpdpoland'}" href="{$full_url|escape:'htmlall':'UTF-8'}&printManifest&id_manifest_ws={$table_data[ii].id_manifest_ws|escape:'htmlall':'UTF-8'}">
|
||||
<img alt="{l s='Print manifest' mod='dpdpoland'}" src="../img/admin/pdf.gif">
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/section}
|
||||
{else}
|
||||
<tr>
|
||||
<td colspan="9" class="list-empty">
|
||||
<div class="list-empty-msg">
|
||||
<i class="icon-warning-sign list-empty-icon"></i>
|
||||
{l s='No records found' mod='dpdpoland'}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</tbody>
|
||||
</table>
|
||||
{include file=$smarty.const._DPDPOLAND_TPL_DIR_|cat:'admin/_pagination_16.tpl' identifier='Manifests'}
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
133
modules/dpdpoland/views/templates/admin/navigation.tpl
Normal file
133
modules/dpdpoland/views/templates/admin/navigation.tpl
Normal file
@@ -0,0 +1,133 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
{if version_compare($smarty.const._PS_VERSION_, '1.6', '<')}
|
||||
<div class="toolbar-placeholder">
|
||||
<div class="toolbarBox toolbarHead">
|
||||
<ul class="cc_button">
|
||||
{if Tools::getValue('menu') == 'sender_address'}
|
||||
<li>
|
||||
<a id="desc-add_new" class="toolbar_btn" href="{$form_url|escape:'htmlall':'UTF-8'}" title="{l s='Add new' mod='dpdpoland'}">
|
||||
<span class="process-icon-add_new add_new"></span>
|
||||
<div>{l s='Add new' mod='dpdpoland'}</div>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
<li>
|
||||
<a id="arrange_pickup_page" href="{$module_link|escape:'htmlall':'UTF-8'}&menu=arrange_pickup" class="toolbar_btn">
|
||||
<span class="process-icon-arrange_pickup arrange_pickup"></span>
|
||||
<div>{l s='Arrange Pickup' mod='dpdpoland'}</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a id="pickup_history_page" href="{$module_link|escape:'htmlall':'UTF-8'}&menu=pickup_history" class="toolbar_btn">
|
||||
<span class="process-icon-packages_list pickup_history"></span>
|
||||
<div>{l s='Pickup history' mod='dpdpoland'}</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a id="packages_list_page" href="{$module_link|escape:'htmlall':'UTF-8'}&menu=packages_list" class="toolbar_btn">
|
||||
<span class="process-icon-packages_list packages_list"></span>
|
||||
<div>{l s='Packages list' mod='dpdpoland'}</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a id="manifest_list_page" href="{$module_link|escape:'htmlall':'UTF-8'}&menu=manifest_list" class="toolbar_btn">
|
||||
<span class="process-icon-manifest_list manifest_list"></span>
|
||||
<div>{l s='Manifest list' mod='dpdpoland'}</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a id="parcel_history_list_page" href="{$module_link|escape:'htmlall':'UTF-8'}&menu=parcel_history_list" class="toolbar_btn">
|
||||
<span class="process-icon-parcel_history_list parcel_history_list"></span>
|
||||
<div>{l s='Parcels history' mod='dpdpoland'}</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a id="country_list_page" href="{$module_link|escape:'htmlall':'UTF-8'}&menu=country_list" class="toolbar_btn">
|
||||
<span class="process-icon-country_list country_list"></span>
|
||||
<div>{l s='Shipment countries' mod='dpdpoland'}</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a id="csv_page" href="{$module_link|escape:'htmlall':'UTF-8'}&menu=csv" class="toolbar_btn">
|
||||
<span class="process-icon-csv csv"></span>
|
||||
<div>{l s='CSV prices import' mod='dpdpoland'}</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a id="sender_address" href="{$module_link|escape:'htmlall':'UTF-8'}&menu=sender_address" class="toolbar_btn">
|
||||
<span class="process-icon-sender_address sender_address"></span>
|
||||
<div>{l s='Sender address' mod='dpdpoland'}</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a id="settings_page" href="{$module_link|escape:'htmlall':'UTF-8'}&menu=configuration" class="toolbar_btn">
|
||||
<span class="process-icon-settings settings"></span>
|
||||
<div>{l s='Settings' mod='dpdpoland'}</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a id="help_page" href="{$module_link|escape:'htmlall':'UTF-8'}&menu=help" class="toolbar_btn">
|
||||
<span class="process-icon-help help"></span>
|
||||
<div>{l s='Help' mod='dpdpoland'}</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="pageTitle">
|
||||
<h3>
|
||||
<span id="current_obj">
|
||||
<span class="breadcrumb item-0 ">
|
||||
{section name=breadcrumb_iteration loop=$breadcrumb}
|
||||
{if $smarty.section.breadcrumb_iteration.index != 0}
|
||||
<img src="{$smarty.const._DPDPOLAND_IMG_URI_|escape:'htmlall':'UTF-8'}/separator_breadcrumb.png" alt=">">
|
||||
{/if}
|
||||
<span class="breadcrumb item-1">
|
||||
{$breadcrumb[breadcrumb_iteration]|escape:'htmlall':'UTF-8'}
|
||||
</span>
|
||||
{/section}
|
||||
</span>
|
||||
</span>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{else}
|
||||
<nav class="navbar navbar-default" role="navigation">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle float-left" data-toggle="collapse" data-target="#navbar-collapse">
|
||||
<span class="sr-only"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="collapse navbar-collapse" id="navbar-collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
{if isset($meniutabs)}
|
||||
{foreach $meniutabs key=numStep item=tab}
|
||||
<li class="{if $tab.active}active{/if}">
|
||||
<a id="{$tab.short|escape:'htmlall':'utf-8'}" href="{$tab.href|escape:'htmlall':'utf-8'}">
|
||||
<span class="{$tab.imgclass|escape:'htmlall':'utf-8'}"></span>{$tab.desc|escape:'htmlall':'utf-8'}
|
||||
</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
{/if}
|
||||
411
modules/dpdpoland/views/templates/admin/package_list.tpl
Normal file
411
modules/dpdpoland/views/templates/admin/package_list.tpl
Normal file
@@ -0,0 +1,411 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
<script>
|
||||
var dpdpoland_packages_ids = "{Context::getContext()->cookie->dpdpoland_packages_ids|escape:'htmlall':'UTF-8'}";
|
||||
|
||||
$(document).ready(function(){
|
||||
$("table.Packages .datepicker").datepicker({
|
||||
prevText: '',
|
||||
nextText: '',
|
||||
dateFormat: 'yy-mm-dd'
|
||||
});
|
||||
|
||||
$('table#packages_list .filter').keypress(function(event){
|
||||
formSubmit(event, 'submitFilterButtonPackages');
|
||||
});
|
||||
|
||||
if (dpdpoland_packages_ids)
|
||||
{
|
||||
window.location = window.location + '&printManifest';
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<form class="form" action="{$full_url|escape:'htmlall':'UTF-8'}" method="post">
|
||||
<input type="hidden" value="0" name="submitFilterPackages" id="submitFilterPackages">
|
||||
<table id="packages_list" name="list_table" class="table_grid">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="bottom">
|
||||
<span class="float-left">
|
||||
{if $page > 1}
|
||||
<input type="image" src="../img/admin/list-prev2.gif" onclick="getE('submitFilterPackages').value=1"/>
|
||||
<input type="image" src="../img/admin/list-prev.gif" onclick="getE('submitFilterPackages').value=;{$page|escape:'htmlall':'UTF-8' - 1}"/>
|
||||
{/if}
|
||||
{l s='Page' mod='dpdpoland'} <b>{$page|escape:'htmlall':'UTF-8'}</b> / {$total_pages|escape:'htmlall':'UTF-8'}
|
||||
{if $page < $total_pages}
|
||||
<input type="image" src="../img/admin/list-next.gif" onclick="getE('submitFilterPackages').value=;{$page|escape:'htmlall':'UTF-8' + 1}"/>
|
||||
<input type="image" src="../img/admin/list-next2.gif" onclick="getE('submitFilterPackages').value=;{$total_pages|escape:'htmlall':'UTF-8'}"/>
|
||||
{/if}
|
||||
| {l s='Display' mod='dpdpoland'}
|
||||
<select name="pagination" onchange="submit()">
|
||||
{foreach from=$pagination item=value}
|
||||
<option value="{$value|intval|escape:'htmlall':'UTF-8'}"{if $selected_pagination == $value} selected="selected" {elseif $selected_pagination == NULL && $value == $pagination[1]} selected="selected2"{/if}>{$value|intval|escape:'htmlall':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
/ {$list_total|escape:'htmlall':'UTF-8'} {l s='result(s)' mod='dpdpoland'}
|
||||
</span>
|
||||
<span class="float-right">
|
||||
<input type="submit" class="button" value="{l s='Filter' mod='dpdpoland'}" name="submitFilterButtonPackages" id="submitFilterButtonPackages">
|
||||
<input type="submit" class="button" value="{l s='Reset' mod='dpdpoland'}" name="submitResetPackages">
|
||||
</span>
|
||||
<span class="clear"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="0" class="table Packages">
|
||||
<colgroup>
|
||||
<col width="10px">
|
||||
<col width="140px">
|
||||
<col width="100px">
|
||||
<col width="100px">
|
||||
<col width="100px">
|
||||
<col width="140px">
|
||||
<col width="140px">
|
||||
<col width="80px">
|
||||
<col width="100px">
|
||||
<col>
|
||||
<col width="30px">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr class="nodrag nodrop titles-row">
|
||||
<th class="center">
|
||||
<input type="checkbox" onclick="checkDelBoxes(this.form, 'PackagesBox[]', this.checked)" class="noborder" name="checkme">
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Printout date' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=date_add&PackagesOrderWay=desc">
|
||||
{if $order_by == 'date_add' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=date_add&PackagesOrderWay=asc">
|
||||
{if $order_by == 'date_add' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Order number' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=id_order&PackagesOrderWay=desc">
|
||||
{if $order_by == 'id_order' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=id_order&PackagesOrderWay=asc">
|
||||
{if $order_by == 'id_order' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Package number' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=package_number&PackagesOrderWay=desc">
|
||||
{if $order_by == 'package_number' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=package_number&PackagesOrderWay=asc">
|
||||
{if $order_by == 'package_number' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Number of Parcels' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=count_parcel&PackagesOrderWay=desc">
|
||||
{if $order_by == 'count_parcel' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=count_parcel&PackagesOrderWay=asc">
|
||||
{if $order_by == 'count_parcel' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Receiver' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=receiver&PackagesOrderWay=desc">
|
||||
{if $order_by == 'receiver' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=receiver&PackagesOrderWay=asc">
|
||||
{if $order_by == 'receiver' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Country' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=country&PackagesOrderWay=desc">
|
||||
{if $order_by == 'country' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=country&PackagesOrderWay=asc">
|
||||
{if $order_by == 'country' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Postal code' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=postcode&PackagesOrderWay=desc">
|
||||
{if $order_by == 'postcode' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=postcode&PackagesOrderWay=asc">
|
||||
{if $order_by == 'postcode' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='City' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=city&PackagesOrderWay=desc">
|
||||
{if $order_by == 'city' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=city&PackagesOrderWay=asc">
|
||||
{if $order_by == 'city' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Address' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=address&PackagesOrderWay=desc">
|
||||
{if $order_by == 'address' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=address&PackagesOrderWay=asc">
|
||||
{if $order_by == 'address' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Actions' mod='dpdpoland'}<br>
|
||||
</span>
|
||||
<br>
|
||||
</th>
|
||||
</tr>
|
||||
<tr class="nodrag nodrop filter row_hover filter-row">
|
||||
<td class="center">
|
||||
--
|
||||
</td>
|
||||
<td class="right">
|
||||
{l s='From' mod='dpdpoland'} <input type="text" value="" name="PackagesFilter_date_add[0]" id="PackagesFilter_date_add_0" class="filter datepicker">
|
||||
<br>
|
||||
{l s='To' mod='dpdpoland'} <input type="text" value="" name="PackagesFilter_date_add[1]" id="PackagesFilter_date_add_1" class="filter datepicker">
|
||||
</td>
|
||||
<td class="center">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('PackagesFilter_id_order') && Context::getContext()->cookie->PackagesFilter_id_order}{Context::getContext()->cookie->PackagesFilter_id_order}{/if}" name="PackagesFilter_id_order" class="filter">
|
||||
</td>
|
||||
<td class="center">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('PackagesFilter_package_number') && Context::getContext()->cookie->PackagesFilter_package_number}{Context::getContext()->cookie->PackagesFilter_package_number}{/if}" name="PackagesFilter_package_number" class="filter">
|
||||
</td>
|
||||
<td class="center">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('PackagesFilter_count_parcel') && Context::getContext()->cookie->PackagesFilter_count_parcel}{Context::getContext()->cookie->PackagesFilter_count_parcel}{/if}" name="PackagesFilter_count_parcel" class="filter">
|
||||
</td>
|
||||
<td class="right">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('PackagesFilter_receiver') && Context::getContext()->cookie->PackagesFilter_receiver}{Context::getContext()->cookie->PackagesFilter_receiver}{/if}" name="PackagesFilter_receiver" class="filter">
|
||||
</td>
|
||||
<td class="right">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('PackagesFilter_country') && Context::getContext()->cookie->PackagesFilter_country}{Context::getContext()->cookie->PackagesFilter_country}{/if}" name="PackagesFilter_country" class="filter">
|
||||
</td>
|
||||
<td class="right">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('PackagesFilter_postcode') && Context::getContext()->cookie->PackagesFilter_postcode}{Context::getContext()->cookie->PackagesFilter_postcode}{/if}" name="PackagesFilter_postcode" class="filter">
|
||||
</td>
|
||||
<td class="right">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('PackagesFilter_city') && Context::getContext()->cookie->PackagesFilter_city}{Context::getContext()->cookie->PackagesFilter_city}{/if}" name="PackagesFilter_city" class="filter">
|
||||
</td>
|
||||
<td class="right">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('PackagesFilter_address') && Context::getContext()->cookie->PackagesFilter_address}{Context::getContext()->cookie->PackagesFilter_address}{/if}" name="PackagesFilter_address" class="filter">
|
||||
</td>
|
||||
<td class="center">
|
||||
--
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{if isset($table_data) && $table_data}
|
||||
{section name=ii loop=$table_data}
|
||||
<tr class="row_hover" id="tr_{$smarty.section.ii.index|escape:'htmlall':'UTF-8' + 1}_{$table_data[ii].id_package_ws|escape:'htmlall':'UTF-8'}_0">
|
||||
<td class="center">
|
||||
<input type="checkbox" class="noborder" value="{$table_data[ii].id_package_ws|escape:'htmlall':'UTF-8'}" name="PackagesBox[]"{if isset($smarty.post.PackagesBox) && in_array($table_data[ii].id_package_ws, $smarty.post.PackagesBox)} checked="checked"{/if}>
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].date_add && $table_data[ii].date_add != '0000-00-00 00:00:00'}
|
||||
{$table_data[ii].date_add|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].id_order}
|
||||
{$table_data[ii].id_order|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].package_number}
|
||||
{$table_data[ii].package_number|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].count_parcel}
|
||||
{$table_data[ii].count_parcel|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].receiver}
|
||||
{$table_data[ii].receiver|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].country}
|
||||
{$table_data[ii].country|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].postcode}
|
||||
{$table_data[ii].postcode|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].city}
|
||||
{$table_data[ii].city|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].address}
|
||||
{$table_data[ii].address|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center packages-list-buttons">
|
||||
<a title="{l s='View' mod='dpdpoland'}" href="{$order_link|escape:'htmlall':'UTF-8'}&id_order={$table_data[ii].id_order|escape:'htmlall':'UTF-8'}">
|
||||
<img alt="{l s='View' mod='dpdpoland'}" src="../img/admin/details.gif">
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/section}
|
||||
{else}
|
||||
<tr>
|
||||
<td colspan="11" class="center">
|
||||
{l s='No packages' mod='dpdpoland'}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</tbody>
|
||||
</table>
|
||||
<p>
|
||||
<input class="button" type="submit" onclick="return confirm('{l s='Print selected manifest(s)?' mod='dpdpoland'}');" value="{l s='Manifest printout' mod='dpdpoland'}" name="printManifest" />
|
||||
<input class="button" type="submit" value="{l s='Label duplicate printout Label printer' mod='dpdpoland'}" name="printLabelsLabelFormat" />
|
||||
<input class="button" type="submit" value="{l s='Label duplicate printout A4' mod='dpdpoland'}" name="printLabelsA4Format" />
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
388
modules/dpdpoland/views/templates/admin/package_list_16.tpl
Normal file
388
modules/dpdpoland/views/templates/admin/package_list_16.tpl
Normal file
@@ -0,0 +1,388 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
<script>
|
||||
var dpdpoland_packages_ids = "{Context::getContext()->cookie->dpdpoland_packages_ids|escape:'htmlall':'UTF-8'}";
|
||||
|
||||
$(document).ready(function(){
|
||||
$("table.Packages .datepicker").datepicker({
|
||||
prevText: '',
|
||||
nextText: '',
|
||||
dateFormat: 'yy-mm-dd'
|
||||
});
|
||||
|
||||
$('table#packages .filter').keypress(function(event){
|
||||
formSubmit(event, 'submitFilterButtonPackages');
|
||||
});
|
||||
|
||||
if (dpdpoland_packages_ids)
|
||||
{
|
||||
window.location = window.location + '&printManifest';
|
||||
}
|
||||
});
|
||||
|
||||
function sendDpdPolandBulkAction(form, action) {
|
||||
String.prototype.splice = function(index, remove, string) {
|
||||
return (this.slice(0, index) + string + this.slice(index + Math.abs(remove)));
|
||||
};
|
||||
|
||||
var form_action = $(form).attr('action');
|
||||
|
||||
form_action = form_action.replace('&printLabelsLabelFormat', '').replace('&printLabelsA4Format', '');
|
||||
|
||||
if (form_action.replace(/(?:(?:^|\n)\s+|\s+(?:$|\n))/g,'').replace(/\s+/g,' ') == '')
|
||||
return false;
|
||||
|
||||
if (form_action.indexOf('#') == -1)
|
||||
$(form).attr('action', form_action + '&' + action);
|
||||
else
|
||||
$(form).attr('action', form_action.splice(form_action.lastIndexOf('&'), 0, '&' + action));
|
||||
|
||||
$(form).submit();
|
||||
}
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$('table#packages .filter').keypress(function(e){
|
||||
var key = (e.keyCode ? e.keyCode : e.which);
|
||||
if (key == 13)
|
||||
{
|
||||
e.preventDefault();
|
||||
formSubmit(event, 'submitFilterButtonPackages');
|
||||
}
|
||||
});
|
||||
$('#submitFilterButtonPackages').click(function() {
|
||||
$('#submitFilterPackages').val(1);
|
||||
$('#packages_form').submit();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<form id="packages_form" class="form-horizontal clearfix" action="{$full_url|escape:'htmlall':'UTF-8'}" method="post">
|
||||
<input type="hidden" value="0" name="submitFilterButtonPackages" id="submitFilterPackages" />
|
||||
<div class="panel col-lg-12">
|
||||
<div class="panel-heading">
|
||||
{l s='Packages' mod='dpdpoland'}
|
||||
<span class="badge">{$list_total|escape:'htmlall':'UTF-8'}</span>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive clearfix">
|
||||
<table id="packages" class="table Packages">
|
||||
<thead>
|
||||
<tr class="nodrag nodrop">
|
||||
<th class="center fixed-width-xs">
|
||||
|
||||
</th>
|
||||
<th>
|
||||
<span class="title_box{if $order_by == 'date_add'} active{/if}">
|
||||
{l s='Printout date' mod='dpdpoland'}
|
||||
<a{if $order_by == 'date_add' && $order_way == 'desc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=date_add&PackagesOrderWay=desc">
|
||||
<i class="icon-caret-down"></i>
|
||||
</a>
|
||||
<a{if $order_by == 'date_add' && $order_way == 'asc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=date_add&PackagesOrderWay=asc">
|
||||
<i class="icon-caret-up"></i>
|
||||
</a>
|
||||
</span>
|
||||
</th>
|
||||
<th class="left">
|
||||
<span class="title_box{if $order_by == 'id_order'} active{/if}">
|
||||
{l s='Order number' mod='dpdpoland'}
|
||||
<a{if $order_by == 'id_order' && $order_way == 'desc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=id_order&PackagesOrderWay=desc">
|
||||
<i class="icon-caret-down"></i>
|
||||
</a>
|
||||
<a{if $order_by == 'id_order' && $order_way == 'asc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=id_order&PackagesOrderWay=asc">
|
||||
<i class="icon-caret-up"></i>
|
||||
</a>
|
||||
</span>
|
||||
</th>
|
||||
<th>
|
||||
<span class="title_box{if $order_by == 'package_number'} active{/if}">
|
||||
{l s='Package number' mod='dpdpoland'}
|
||||
<a{if $order_by == 'package_number' && $order_way == 'desc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=package_number&PackagesOrderWay=desc">
|
||||
<i class="icon-caret-down"></i>
|
||||
</a>
|
||||
<a{if $order_by == 'package_number' && $order_way == 'asc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=package_number&PackagesOrderWay=asc">
|
||||
<i class="icon-caret-up"></i>
|
||||
</a>
|
||||
</span>
|
||||
</th>
|
||||
<th class="fixed-width-xs center">
|
||||
<span class="title_box{if $order_by == 'count_parcel'} active{/if}">
|
||||
{l s='Number of Parcels' mod='dpdpoland'}
|
||||
<a{if $order_by == 'count_parcel' && $order_way == 'desc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=count_parcel&PackagesOrderWay=desc">
|
||||
<i class="icon-caret-down"></i>
|
||||
</a>
|
||||
<a{if $order_by == 'count_parcel' && $order_way == 'asc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=count_parcel&PackagesOrderWay=asc">
|
||||
<i class="icon-caret-up"></i>
|
||||
</a>
|
||||
</span>
|
||||
</th>
|
||||
<th>
|
||||
<span class="title_box{if $order_by == 'receiver'} active{/if}">
|
||||
{l s='Receiver' mod='dpdpoland'}
|
||||
<a{if $order_by == 'receiver' && $order_way == 'desc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=receiver&PackagesOrderWay=desc">
|
||||
<i class="icon-caret-down"></i>
|
||||
</a>
|
||||
<a{if $order_by == 'receiver' && $order_way == 'asc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=receiver&PackagesOrderWay=asc">
|
||||
<i class="icon-caret-up"></i>
|
||||
</a>
|
||||
</span>
|
||||
</th>
|
||||
<th>
|
||||
<span class="title_box{if $order_by == 'country'} active{/if}">
|
||||
{l s='Country' mod='dpdpoland'}
|
||||
<a{if $order_by == 'country' && $order_way == 'desc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=country&PackagesOrderWay=desc">
|
||||
<i class="icon-caret-down"></i>
|
||||
</a>
|
||||
<a{if $order_by == 'country' && $order_way == 'asc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=country&PackagesOrderWay=asc">
|
||||
<i class="icon-caret-up"></i>
|
||||
</a>
|
||||
</span>
|
||||
</th>
|
||||
<th class="fixed-width-xs center">
|
||||
<span class="title_box{if $order_by == 'postcode'} active{/if}">
|
||||
{l s='Postal code' mod='dpdpoland'}
|
||||
<a{if $order_by == 'postcode' && $order_way == 'desc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=postcode&PackagesOrderWay=desc">
|
||||
<i class="icon-caret-down"></i>
|
||||
</a>
|
||||
<a{if $order_by == 'postcode' && $order_way == 'asc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=postcode&PackagesOrderWay=asc">
|
||||
<i class="icon-caret-up"></i>
|
||||
</a>
|
||||
</span>
|
||||
</th>
|
||||
<th>
|
||||
<span class="title_box{if $order_by == 'city'} active{/if}">
|
||||
{l s='City' mod='dpdpoland'}
|
||||
<a{if $order_by == 'city' && $order_way == 'desc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=city&PackagesOrderWay=desc">
|
||||
<i class="icon-caret-down"></i>
|
||||
</a>
|
||||
<a{if $order_by == 'city' && $order_way == 'asc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=city&PackagesOrderWay=asc">
|
||||
<i class="icon-caret-up"></i>
|
||||
</a>
|
||||
</span>
|
||||
</th>
|
||||
<th>
|
||||
<span class="title_box{if $order_by == 'address'} active{/if}">
|
||||
{l s='Address' mod='dpdpoland'}
|
||||
<a{if $order_by == 'address' && $order_way == 'desc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=address&PackagesOrderWay=desc">
|
||||
<i class="icon-caret-down"></i>
|
||||
</a>
|
||||
<a{if $order_by == 'address' && $order_way == 'asc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&PackagesOrderBy=address&PackagesOrderWay=asc">
|
||||
<i class="icon-caret-up"></i>
|
||||
</a>
|
||||
</span>
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr class="nodrag nodrop filter row_hover">
|
||||
<th class="text-center">
|
||||
--
|
||||
</th>
|
||||
<th class="text-right">
|
||||
<div class="date_range row">
|
||||
<div class="input-group fixed-width-md">
|
||||
<input type="text" placeholder="{l s='From' mod='dpdpoland'}" name="PackagesFilter_date_add[0]" id="PackagesFilter_date_add_0" class="filter datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="icon-calendar"></i>
|
||||
</span>
|
||||
</div>
|
||||
<div class="input-group fixed-width-md">
|
||||
<input type="text" placeholder="{l s='To' mod='dpdpoland'}" name="PackagesFilter_date_add[1]" id="PackagesFilter_date_add_1" class="filter datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="icon-calendar"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</th>
|
||||
<th class="center">
|
||||
<input class="filter" type="text" value="{if Context::getContext()->cookie->__isset('PackagesFilter_id_order') && Context::getContext()->cookie->PackagesFilter_id_order}{Context::getContext()->cookie->PackagesFilter_id_order}{/if}" name="PackagesFilter_id_order" />
|
||||
</th>
|
||||
<th>
|
||||
<input class="filter" type="text" value="{if Context::getContext()->cookie->__isset('PackagesFilter_package_number') && Context::getContext()->cookie->PackagesFilter_package_number}{Context::getContext()->cookie->PackagesFilter_package_number}{/if}" name="PackagesFilter_package_number">
|
||||
</th>
|
||||
<th>
|
||||
<input class="filter" type="text" value="{if Context::getContext()->cookie->__isset('PackagesFilter_count_parcel') && Context::getContext()->cookie->PackagesFilter_count_parcel}{Context::getContext()->cookie->PackagesFilter_count_parcel}{/if}" name="PackagesFilter_count_parcel">
|
||||
</th>
|
||||
<th>
|
||||
<input class="filter" type="text" value="{if Context::getContext()->cookie->__isset('PackagesFilter_receiver') && Context::getContext()->cookie->PackagesFilter_receiver}{Context::getContext()->cookie->PackagesFilter_receiver}{/if}" name="PackagesFilter_receiver">
|
||||
</th>
|
||||
<th>
|
||||
<input class="filter" type="text" value="{if Context::getContext()->cookie->__isset('PackagesFilter_country') && Context::getContext()->cookie->PackagesFilter_country}{Context::getContext()->cookie->PackagesFilter_country}{/if}" name="PackagesFilter_country">
|
||||
</th>
|
||||
<th>
|
||||
<input class="filter" type="text" value="{if Context::getContext()->cookie->__isset('PackagesFilter_postcode') && Context::getContext()->cookie->PackagesFilter_postcode}{Context::getContext()->cookie->PackagesFilter_postcode}{/if}" name="PackagesFilter_postcode">
|
||||
</th>
|
||||
<th>
|
||||
<input class="filter" type="text" value="{if Context::getContext()->cookie->__isset('PackagesFilter_city') && Context::getContext()->cookie->PackagesFilter_city}{Context::getContext()->cookie->PackagesFilter_city}{/if}" name="PackagesFilter_city">
|
||||
</th>
|
||||
<th>
|
||||
<input class="filter" type="text" value="{if Context::getContext()->cookie->__isset('PackagesFilter_address') && Context::getContext()->cookie->PackagesFilter_address}{Context::getContext()->cookie->PackagesFilter_address}{/if}" name="PackagesFilter_address">
|
||||
</th>
|
||||
<th class="actions">
|
||||
<span class="pull-right">
|
||||
<button id="submitFilterButtonPackages" class="btn btn-default" data-list-id="Packages" name="submitFilter" type="submit">
|
||||
<i class="icon-search"></i>
|
||||
{l s='Search' mod='dpdpoland'}
|
||||
</button>
|
||||
{if $filters_has_value}
|
||||
<button type="submit" name="submitResetPackages" class="btn btn-warning">
|
||||
<i class="icon-eraser"></i> {l s='Reset' mod='dpdpoland'}
|
||||
</button>
|
||||
{/if}
|
||||
</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{if isset($table_data) && $table_data}
|
||||
{section name=ii loop=$table_data}
|
||||
<tr id="tr__{$table_data[ii].id_package_ws|escape:'htmlall':'UTF-8'}_0" class="odd">
|
||||
<td class="text-center fixed-width-xs center">
|
||||
<input class="noborder" type="checkbox" value="{$table_data[ii].id_package_ws|escape:'htmlall':'UTF-8'}" name="PackagesBox[]"{if isset($smarty.post.PackagesBox) && in_array($table_data[ii].id_package_ws, $smarty.post.PackagesBox)} checked="checked"{/if} />
|
||||
</td>
|
||||
<td class="pointer">
|
||||
{if $table_data[ii].date_add && $table_data[ii].date_add != '0000-00-00 00:00:00'}
|
||||
{$table_data[ii].date_add|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="pointer">
|
||||
{if $table_data[ii].id_order}
|
||||
{$table_data[ii].id_order|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="pointer">
|
||||
{if $table_data[ii].package_number}
|
||||
{$table_data[ii].package_number|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="pointer fixed-width-xs center">
|
||||
{if $table_data[ii].count_parcel}
|
||||
{$table_data[ii].count_parcel|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="pointer">
|
||||
{if $table_data[ii].receiver}
|
||||
{$table_data[ii].receiver|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="pointer center">
|
||||
{if $table_data[ii].country}
|
||||
{$table_data[ii].country|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="pointer fixed-width-xs center">
|
||||
{if $table_data[ii].postcode}
|
||||
{$table_data[ii].postcode|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="pointer center">
|
||||
{if $table_data[ii].city}
|
||||
{$table_data[ii].city|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="pointer center">
|
||||
{if $table_data[ii].address}
|
||||
{$table_data[ii].address|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<div class="btn-group pull-right">
|
||||
<a class=" btn btn-default" title="View" href="{$order_link|escape:'htmlall':'UTF-8'}&id_order={$table_data[ii].id_order|escape:'htmlall':'UTF-8'}">
|
||||
<i class="icon-search-plus"></i>
|
||||
{l s='View' mod='dpdpoland'}
|
||||
</a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/section}
|
||||
{else}
|
||||
<tr>
|
||||
<td colspan="11" class="list-empty">
|
||||
<div class="list-empty-msg">
|
||||
<i class="icon-warning-sign list-empty-icon"></i>
|
||||
{l s='No records found' mod='dpdpoland'}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
<div class="btn-group bulk-actions">
|
||||
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown" type="button">
|
||||
{l s='Bulk actions' mod='dpdpoland'}
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a onclick="checkDelBoxes($(this).closest('form').get(0), 'PackagesBox[]', true);return false;" href="#">
|
||||
<i class="icon-check-sign"></i>
|
||||
{l s='Select all' mod='dpdpoland'}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a onclick="checkDelBoxes($(this).closest('form').get(0), 'PackagesBox[]', false);return false;" href="#">
|
||||
<i class="icon-check-empty"></i>
|
||||
{l s='Unselect all' mod='dpdpoland'}
|
||||
</a>
|
||||
</li>
|
||||
<li class="divider"></li>
|
||||
<li>
|
||||
<a onclick="sendBulkAction($(this).closest('form').get(0), 'printManifest');" href="#">
|
||||
<i class="icon-download"></i>
|
||||
{l s='Manifest printout' mod='dpdpoland'}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a onclick="sendDpdPolandBulkAction($(this).closest('form').get(0), 'printLabelsLabelFormat');" href="#">
|
||||
<i class="icon-download"></i>
|
||||
{l s='Label duplicate printout Label printer' mod='dpdpoland'}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a onclick="sendDpdPolandBulkAction($(this).closest('form').get(0), 'printLabelsA4Format');" href="#">
|
||||
<i class="icon-download"></i>
|
||||
{l s='Label duplicate printout A4' mod='dpdpoland'}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{include file=$smarty.const._DPDPOLAND_TPL_DIR_|cat:'admin/_pagination_16.tpl' identifier='Packages'}
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
358
modules/dpdpoland/views/templates/admin/parcel_history_list.tpl
Normal file
358
modules/dpdpoland/views/templates/admin/parcel_history_list.tpl
Normal file
@@ -0,0 +1,358 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$("table.ParcelHistories .datepicker").datepicker({
|
||||
prevText: '',
|
||||
nextText: '',
|
||||
dateFormat: 'yy-mm-dd'
|
||||
});
|
||||
|
||||
$('table#parcel_history_list .filter').keypress(function(event){
|
||||
formSubmit(event, 'submitFilterButtonParcelHistories');
|
||||
})
|
||||
});
|
||||
</script>
|
||||
|
||||
<form class="form" action="{$full_url|escape:'htmlall':'UTF-8'}" method="post">
|
||||
<input type="hidden" value="0" name="submitFilterParcelHistories" id="submitFilterParcelHistories">
|
||||
<table id="parcel_history_list" name="list_table" class="table_grid">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="bottom">
|
||||
<span class="float-left">
|
||||
{if $page > 1}
|
||||
<input type="image" src="../img/admin/list-prev2.gif" onclick="getE('submitFilterParcelHistories').value=1"/>
|
||||
<input type="image" src="../img/admin/list-prev.gif" onclick="getE('submitFilterParcelHistories').value=;{$page|escape:'htmlall':'UTF-8' - 1}"/>
|
||||
{/if}
|
||||
{l s='Page' mod='dpdpoland'} <b>{$page|escape:'htmlall':'UTF-8'}</b> / {$total_pages|escape:'htmlall':'UTF-8'}
|
||||
{if $page < $total_pages}
|
||||
<input type="image" src="../img/admin/list-next.gif" onclick="getE('submitFilterParcelHistories').value=;{$page|escape:'htmlall':'UTF-8' + 1}"/>
|
||||
<input type="image" src="../img/admin/list-next2.gif" onclick="getE('submitFilterParcelHistories').value=;{$total_pages|escape:'htmlall':'UTF-8'}"/>
|
||||
{/if}
|
||||
| {l s='Display' mod='dpdpoland'}
|
||||
<select name="pagination" onchange="submit()">
|
||||
{foreach from=$pagination item=value}
|
||||
<option value="{$value|intval|escape:'htmlall':'UTF-8'}"{if $selected_pagination == $value} selected="selected" {elseif $selected_pagination == NULL && $value == $pagination[1]} selected="selected2"{/if}>{$value|intval|escape:'htmlall':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
/ {$list_total|escape:'htmlall':'UTF-8'} {l s='result(s)' mod='dpdpoland'}
|
||||
</span>
|
||||
<span class="float-right">
|
||||
<input type="submit" class="button" value="{l s='Filter' mod='dpdpoland'}" name="submitFilterButtonParcelHistories" id="submitFilterButtonParcelHistories">
|
||||
<input type="submit" class="button" value="{l s='Reset' mod='dpdpoland'}" name="submitResetParcelHistories">
|
||||
</span>
|
||||
<span class="clear"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="0" class="table ParcelHistories">
|
||||
<colgroup>
|
||||
<col width="100px">
|
||||
<col width="100px">
|
||||
<col width="140px">
|
||||
<col width="140px">
|
||||
<col width="80px">
|
||||
<col width="100px">
|
||||
<col>
|
||||
<col width="140px">
|
||||
<col width="30px">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr class="nodrag nodrop titles-row">
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Order ID' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=id_order&ParcelHistoriesOrderWay=desc">
|
||||
{if $order_by == 'id_order' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=id_order&ParcelHistoriesOrderWay=asc">
|
||||
{if $order_by == 'id_order' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Parcel Number' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=id_parcel&ParcelHistoriesOrderWay=desc">
|
||||
{if $order_by == 'id_parcel' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=id_parcel&ParcelHistoriesOrderWay=asc">
|
||||
{if $order_by == 'id_parcel' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Receiver' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=receiver&ParcelHistoriesOrderWay=desc">
|
||||
{if $order_by == 'receiver' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=receiver&ParcelHistoriesOrderWay=asc">
|
||||
{if $order_by == 'receiver' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Country' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=country&ParcelHistoriesOrderWay=desc">
|
||||
{if $order_by == 'country' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=country&ParcelHistoriesOrderWay=asc">
|
||||
{if $order_by == 'country' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Postal code' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=postcode&ParcelHistoriesOrderWay=desc">
|
||||
{if $order_by == 'postcode' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=postcode&ParcelHistoriesOrderWay=asc">
|
||||
{if $order_by == 'postcode' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='City' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=city&ParcelHistoriesOrderWay=desc">
|
||||
{if $order_by == 'city' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=city&ParcelHistoriesOrderWay=asc">
|
||||
{if $order_by == 'city' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Address' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=address&ParcelHistoriesOrderWay=desc">
|
||||
{if $order_by == 'address' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=address&ParcelHistoriesOrderWay=asc">
|
||||
{if $order_by == 'address' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Shipment date' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=date_add&ParcelHistoriesOrderWay=desc">
|
||||
{if $order_by == 'date_add' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=date_add&ParcelHistoriesOrderWay=asc">
|
||||
{if $order_by == 'date_add' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Actions' mod='dpdpoland'}<br>
|
||||
</span>
|
||||
<br>
|
||||
</th>
|
||||
</tr>
|
||||
<tr class="nodrag nodrop filter row_hover filter-row">
|
||||
<td class="center">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('ParcelHistoriesFilter_id_order') && Context::getContext()->cookie->ParcelHistoriesFilter_id_order}{Context::getContext()->cookie->ParcelHistoriesFilter_id_order}{/if}" name="ParcelHistoriesFilter_id_order" class="filter">
|
||||
</td>
|
||||
<td class="center">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('ParcelHistoriesFilter_id_parcel') && Context::getContext()->cookie->ParcelHistoriesFilter_id_parcel}{Context::getContext()->cookie->ParcelHistoriesFilter_id_parcel}{/if}" name="ParcelHistoriesFilter_id_parcel" class="filter">
|
||||
</td>
|
||||
<td class="right">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('ParcelHistoriesFilter_receiver') && Context::getContext()->cookie->ParcelHistoriesFilter_receiver}{Context::getContext()->cookie->ParcelHistoriesFilter_receiver}{/if}" name="ParcelHistoriesFilter_receiver" class="filter">
|
||||
</td>
|
||||
<td class="right">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('ParcelHistoriesFilter_country') && Context::getContext()->cookie->ParcelHistoriesFilter_country}{Context::getContext()->cookie->ParcelHistoriesFilter_country}{/if}" name="ParcelHistoriesFilter_country" class="filter">
|
||||
</td>
|
||||
<td class="right">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('ParcelHistoriesFilter_postcode') && Context::getContext()->cookie->ParcelHistoriesFilter_postcode}{Context::getContext()->cookie->ParcelHistoriesFilter_postcode}{/if}" name="ParcelHistoriesFilter_postcode" class="filter">
|
||||
</td>
|
||||
<td class="right">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('ParcelHistoriesFilter_city') && Context::getContext()->cookie->ParcelHistoriesFilter_city}{Context::getContext()->cookie->ParcelHistoriesFilter_city}{/if}" name="ParcelHistoriesFilter_city" class="filter">
|
||||
</td>
|
||||
<td class="right">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('ParcelHistoriesFilter_address') && Context::getContext()->cookie->ParcelHistoriesFilter_address}{Context::getContext()->cookie->ParcelHistoriesFilter_address}{/if}" name="ParcelHistoriesFilter_address" class="filter">
|
||||
</td>
|
||||
<td class="right">
|
||||
{l s='From' mod='dpdpoland'} <input type="text" value="" name="ParcelHistoriesFilter_date_add[0]" id="ParcelHistoriesFilter_date_add_0" class="filter datepicker">
|
||||
<br>
|
||||
{l s='To' mod='dpdpoland'} <input type="text" value="" name="ParcelHistoriesFilter_date_add[1]" id="ParcelHistoriesFilter_date_add_1" class="filter datepicker">
|
||||
</td>
|
||||
<td class="center">
|
||||
--
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{if isset($table_data) && $table_data}
|
||||
{section name=ii loop=$table_data}
|
||||
<tr class="row_hover" id="tr_{$smarty.section.ii.index|escape:'htmlall':'UTF-8' + 1}_{$table_data[ii].id_order|escape:'htmlall':'UTF-8'}_0">
|
||||
<td class="center">
|
||||
{if $table_data[ii].id_order}
|
||||
{$table_data[ii].id_order|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].id_parcel}
|
||||
{$table_data[ii].id_parcel|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].receiver}
|
||||
{$table_data[ii].receiver|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].country}
|
||||
{$table_data[ii].country|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].postcode}
|
||||
{$table_data[ii].postcode|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].city}
|
||||
{$table_data[ii].city|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].address}
|
||||
{$table_data[ii].address|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].date_add && $table_data[ii].date_add != '0000-00-00 00:00:00'}
|
||||
{$table_data[ii].date_add|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center parcel-history-list-buttons">
|
||||
<a target="_blank" title="{l s='View' mod='dpdpoland'}" href="{$tracking_link|escape:'htmlall':'UTF-8'}{$table_data[ii].id_parcel|escape:'htmlall':'UTF-8'}">
|
||||
<img alt="{l s='View' mod='dpdpoland'}" src="../img/admin/details.gif">
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/section}
|
||||
{else}
|
||||
<tr>
|
||||
<td colspan="9" class="center">
|
||||
{l s='No parcels history' mod='dpdpoland'}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
@@ -0,0 +1,277 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$("table.ParcelHistories .datepicker").datepicker({
|
||||
prevText: '',
|
||||
nextText: '',
|
||||
dateFormat: 'yy-mm-dd'
|
||||
});
|
||||
|
||||
$('table#parcel_history_list .filter').keypress(function(event){
|
||||
formSubmit(event, 'submitFilterButtonParcelHistories');
|
||||
})
|
||||
});
|
||||
</script>
|
||||
|
||||
<form id="parcels_history_form" class="form-horizontal clearfix" action="{$full_url|escape:'htmlall':'UTF-8'}" method="post">
|
||||
<input type="hidden" value="0" name="submitFilterButtonParcelHistories" id="submitFilterParcelHistories" />
|
||||
<div class="panel col-lg-12">
|
||||
<div class="panel-heading">
|
||||
{l s='Parcels history' mod='dpdpoland'}
|
||||
<span class="badge">{$list_total|escape:'htmlall':'UTF-8'}</span>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive clearfix">
|
||||
<table id="packages" class="table ParcelHistories">
|
||||
<thead>
|
||||
<tr class="nodrag nodrop">
|
||||
<th class="fixed-width-xs center">
|
||||
<span class="title_box{if $order_by == 'id_order'} active{/if}">
|
||||
{l s='Order ID' mod='dpdpoland'}
|
||||
<a{if $order_by == 'id_order' && $order_way == 'desc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=id_order&ParcelHistoriesOrderWay=desc">
|
||||
<i class="icon-caret-down"></i>
|
||||
</a>
|
||||
<a{if $order_by == 'id_order' && $order_way == 'asc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=id_order&ParcelHistoriesOrderWay=asc">
|
||||
<i class="icon-caret-up"></i>
|
||||
</a>
|
||||
</span>
|
||||
</th>
|
||||
<th class="left">
|
||||
<span class="title_box{if $order_by == 'id_parcel'} active{/if}">
|
||||
{l s='Parcel Number' mod='dpdpoland'}
|
||||
<a{if $order_by == 'id_parcel' && $order_way == 'desc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=id_parcel&ParcelHistoriesOrderWay=desc">
|
||||
<i class="icon-caret-down"></i>
|
||||
</a>
|
||||
<a{if $order_by == 'id_parcel' && $order_way == 'asc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=id_parcel&ParcelHistoriesOrderWay=asc">
|
||||
<i class="icon-caret-up"></i>
|
||||
</a>
|
||||
</span>
|
||||
</th>
|
||||
<th>
|
||||
<span class="title_box{if $order_by == 'receiver'} active{/if}">
|
||||
{l s='Receiver' mod='dpdpoland'}
|
||||
<a{if $order_by == 'receiver' && $order_way == 'desc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=receiver&ParcelHistoriesOrderWay=desc">
|
||||
<i class="icon-caret-down"></i>
|
||||
</a>
|
||||
<a{if $order_by == 'receiver' && $order_way == 'asc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=receiver&ParcelHistoriesOrderWay=asc">
|
||||
<i class="icon-caret-up"></i>
|
||||
</a>
|
||||
</span>
|
||||
</th>
|
||||
<th class="left">
|
||||
<span class="title_box{if $order_by == 'country'} active{/if}">
|
||||
{l s='Country' mod='dpdpoland'}
|
||||
<a{if $order_by == 'country' && $order_way == 'desc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=country&ParcelHistoriesOrderWay=desc">
|
||||
<i class="icon-caret-down"></i>
|
||||
</a>
|
||||
<a{if $order_by == 'country' && $order_way == 'asc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=country&ParcelHistoriesOrderWay=asc">
|
||||
<i class="icon-caret-up"></i>
|
||||
</a>
|
||||
</span>
|
||||
</th>
|
||||
<th class="fixed-width-xs center">
|
||||
<span class="title_box{if $order_by == 'postcode'} active{/if}">
|
||||
{l s='Postal code' mod='dpdpoland'}
|
||||
<a{if $order_by == 'postcode' && $order_way == 'desc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=postcode&ParcelHistoriesOrderWay=desc">
|
||||
<i class="icon-caret-down"></i>
|
||||
</a>
|
||||
<a{if $order_by == 'postcode' && $order_way == 'asc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=postcode&ParcelHistoriesOrderWay=asc">
|
||||
<i class="icon-caret-up"></i>
|
||||
</a>
|
||||
</span>
|
||||
</th>
|
||||
<th>
|
||||
<span class="title_box{if $order_by == 'city'} active{/if}">
|
||||
{l s='City' mod='dpdpoland'}
|
||||
<a{if $order_by == 'city' && $order_way == 'desc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=city&ParcelHistoriesOrderWay=desc">
|
||||
<i class="icon-caret-down"></i>
|
||||
</a>
|
||||
<a{if $order_by == 'city' && $order_way == 'asc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=city&ParcelHistoriesOrderWay=asc">
|
||||
<i class="icon-caret-up"></i>
|
||||
</a>
|
||||
</span>
|
||||
</th>
|
||||
<th class="fixed-width-lg center">
|
||||
<span class="title_box{if $order_by == 'address'} active{/if}">
|
||||
{l s='Address' mod='dpdpoland'}
|
||||
<a{if $order_by == 'address' && $order_way == 'desc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=address&ParcelHistoriesOrderWay=desc">
|
||||
<i class="icon-caret-down"></i>
|
||||
</a>
|
||||
<a{if $order_by == 'address' && $order_way == 'asc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=address&ParcelHistoriesOrderWay=asc">
|
||||
<i class="icon-caret-up"></i>
|
||||
</a>
|
||||
</span>
|
||||
</th>
|
||||
<th class="fixed-width-lg text-right">
|
||||
<span class="title_box{if $order_by == 'date_add'} active{/if}">
|
||||
{l s='Shipment date' mod='dpdpoland'}
|
||||
<a{if $order_by == 'date_add' && $order_way == 'desc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=date_add&ParcelHistoriesOrderWay=desc">
|
||||
<i class="icon-caret-down"></i>
|
||||
</a>
|
||||
<a{if $order_by == 'date_add' && $order_way == 'asc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&ParcelHistoriesOrderBy=date_add&ParcelHistoriesOrderWay=asc">
|
||||
<i class="icon-caret-up"></i>
|
||||
</a>
|
||||
</span>
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr class="nodrag nodrop filter row_hover">
|
||||
<th class="center">
|
||||
<input class="filter" type="text" value="{if Context::getContext()->cookie->__isset('ParcelHistoriesFilter_id_order') && Context::getContext()->cookie->ParcelHistoriesFilter_id_order}{Context::getContext()->cookie->ParcelHistoriesFilter_id_order}{/if}" name="ParcelHistoriesFilter_id_order" />
|
||||
</th>
|
||||
<th>
|
||||
<input class="filter" type="text" value="{if Context::getContext()->cookie->__isset('ParcelHistoriesFilter_id_parcel') && Context::getContext()->cookie->ParcelHistoriesFilter_id_parcel}{Context::getContext()->cookie->ParcelHistoriesFilter_id_parcel}{/if}" name="ParcelHistoriesFilter_id_parcel">
|
||||
</th>
|
||||
<th>
|
||||
<input class="filter" type="text" value="{if Context::getContext()->cookie->__isset('ParcelHistoriesFilter_receiver') && Context::getContext()->cookie->ParcelHistoriesFilter_receiver}{Context::getContext()->cookie->ParcelHistoriesFilter_receiver}{/if}" name="ParcelHistoriesFilter_receiver">
|
||||
</th>
|
||||
<th>
|
||||
<input class="filter" type="text" value="{if Context::getContext()->cookie->__isset('ParcelHistoriesFilter_country') && Context::getContext()->cookie->ParcelHistoriesFilter_country}{Context::getContext()->cookie->ParcelHistoriesFilter_country}{/if}" name="ParcelHistoriesFilter_country">
|
||||
</th>
|
||||
<th>
|
||||
<input class="filter" type="text" value="{if Context::getContext()->cookie->__isset('ParcelHistoriesFilter_postcode') && Context::getContext()->cookie->ParcelHistoriesFilter_postcode}{Context::getContext()->cookie->ParcelHistoriesFilter_postcode}{/if}" name="ParcelHistoriesFilter_postcode">
|
||||
</th>
|
||||
<th>
|
||||
<input class="filter" type="text" value="{if Context::getContext()->cookie->__isset('ParcelHistoriesFilter_city') && Context::getContext()->cookie->ParcelHistoriesFilter_city}{Context::getContext()->cookie->ParcelHistoriesFilter_city}{/if}" name="ParcelHistoriesFilter_city">
|
||||
</th>
|
||||
<th>
|
||||
<input class="filter" type="text" value="{if Context::getContext()->cookie->__isset('ParcelHistoriesFilter_address') && Context::getContext()->cookie->ParcelHistoriesFilter_address}{Context::getContext()->cookie->ParcelHistoriesFilter_address}{/if}" name="ParcelHistoriesFilter_address">
|
||||
</th>
|
||||
<th class="text-right">
|
||||
<div class="date_range row">
|
||||
<div class="input-group fixed-width-md">
|
||||
<input type="text" placeholder="{l s='From' mod='dpdpoland'}" name="ParcelHistoriesFilter_date_add[0]" id="ParcelHistoriesFilter_date_add_0" class="filter datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="icon-calendar"></i>
|
||||
</span>
|
||||
</div>
|
||||
<div class="input-group fixed-width-md">
|
||||
<input type="text" placeholder="{l s='To' mod='dpdpoland'}" name="ParcelHistoriesFilter_date_add[1]" id="ParcelHistoriesFilter_date_add_1" class="filter datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="icon-calendar"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</th>
|
||||
<th class="actions">
|
||||
<span class="pull-right">
|
||||
<button id="submitFilterButtonParcelHistories" class="btn btn-default" data-list-id="ParcelHistories" name="submitFilter" type="submit">
|
||||
<i class="icon-search"></i>
|
||||
{l s='Search' mod='dpdpoland'}
|
||||
</button>
|
||||
{if $filters_has_value}
|
||||
<button type="submit" name="submitResetParcelHistories" class="btn btn-warning">
|
||||
<i class="icon-eraser"></i> {l s='Reset' mod='dpdpoland'}
|
||||
</button>
|
||||
{/if}
|
||||
</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{if isset($table_data) && $table_data}
|
||||
{section name=ii loop=$table_data}
|
||||
<tr id="tr__{$table_data[ii].id_order|escape:'htmlall':'UTF-8'}_0" class="odd">
|
||||
<td class="center">
|
||||
{if $table_data[ii].id_order}
|
||||
{$table_data[ii].id_order|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
{if $table_data[ii].id_parcel}
|
||||
{$table_data[ii].id_parcel|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
{if $table_data[ii].receiver}
|
||||
{$table_data[ii].receiver|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].country}
|
||||
{$table_data[ii].country|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
{if $table_data[ii].postcode}
|
||||
{$table_data[ii].postcode|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
{if $table_data[ii].city}
|
||||
{$table_data[ii].city|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="fixed-width-lg center">
|
||||
{if $table_data[ii].address}
|
||||
{$table_data[ii].address|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="pointer center">
|
||||
{if $table_data[ii].date_add && $table_data[ii].date_add != '0000-00-00 00:00:00'}
|
||||
{$table_data[ii].date_add|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<div class="btn-group pull-right">
|
||||
<a target="_blank" class="btn btn-default" title="View" href="{$tracking_link|escape:'htmlall':'UTF-8'}{$table_data[ii].id_parcel|escape:'htmlall':'UTF-8'}">
|
||||
<i class="icon-search-plus"></i>
|
||||
{l s='View' mod='dpdpoland'}
|
||||
</a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/section}
|
||||
{else}
|
||||
<tr>
|
||||
<td colspan="9" class="list-empty">
|
||||
<div class="list-empty-msg">
|
||||
<i class="icon-warning-sign list-empty-icon"></i>
|
||||
{l s='No parcels history' mod='dpdpoland'}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
|
||||
</div>
|
||||
{include file=$smarty.const._DPDPOLAND_TPL_DIR_|cat:'admin/_pagination_16.tpl' identifier='ParcelHistories'}
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -0,0 +1,67 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
<table cellspacing="0" cellpadding="0" class="table document numbers-table">
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
<col>
|
||||
<col>
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr class="nodrag nodrop titles-row">
|
||||
<th class="center">
|
||||
<span class="title_box">{l s='Client number' mod='dpdpoland'}</span>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">{l s='Client name' mod='dpdpoland'}</span>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">{l s='Default' mod='dpdpoland'}</span>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box"></span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{if isset($payer_numbers) && !empty($payer_numbers)}
|
||||
{section name=ii loop=$payer_numbers}
|
||||
<tr>
|
||||
<td class="center">
|
||||
{$payer_numbers[ii].payer_number|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td class="center">
|
||||
{$payer_numbers[ii].name|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td class="center">
|
||||
<input type="radio" name="{DpdPolandConfiguration::CLIENT_NUMBER|escape:'htmlall':'UTF-8'}" value="{$payer_numbers[ii].payer_number|escape:'htmlall':'UTF-8'}" {if DpdPoland::getInputValue(DpdPolandConfiguration::CLIENT_NUMBER, $settings->client_number) == $payer_numbers[ii].payer_number|escape:'htmlall':'UTF-8'}checked="checked"{/if} />
|
||||
</td>
|
||||
<td class="center">
|
||||
<img class="payer-number-delete-button" title="{l s='Delete' mod='dpdpoland'}" onclick="if (confirm('{l s='Delete selected client numbers?' mod='dpdpoland'}{$payer_numbers[ii].payer_number|escape:'htmlall':'UTF-8'}')){ deleteClientNumber('{$payer_numbers[ii].id_dpdpoland_payer_number|escape:'htmlall':'UTF-8'}'); }else{ return false; }" alt="{l s='Delete' mod='dpdpoland'}" src="../img/admin/delete.gif">
|
||||
</td>
|
||||
</tr>
|
||||
{/section}
|
||||
{else}
|
||||
<tr>
|
||||
<td colspan="4" class="center">
|
||||
{l s='No numbers' mod='dpdpoland'}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</tbody>
|
||||
</table>
|
||||
482
modules/dpdpoland/views/templates/admin/pickup_history_list.tpl
Normal file
482
modules/dpdpoland/views/templates/admin/pickup_history_list.tpl
Normal file
@@ -0,0 +1,482 @@
|
||||
<script>
|
||||
var dpdpoland_packages_ids = "{Context::getContext()->cookie->dpdpoland_packages_ids|escape:'htmlall':'UTF-8'}";
|
||||
|
||||
$(document).ready(function () {
|
||||
$("table .datepicker").datepicker({
|
||||
prevText: '',
|
||||
nextText: '',
|
||||
dateFormat: 'yy-mm-dd'
|
||||
});
|
||||
|
||||
$('table#packages_list .filter').keypress(function (event) {
|
||||
formSubmit(event, 'submitFilterButtonPackages');
|
||||
});
|
||||
|
||||
if (dpdpoland_packages_ids) {
|
||||
window.location = window.location + '&printManifest';
|
||||
}
|
||||
$('table#sender_address_list .filter').keypress(function (event) {
|
||||
formSubmit(event, 'submitFilterButtonPickupHistory');
|
||||
})
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<form class="form" action="{$full_url|escape:'htmlall':'UTF-8'}" method="post">
|
||||
<input type="hidden" value="0" name="submitFilterPickupHistory" id="submitFilterPickupHistory">
|
||||
<table id="sender_address_list" name="list_table" class="table_grid">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="bottom">
|
||||
<span class="float-left">
|
||||
{if $page > 1}
|
||||
<input type="image" src="../img/admin/list-prev2.gif"
|
||||
onclick="getE('submitFilterPickupHistory').value=1"/>
|
||||
|
||||
|
||||
|
||||
|
||||
<input type="image" src="../img/admin/list-prev.gif"
|
||||
onclick="getE('submitFilterPickupHistory').value=;{$page|escape:'htmlall':'UTF-8' - 1}"/>
|
||||
{/if}
|
||||
{l s='Page' mod='dpdpoland'} <b>{$page|escape:'htmlall':'UTF-8'}</b> / {$total_pages|escape:'htmlall':'UTF-8'}
|
||||
{if $page < $total_pages}
|
||||
<input type="image" src="../img/admin/list-next.gif"
|
||||
onclick="getE('submitFilterPickupHistory').value=;{$page|escape:'htmlall':'UTF-8' + 1}"/>
|
||||
|
||||
|
||||
|
||||
|
||||
<input type="image" src="../img/admin/list-next2.gif"
|
||||
onclick="getE('submitFilterPickupHistory').value=;{$total_pages|escape:'htmlall':'UTF-8'}"/>
|
||||
{/if}
|
||||
| {l s='Display' mod='dpdpoland'}
|
||||
<select name="pagination" onchange="submit()">
|
||||
{foreach from=$pagination item=value}
|
||||
<option value="{$value|intval|escape:'htmlall':'UTF-8'}"{if $selected_pagination == $value} selected="selected" {elseif $selected_pagination == NULL && $value == $pagination[1]} selected="selected2"{/if}>{$value|intval|escape:'htmlall':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
/ {$list_total|escape:'htmlall':'UTF-8'} {l s='result(s)' mod='dpdpoland'}
|
||||
</span>
|
||||
<span class="float-right">
|
||||
<input type="submit" class="button" value="{l s='Filter' mod='dpdpoland'}"
|
||||
name="submitFilterButtonPickupHistory" id="submitFilterButtonPickupHistory">
|
||||
<input type="submit" class="button" value="{l s='Reset' mod='dpdpoland'}"
|
||||
name="submitResetPickupHistory">
|
||||
</span>
|
||||
<span class="clear"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="0" class="table sender_address_list">
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
<col>
|
||||
<col>
|
||||
<col width="30px">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr class="nodrag nodrop titles-row">
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Order number' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=order_number&PickupHistoryOrderWay=desc">
|
||||
{if $order_by == 'order_number' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=order_number&PickupHistoryOrderWay=asc">
|
||||
{if $order_by == 'order_number' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Address' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=sender_address&PickupHistoryOrderWay=desc">
|
||||
{if $order_by == 'sender_address' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=sender_address&PickupHistoryOrderWay=asc">
|
||||
{if $order_by == 'sender_address' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Company' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=sender_company&PickupHistoryOrderWay=desc">
|
||||
{if $order_by == 'sender_company' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=sender_company&PickupHistoryOrderWay=asc">
|
||||
{if $order_by == 'sender_company' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Name' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=sender_name&PickupHistoryOrderWay=desc">
|
||||
{if $order_by == 'sender_name' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=sender_name&PickupHistoryOrderWay=asc">
|
||||
{if $order_by == 'sender_name' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Phone' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=sender_phone&PickupHistoryOrderWay=desc">
|
||||
{if $order_by == 'sender_phone' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=sender_phone&PickupHistoryOrderWay=asc">
|
||||
{if $order_by == 'sender_phone' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Type' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=type&PickupHistoryOrderWay=desc">
|
||||
{if $order_by == 'type' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=type&PickupHistoryOrderWay=asc">
|
||||
{if $order_by == 'type' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Envelope' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=envelope&PickupHistoryOrderWay=desc">
|
||||
{if $order_by == 'envelope' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=envelope&PickupHistoryOrderWay=asc">
|
||||
{if $order_by == 'envelope' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Package' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=package&PickupHistoryOrderWay=desc">
|
||||
{if $order_by == 'package' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=package&PickupHistoryOrderWay=asc">
|
||||
{if $order_by == 'package' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Pallet' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=pallet&PickupHistoryOrderWay=desc">
|
||||
{if $order_by == 'pallet' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=pallet&PickupHistoryOrderWay=asc">
|
||||
{if $order_by == 'pallet' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Pickup time' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=pickup_time&PickupHistoryOrderWay=desc">
|
||||
{if $order_by == 'pickup_time' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=pickup_time&PickupHistoryOrderWay=asc">
|
||||
{if $order_by == 'pickup_time' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Pickup date' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=pickup_date&PickupHistoryOrderWay=desc">
|
||||
{if $order_by == 'pickup_date' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=pickup_date&PickupHistoryOrderWay=asc">
|
||||
{if $order_by == 'pickup_date' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Actions' mod='dpdpoland'}<br>
|
||||
</span>
|
||||
<br>
|
||||
</th>
|
||||
</tr>
|
||||
<tr class="nodrag nodrop filter row_hover filter-row">
|
||||
<td class="center">
|
||||
<input type="text"
|
||||
value="{if Context::getContext()->cookie->__isset('PickupHistoryFilter_order_number') && Context::getContext()->cookie->PickupHistoryFilter_order_number}{Context::getContext()->cookie->PickupHistoryFilter_order_number}{/if}"
|
||||
name="PickupHistoryFilter_order_number" class="filter">
|
||||
</td>
|
||||
|
||||
<td class="center">
|
||||
<input type="text"
|
||||
value="{if Context::getContext()->cookie->__isset('PickupHistoryFilter_sender_address') && Context::getContext()->cookie->PickupHistoryFilter_sender_address}{Context::getContext()->cookie->PickupHistoryFilter_sender_address}{/if}"
|
||||
name="PickupHistoryFilter_sender_address" class="filter">
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input type="text"
|
||||
value="{if Context::getContext()->cookie->__isset('PickupHistoryFilter_sender_company') && Context::getContext()->cookie->PickupHistoryFilter_sender_company}{Context::getContext()->cookie->PickupHistoryFilter_sender_company}{/if}"
|
||||
name="PickupHistoryFilter_sender_company" class="filter">
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input type="text"
|
||||
value="{if Context::getContext()->cookie->__isset('PickupHistoryFilter_sender_name') && Context::getContext()->cookie->PickupHistoryFilter_sender_name}{Context::getContext()->cookie->PickupHistoryFilter_sender_name}{/if}"
|
||||
name="PickupHistoryFilter_sender_name" class="filter">
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input type="text"
|
||||
value="{if Context::getContext()->cookie->__isset('PickupHistoryFilter_sender_phone') && Context::getContext()->cookie->PickupHistoryFilter_sender_phone}{Context::getContext()->cookie->PickupHistoryFilter_sender_phone}{/if}"
|
||||
name="PickupHistoryFilter_sender_phone" class="filter">
|
||||
</td>
|
||||
<td>
|
||||
<input type="text"
|
||||
value="{if Context::getContext()->cookie->__isset('PickupHistoryFilter_type') && Context::getContext()->cookie->PickupHistoryFilter_type}{Context::getContext()->cookie->PickupHistoryFilter_type}{/if}"
|
||||
name="PickupHistoryFilter_type" class="filter">
|
||||
</td>
|
||||
<td>
|
||||
<input type="text"
|
||||
value="{if Context::getContext()->cookie->__isset('PickupHistoryFilter_envelope') && Context::getContext()->cookie->PickupHistoryFilter_envelope}{Context::getContext()->cookie->PickupHistoryFilter_envelope}{/if}"
|
||||
name="PickupHistoryFilter_envelope" class="filter">
|
||||
</td>
|
||||
<td>
|
||||
<input type="text"
|
||||
value="{if Context::getContext()->cookie->__isset('PickupHistoryFilter_package') && Context::getContext()->cookie->PickupHistoryFilter_package}{Context::getContext()->cookie->PickupHistoryFilter_package}{/if}"
|
||||
name="PickupHistoryFilter_package" class="filter">
|
||||
</td>
|
||||
<td>
|
||||
<input type="text"
|
||||
value="{if Context::getContext()->cookie->__isset('PickupHistoryFilter_pallet') && Context::getContext()->cookie->PickupHistoryFilter_pallet}{Context::getContext()->cookie->PickupHistoryFilter_pallet}{/if}"
|
||||
name="PickupHistoryFilter_pallet" class="filter">
|
||||
</td>
|
||||
<td>
|
||||
<input type="text"
|
||||
value="{if Context::getContext()->cookie->__isset('PickupHistoryFilter_pickup_time') && Context::getContext()->cookie->PickupHistoryFilter_pickup_time}{Context::getContext()->cookie->PickupHistoryFilter_pickup_time}{/if}"
|
||||
name="PickupHistoryFilter_pickup_time" class="filter">
|
||||
</td>
|
||||
<td class="right">
|
||||
{l s='From' mod='dpdpoland'} <input type="text" value=""
|
||||
name="PickupHistoryFilter_pickup_date[0]"
|
||||
id="PackagesFilter_pickup_date_0"
|
||||
class="filter datepicker">
|
||||
<br>
|
||||
{l s='To' mod='dpdpoland'} <input type="text" value=""
|
||||
name="PickupHistoryFilter_pickup_date[1]"
|
||||
id="PackagesFilter_pickup_date_1"
|
||||
class="filter datepicker">
|
||||
</td>
|
||||
<td>
|
||||
--
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{if isset($table_data) && $table_data}
|
||||
{section name=ii loop=$table_data}
|
||||
<tr class="row_hover"
|
||||
id="tr_{$smarty.section.ii.index|escape:'htmlall':'UTF-8' + 1}_{$table_data[ii].id_pickup_history|escape:'htmlall':'UTF-8'}_0">
|
||||
<td class="center">
|
||||
{if $table_data[ii].order_number}
|
||||
{$table_data[ii].order_number|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="text-left">
|
||||
{if $table_data[ii].sender_address}
|
||||
{$table_data[ii].sender_address|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="text-left">
|
||||
{if $table_data[ii].sender_company}
|
||||
{$table_data[ii].sender_company|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="text-left">
|
||||
{if $table_data[ii].sender_name}
|
||||
{$table_data[ii].sender_name|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].sender_phone}
|
||||
{$table_data[ii].sender_phone|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].type}
|
||||
{if $table_data[ii].type == 'DOMESTIC'}
|
||||
{l s='DOMESTIC' mod='dpdpoland'}
|
||||
{elseif $table_data[ii].type == 'INTERNATIONAL'}
|
||||
{l s='INTERNATIONAL' mod='dpdpoland'}
|
||||
{/if}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].envelope}
|
||||
{$table_data[ii].envelope|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].package}
|
||||
{$table_data[ii].package|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].pallet}
|
||||
{$table_data[ii].pallet|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].pickup_time}
|
||||
{$table_data[ii].pickup_time|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].pickup_date}
|
||||
{$table_data[ii].pickup_date|date_format:'%Y-%m-%d'|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center sender_address-list-buttons"></td>
|
||||
</tr>
|
||||
{/section}
|
||||
{else}
|
||||
<tr>
|
||||
<td colspan="12" class="center">
|
||||
{l s='No records found' mod='dpdpoland'}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
@@ -0,0 +1,338 @@
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$("table#pickup_history_list .datepicker").datepicker({
|
||||
prevText: '',
|
||||
nextText: '',
|
||||
dateFormat: 'yy-mm-dd'
|
||||
});
|
||||
|
||||
$('table#pickup_history_list .filter').keypress(function (event) {
|
||||
formSubmit(event, 'submitFilterButtonPickupHistory');
|
||||
});
|
||||
|
||||
$('table#packages_list .filter').keypress(function (e) {
|
||||
var key = (e.keyCode ? e.keyCode : e.which);
|
||||
if (key == 13) {
|
||||
e.preventDefault();
|
||||
formSubmit(event, 'submitFilterButtonPickupHistory');
|
||||
}
|
||||
});
|
||||
|
||||
$('#submitFilterButtonPickupHistory').click(function () {
|
||||
$('#submitFilterPickupHistory').val(1);
|
||||
$('#pickup_historyes').submit();
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
<form id="pickup_historyes" class="form-horizontal clearfix" action="{$full_url|escape:'htmlall':'UTF-8'}"
|
||||
method="post">
|
||||
<input type="hidden" value="0" name="submitFilterButtonPickupHistory" id="submitFilterPickupHistory">
|
||||
<div class="panel col-lg-12">
|
||||
<div class="panel-heading">
|
||||
{l s='Pickup history' mod='dpdpoland'}
|
||||
<span class="badge">
|
||||
{$list_total|escape:'htmlall':'UTF-8'}
|
||||
</span>
|
||||
</div>
|
||||
<div class="table-responsive clearfix">
|
||||
<table class="table" id="pickup_history_list" name="list_table">
|
||||
<thead>
|
||||
<tr class="nodrag nodrop">
|
||||
|
||||
<th class="">
|
||||
<span class="title_box{if $order_by == 'order_number'} active{/if}">{l s='Pickup number' mod='dpdpoland'}
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=order_number&PickupHistoryOrderWay=desc"{if $order_by == 'order_number' && $order_way == 'desc'} class="active"{/if}><i
|
||||
class="icon-caret-down"></i></a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=order_number&PickupHistoryOrderWay=asc"{if $order_by == 'order_number' && $order_way == 'asc'} class="active"{/if}><i
|
||||
class="icon-caret-up"></i></a>
|
||||
</span>
|
||||
</th>
|
||||
<th class="">
|
||||
<span class="title_box{if $order_by == 'sender_address'} active{/if}">{l s='Address' mod='dpdpoland'}
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=sender_address&PickupHistoryOrderWay=desc"{if $order_by == 'sender_address' && $order_way == 'desc'} class="active"{/if}><i
|
||||
class="icon-caret-down"></i></a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=sender_address&PickupHistoryOrderWay=asc"{if $order_by == 'sender_address' && $order_way == 'asc'} class="active"{/if}><i
|
||||
class="icon-caret-up"></i></a>
|
||||
</span>
|
||||
</th>
|
||||
<th class="left">
|
||||
<span class="title_box{if $order_by == 'sender_company'} active{/if}">{l s='Company' mod='dpdpoland'}
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=sender_company&PickupHistoryOrderWay=desc"{if $order_by == 'sender_company' && $order_way == 'desc'} class="active"{/if}><i
|
||||
class="icon-caret-down"></i></a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=sender_company&PickupHistoryOrderWay=asc"{if $order_by == 'sender_company' && $order_way == 'asc'} class="active"{/if}><i
|
||||
class="icon-caret-up"></i></a>
|
||||
</span>
|
||||
</th>
|
||||
<th class="">
|
||||
<span class="title_box{if $order_by == 'sender_name'} active{/if}">{l s='Name' mod='dpdpoland'}
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=sender_name&PickupHistoryOrderWay=desc"{if $order_by == 'sender_name' && $order_way == 'desc'} class="active"{/if}><i
|
||||
class="icon-caret-down"></i></a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=sender_name&PickupHistoryOrderWay=asc"{if $order_by == 'sender_name' && $order_way == 'asc'} class="active"{/if}><i
|
||||
class="icon-caret-up"></i></a>
|
||||
</span>
|
||||
</th>
|
||||
<th class="">
|
||||
<span class="title_box{if $order_by == 'sender_phone'} active{/if}">{l s='Phone' mod='dpdpoland'}
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=sender_phone&PickupHistoryOrderWay=desc"{if $order_by == 'sender_phone' && $order_way == 'desc'} class="active"{/if}><i
|
||||
class="icon-caret-down"></i></a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=sender_phone&PickupHistoryOrderWay=asc"{if $order_by == 'sender_phone' && $order_way == 'asc'} class="active"{/if}><i
|
||||
class="icon-caret-up"></i></a>
|
||||
</span>
|
||||
</th>
|
||||
<th class="">
|
||||
<span class="title_box{if $order_by == 'type'} active{/if}">{l s='Type' mod='dpdpoland'}
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=type&PickupHistoryOrderWay=desc"{if $order_by == 'type' && $order_way == 'desc'} class="active"{/if}><i
|
||||
class="icon-caret-down"></i></a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=type&PickupHistoryOrderWay=asc"{if $order_by == 'type' && $order_way == 'asc'} class="active"{/if}><i
|
||||
class="icon-caret-up"></i></a>
|
||||
</span>
|
||||
</th>
|
||||
<th class="">
|
||||
<span class="title_box{if $order_by == 'envelope'} active{/if}">{l s='Envelope' mod='dpdpoland'}
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=envelope&PickupHistoryOrderWay=desc"{if $order_by == 'envelope' && $order_way == 'desc'} class="active"{/if}><i
|
||||
class="icon-caret-down"></i></a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=envelope&PickupHistoryOrderWay=asc"{if $order_by == 'envelope' && $order_way == 'asc'} class="active"{/if}><i
|
||||
class="icon-caret-up"></i></a>
|
||||
</span>
|
||||
</th>
|
||||
<th class="">
|
||||
<span class="title_box{if $order_by == 'package'} active{/if}">{l s='Package' mod='dpdpoland'}
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=package&PickupHistoryOrderWay=desc"{if $order_by == 'package' && $order_way == 'desc'} class="active"{/if}><i
|
||||
class="icon-caret-down"></i></a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=package&PickupHistoryOrderWay=asc"{if $order_by == 'package' && $order_way == 'asc'} class="active"{/if}><i
|
||||
class="icon-caret-up"></i></a>
|
||||
</span>
|
||||
</th>
|
||||
<th class="">
|
||||
<span class="title_box{if $order_by == 'pallet'} active{/if}">{l s='Pallet' mod='dpdpoland'}
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=pallet&PickupHistoryOrderWay=desc"{if $order_by == 'pallet' && $order_way == 'desc'} class="active"{/if}><i
|
||||
class="icon-caret-down"></i></a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=pallet&PickupHistoryOrderWay=asc"{if $order_by == 'pallet' && $order_way == 'asc'} class="active"{/if}><i
|
||||
class="icon-caret-up"></i></a>
|
||||
</span>
|
||||
</th>
|
||||
<th class="">
|
||||
<span class="title_box{if $order_by == 'pickup_time'} active{/if}">{l s='Pickup time' mod='dpdpoland'}
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=pickup_time&PickupHistoryOrderWay=desc"{if $order_by == 'pickup_time' && $order_way == 'desc'} class="active"{/if}><i
|
||||
class="icon-caret-down"></i></a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=pickup_time&PickupHistoryOrderWay=asc"{if $order_by == 'pickup_time' && $order_way == 'asc'} class="active"{/if}><i
|
||||
class="icon-caret-up"></i></a>
|
||||
</span>
|
||||
</th>
|
||||
<th class="">
|
||||
<span class="title_box{if $order_by == 'pickup_date'} active{/if}">
|
||||
{l s='Pickup date' mod='dpdpoland'}
|
||||
<a{if $order_by == 'pickup_date' && $order_way == 'desc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=pickup_date&PickupHistoryOrderWay=desc">
|
||||
<i class="icon-caret-down"></i>
|
||||
</a>
|
||||
<a{if $order_by == 'pickup_date' && $order_way == 'asc'} class="active"{/if} href="{$full_url|escape:'htmlall':'UTF-8'}&PickupHistoryOrderBy=pickup_date&PickupHistoryOrderWay=asc">
|
||||
<i class="icon-caret-up"></i>
|
||||
</a>
|
||||
</span>
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
<tr class="nodrag nodrop filter row_hover">
|
||||
|
||||
<th class="center">
|
||||
<input type="text"
|
||||
value="{if Context::getContext()->cookie->__isset('PickupHistoryFilter_order_number') && Context::getContext()->cookie->PickupHistoryFilter_order_number}{Context::getContext()->cookie->PickupHistoryFilter_order_number}{/if}"
|
||||
name="PickupHistoryFilter_order_number" class="filter">
|
||||
</th>
|
||||
|
||||
<th class="center">
|
||||
<input type="text"
|
||||
value="{if Context::getContext()->cookie->__isset('PickupHistoryFilter_sender_address') && Context::getContext()->cookie->PickupHistoryFilter_sender_address}{Context::getContext()->cookie->PickupHistoryFilter_sender_address}{/if}"
|
||||
name="PickupHistoryFilter_sender_address" class="filter">
|
||||
</th>
|
||||
|
||||
<th>
|
||||
<input type="text"
|
||||
value="{if Context::getContext()->cookie->__isset('PickupHistoryFilter_sender_company') && Context::getContext()->cookie->PickupHistoryFilter_sender_company}{Context::getContext()->cookie->PickupHistoryFilter_sender_company}{/if}"
|
||||
name="PickupHistoryFilter_sender_company" class="filter">
|
||||
</th>
|
||||
|
||||
<th>
|
||||
<input type="text"
|
||||
value="{if Context::getContext()->cookie->__isset('PickupHistoryFilter_sender_name') && Context::getContext()->cookie->PickupHistoryFilter_sender_name}{Context::getContext()->cookie->PickupHistoryFilter_sender_name}{/if}"
|
||||
name="PickupHistoryFilter_sender_name" class="filter">
|
||||
</th>
|
||||
|
||||
<th>
|
||||
<input type="text"
|
||||
value="{if Context::getContext()->cookie->__isset('PickupHistoryFilter_sender_phone') && Context::getContext()->cookie->PickupHistoryFilter_sender_phone}{Context::getContext()->cookie->PickupHistoryFilter_sender_phone}{/if}"
|
||||
name="PickupHistoryFilter_sender_phone" class="filter">
|
||||
</th>
|
||||
<th>
|
||||
<input type="text"
|
||||
value="{if Context::getContext()->cookie->__isset('PickupHistoryFilter_type') && Context::getContext()->cookie->PickupHistoryFilter_type}{Context::getContext()->cookie->PickupHistoryFilter_type}{/if}"
|
||||
name="PickupHistoryFilter_type" class="filter">
|
||||
</th>
|
||||
<th>
|
||||
<input type="text"
|
||||
value="{if Context::getContext()->cookie->__isset('PickupHistoryFilter_envelope') && Context::getContext()->cookie->PickupHistoryFilter_envelope}{Context::getContext()->cookie->PickupHistoryFilter_envelope}{/if}"
|
||||
name="PickupHistoryFilter_envelope" class="filter">
|
||||
</th>
|
||||
<th>
|
||||
<input type="text"
|
||||
value="{if Context::getContext()->cookie->__isset('PickupHistoryFilter_package') && Context::getContext()->cookie->PickupHistoryFilter_package}{Context::getContext()->cookie->PickupHistoryFilter_package}{/if}"
|
||||
name="PickupHistoryFilter_package" class="filter">
|
||||
</th>
|
||||
<th>
|
||||
<input type="text"
|
||||
value="{if Context::getContext()->cookie->__isset('PickupHistoryFilter_pallet') && Context::getContext()->cookie->PickupHistoryFilter_pallet}{Context::getContext()->cookie->PickupHistoryFilter_pallet}{/if}"
|
||||
name="PickupHistoryFilter_pallet" class="filter">
|
||||
</th>
|
||||
<th>
|
||||
<input type="text"
|
||||
value="{if Context::getContext()->cookie->__isset('PickupHistoryFilter_pickup_time') && Context::getContext()->cookie->PickupHistoryFilter_pickup_time}{Context::getContext()->cookie->PickupHistoryFilter_pickup_time}{/if}"
|
||||
name="PickupHistoryFilter_pickup_time" class="filter">
|
||||
</th>
|
||||
<th class="text-right">
|
||||
<div class="date_range row">
|
||||
<div class="input-group fixed-width-md">
|
||||
<input type="text" placeholder="{l s='From' mod='dpdpoland'}"
|
||||
name="PickupHistoryFilter_pickup_date[0]" id="PickupHistoryFilter_pickup_date_0"
|
||||
class="filter datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="icon-calendar"></i>
|
||||
</span>
|
||||
</div>
|
||||
<div class="input-group fixed-width-md">
|
||||
<input type="text" placeholder="{l s='To' mod='dpdpoland'}"
|
||||
name="PickupHistoryFilter_pickup_date[1]" id="PickupHistoryFilter_pickup_date_1"
|
||||
class="filter datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="icon-calendar"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</th>
|
||||
|
||||
|
||||
<th class="actions text-center">
|
||||
<span class="pull-right">
|
||||
<button id="submitFilterButtonPickupHistory" class="btn btn-default"
|
||||
data-list-id="pickup_history_list" name="submitFilter" type="submit">
|
||||
<i class="icon-search"></i>
|
||||
{l s='Search' mod='dpdpoland'}
|
||||
</button>
|
||||
{if $filters_has_value}
|
||||
<button type="submit" name="submitResetPickupHistory" class="btn btn-warning">
|
||||
<i class="icon-eraser"></i> {l s='Reset' mod='dpdpoland'}
|
||||
</button>
|
||||
{/if}
|
||||
</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{if isset($table_data) && $table_data}
|
||||
{section name=ii loop=$table_data}
|
||||
<tr class="odd"
|
||||
id="tr_{$smarty.section.ii.index|escape:'htmlall':'UTF-8' + 1}_{$table_data[ii].id_pickup_history|escape:'htmlall':'UTF-8'}_0">
|
||||
|
||||
<td class="center">
|
||||
{if $table_data[ii].order_number}
|
||||
{$table_data[ii].order_number|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="text-left">
|
||||
{if $table_data[ii].sender_address}
|
||||
{$table_data[ii].sender_address|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="text-left">
|
||||
{if $table_data[ii].sender_company}
|
||||
{$table_data[ii].sender_company|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="text-left">
|
||||
{if $table_data[ii].sender_name}
|
||||
{$table_data[ii].sender_name|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].sender_phone}
|
||||
{$table_data[ii].sender_phone|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].type}
|
||||
{if $table_data[ii].type == 'DOMESTIC'}
|
||||
{l s='DOMESTIC' mod='dpdpoland'}
|
||||
{elseif $table_data[ii].type == 'INTERNATIONAL'}
|
||||
{l s='INTERNATIONAL' mod='dpdpoland'}
|
||||
{/if}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].envelope}
|
||||
{$table_data[ii].envelope|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].package}
|
||||
{$table_data[ii].package|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].pallet}
|
||||
{$table_data[ii].pallet|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].pickup_time}
|
||||
{$table_data[ii].pickup_time|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].pickup_date}
|
||||
{$table_data[ii].pickup_date|date_format:'%Y-%m-%d'|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="text-right sender-address-list-buttons"></td>
|
||||
</tr>
|
||||
{/section}
|
||||
{else}
|
||||
<tr>
|
||||
<td colspan="12" class="list-empty">
|
||||
<div class="list-empty-msg">
|
||||
<i class="icon-warning-sign list-empty-icon"></i>
|
||||
{l s='No records found' mod='dpdpoland'}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</tbody>
|
||||
</table>
|
||||
{include file=$smarty.const._DPDPOLAND_TPL_DIR_|cat:'admin/_pagination_16.tpl' identifier='PickupHistory'}
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
107
modules/dpdpoland/views/templates/admin/sender_address_form.tpl
Normal file
107
modules/dpdpoland/views/templates/admin/sender_address_form.tpl
Normal file
@@ -0,0 +1,107 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
<form id="sender_address_form" class="defaultForm" action="{$saveAction|escape:'htmlall':'UTF-8'}&menu=sender_address_form" method="post" enctype="multipart/form-data">
|
||||
<fieldset id="credentials">
|
||||
<legend>
|
||||
<img src="{$smarty.const._DPDPOLAND_IMG_URI_|escape:'htmlall':'UTF-8'}settings.png" alt="{l s='Sender address' mod='dpdpoland'}" />
|
||||
{l s='Sender address' mod='dpdpoland'}
|
||||
</legend>
|
||||
|
||||
<label>
|
||||
{l s='Alias:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input id="alias_input" type="text" name="alias" value="{$object->alias}" />
|
||||
<sup>*</sup>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label>
|
||||
{l s='Company:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input id="company_input" type="text" name="company" value="{$object->company}" />
|
||||
<sup>*</sup>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label>
|
||||
{l s='Name:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input id="name_input" type="text" name="name" value="{$object->name}" />
|
||||
<sup>*</sup>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label>
|
||||
{l s='Phone:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input id="phone_input" type="text" name="phone" value="{$object->phone}" />
|
||||
<sup>*</sup>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label>
|
||||
{l s='Address:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input id="address_input" type="text" name="address" value="{$object->address}" />
|
||||
<sup>*</sup>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label>
|
||||
{l s='City:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input id="city_input" type="text" name="city" value="{$object->city}" />
|
||||
<sup>*</sup>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label>
|
||||
{l s='Email:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input id="email_input" type="text" name="email" value="{$object->email}" />
|
||||
<sup>*</sup>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<label>
|
||||
{l s='Postcode:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="margin-form">
|
||||
<input id="postcode_input" type="text" name="postcode" value="{$object->postcode}" />
|
||||
<sup>*</sup>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<input type="hidden" name="id_sender_address" value="{$object->id_sender_address|intval}" />
|
||||
|
||||
<div class="margin-form">
|
||||
<input type="submit" class="button" name="saveSenderAddress" value="{l s='Save' mod='dpdpoland'}" />
|
||||
</div>
|
||||
|
||||
<div class="small">
|
||||
<sup>*</sup> {l s='Required field' mod='dpdpoland'}
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
@@ -0,0 +1,111 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
|
||||
<script>
|
||||
var dpdpoland_16 = true;
|
||||
</script>
|
||||
|
||||
<form id="sender_address_form" class="form-horizontal" action="{$saveAction|escape:'htmlall':'UTF-8'}&menu=sender_address_form" method="post" enctype="multipart/form-data">
|
||||
<div id="credentials" class="panel">
|
||||
<div class="panel-heading">
|
||||
<i class="icon-cogs"></i>
|
||||
{l s='Sender address' mod='dpdpoland'}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3 required" for="company_input">
|
||||
{l s='Alias:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<input id="alias_input" type="text" name="alias" value="{$object->alias}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3 required" for="company_input">
|
||||
{l s='Company:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<input id="company_input" type="text" name="company" value="{$object->company}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3 required" for="name_input">
|
||||
{l s='Name:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<input id="name_input" type="text" name="name" value="{$object->name}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3 required" for="phone_input">
|
||||
{l s='Phone:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<input id="phone_input" type="text" name="phone" value="{$object->phone}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3 required" for="address_input">
|
||||
{l s='Address:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<input id="address_input" type="text" name="address" value="{$object->address}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3 required" for="city_input">
|
||||
{l s='City:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<input id="city_input" type="text" name="city" value="{$object->city}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3 required" for="email_input">
|
||||
{l s='Email:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<input id="email_input" type="text" name="email" value="{$object->email}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3 required" for="postcode_input">
|
||||
{l s='Postcode:' mod='dpdpoland'}
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<input id="postcode_input" type="text" name="postcode" value="{$object->postcode}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="id_sender_address" value="{$object->id_sender_address|intval}" />
|
||||
|
||||
<div class="panel-footer">
|
||||
<button class="btn btn-default pull-right" name="saveSenderAddress" type="submit">
|
||||
<i class="process-icon-save"></i>
|
||||
{l s='Save' mod='dpdpoland'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
289
modules/dpdpoland/views/templates/admin/sender_address_list.tpl
Normal file
289
modules/dpdpoland/views/templates/admin/sender_address_list.tpl
Normal file
@@ -0,0 +1,289 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('table#sender_address_list .filter').keypress(function(event){
|
||||
formSubmit(event, 'submitFilterButtonSenderAddress');
|
||||
})
|
||||
});
|
||||
</script>
|
||||
|
||||
<form class="form" action="{$full_url|escape:'htmlall':'UTF-8'}" method="post">
|
||||
<input type="hidden" value="0" name="submitFilterSenderAddress" id="submitFilterSenderAddress">
|
||||
<table id="sender_address_list" name="list_table" class="table_grid">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="bottom">
|
||||
<span class="float-left">
|
||||
{if $page > 1}
|
||||
<input type="image" src="../img/admin/list-prev2.gif" onclick="getE('submitFilterSenderAddress').value=1"/>
|
||||
<input type="image" src="../img/admin/list-prev.gif" onclick="getE('submitFilterSenderAddress').value=;{$page|escape:'htmlall':'UTF-8' - 1}"/>
|
||||
{/if}
|
||||
{l s='Page' mod='dpdpoland'} <b>{$page|escape:'htmlall':'UTF-8'}</b> / {$total_pages|escape:'htmlall':'UTF-8'}
|
||||
{if $page < $total_pages}
|
||||
<input type="image" src="../img/admin/list-next.gif" onclick="getE('submitFilterSenderAddress').value=;{$page|escape:'htmlall':'UTF-8' + 1}"/>
|
||||
<input type="image" src="../img/admin/list-next2.gif" onclick="getE('submitFilterSenderAddress').value=;{$total_pages|escape:'htmlall':'UTF-8'}"/>
|
||||
{/if}
|
||||
| {l s='Display' mod='dpdpoland'}
|
||||
<select name="pagination" onchange="submit()">
|
||||
{foreach from=$pagination item=value}
|
||||
<option value="{$value|intval|escape:'htmlall':'UTF-8'}"{if $selected_pagination == $value} selected="selected" {elseif $selected_pagination == NULL && $value == $pagination[1]} selected="selected2"{/if}>{$value|intval|escape:'htmlall':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
/ {$list_total|escape:'htmlall':'UTF-8'} {l s='result(s)' mod='dpdpoland'}
|
||||
</span>
|
||||
<span class="float-right">
|
||||
<input type="submit" class="button" value="{l s='Filter' mod='dpdpoland'}" name="submitFilterButtonSenderAddress" id="submitFilterButtonSenderAddress">
|
||||
<input type="submit" class="button" value="{l s='Reset' mod='dpdpoland'}" name="submitResetSenderAddress">
|
||||
</span>
|
||||
<span class="clear"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="0" class="table sender_address_list">
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
<col>
|
||||
<col>
|
||||
<col width="30px">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr class="nodrag nodrop titles-row">
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Sender address ID' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&SenderAddressOrderBy=id_sender_address&SenderAddressOrderWay=desc">
|
||||
{if $order_by == 'id_sender_address' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&SenderAddressOrderBy=id_sender_address&SenderAddressOrderWay=asc">
|
||||
{if $order_by == 'id_sender_address' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Alias' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&SenderAddressOrderBy=alias&SenderAddressOrderWay=desc">
|
||||
{if $order_by == 'alias' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&SenderAddressOrderBy=alias&SenderAddressOrderWay=asc">
|
||||
{if $order_by == 'alias' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Company' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&SenderAddressOrderBy=company&SenderAddressOrderWay=desc">
|
||||
{if $order_by == 'company' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&SenderAddressOrderBy=company&SenderAddressOrderWay=asc">
|
||||
{if $order_by == 'company' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Name' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&SenderAddressOrderBy=name&SenderAddressOrderWay=desc">
|
||||
{if $order_by == 'name' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&SenderAddressOrderBy=name&SenderAddressOrderWay=asc">
|
||||
{if $order_by == 'name' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='City' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&SenderAddressOrderBy=city&SenderAddressOrderWay=desc">
|
||||
{if $order_by == 'city' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&SenderAddressOrderBy=city&SenderAddressOrderWay=asc">
|
||||
{if $order_by == 'city' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Email' mod='dpdpoland'}
|
||||
</span>
|
||||
<br>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&SenderAddressOrderBy=email&SenderAddressOrderWay=desc">
|
||||
{if $order_by == 'email' && $order_way == 'desc'}
|
||||
<img border="0" src="../img/admin/down_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/down.gif">
|
||||
{/if}
|
||||
</a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&SenderAddressOrderBy=email&SenderAddressOrderWay=asc">
|
||||
{if $order_by == 'email' && $order_way == 'asc'}
|
||||
<img border="0" src="../img/admin/up_d.gif">
|
||||
{else}
|
||||
<img border="0" src="../img/admin/up.gif">
|
||||
{/if}
|
||||
</a>
|
||||
</th>
|
||||
<th class="center">
|
||||
<span class="title_box">
|
||||
{l s='Actions' mod='dpdpoland'}<br>
|
||||
</span>
|
||||
<br>
|
||||
</th>
|
||||
</tr>
|
||||
<tr class="nodrag nodrop filter row_hover filter-row">
|
||||
<td class="center">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('SenderAddressFilter_id_sender_address') && Context::getContext()->cookie->SenderAddressFilter_id_sender_address}{Context::getContext()->cookie->SenderAddressFilter_id_sender_address}{/if}" name="SenderAddressFilter_id_sender_address" class="filter">
|
||||
</td>
|
||||
<td class="center">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('SenderAddressFilter_alias') && Context::getContext()->cookie->SenderAddressFilter_alias}{Context::getContext()->cookie->SenderAddressFilter_alias}{/if}" name="SenderAddressFilter_alias" class="filter">
|
||||
</td>
|
||||
<td class="center">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('SenderAddressFilter_company') && Context::getContext()->cookie->SenderAddressFilter_company}{Context::getContext()->cookie->SenderAddressFilter_company}{/if}" name="SenderAddressFilter_company" class="filter">
|
||||
</td>
|
||||
<td class="center">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('SenderAddressFilter_name') && Context::getContext()->cookie->SenderAddressFilter_name}{Context::getContext()->cookie->SenderAddressFilter_name}{/if}" name="SenderAddressFilter_name" class="filter">
|
||||
</td>
|
||||
<td class="center">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('SenderAddressFilter_city') && Context::getContext()->cookie->SenderAddressFilter_city}{Context::getContext()->cookie->SenderAddressFilter_city}{/if}" name="SenderAddressFilter_city" class="filter">
|
||||
</td>
|
||||
<td class="center">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('SenderAddressFilter_email') && Context::getContext()->cookie->SenderAddressFilter_email}{Context::getContext()->cookie->SenderAddressFilter_email}{/if}" name="SenderAddressFilter_email" class="filter">
|
||||
</td>
|
||||
<td class="center">
|
||||
--
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{if isset($table_data) && $table_data}
|
||||
{section name=ii loop=$table_data}
|
||||
<tr class="row_hover" id="tr_{$smarty.section.ii.index|escape:'htmlall':'UTF-8' + 1}_{$table_data[ii].id_sender_address|escape:'htmlall':'UTF-8'}_0">
|
||||
<td class="center">
|
||||
{if $table_data[ii].id_sender_address}
|
||||
{$table_data[ii].id_sender_address|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].alias}
|
||||
{$table_data[ii].alias|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].company}
|
||||
{$table_data[ii].company|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].name}
|
||||
{$table_data[ii].name|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].city}
|
||||
{$table_data[ii].city|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].email}
|
||||
{$table_data[ii].email|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center sender_address-list-buttons">
|
||||
<a title="{l s='Edit' mod='dpdpoland'}" href="{$form_url|escape:'htmlall':'UTF-8'}&editSenderAddress&id_sender_address={$table_data[ii].id_sender_address|escape:'htmlall':'UTF-8'}">
|
||||
<img alt="{l s='Edit sender address' mod='dpdpoland'}" src="../img/admin/edit.gif">
|
||||
</a>
|
||||
<a title="{l s='Delete' mod='dpdpoland'}" href="{$full_url|escape:'htmlall':'UTF-8'}&deleteSenderAddress&id_sender_address={$table_data[ii].id_sender_address|escape:'htmlall':'UTF-8'}">
|
||||
<img alt="{l s='Delete sender address' mod='dpdpoland'}" src="../img/admin/delete.gif">
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/section}
|
||||
{else}
|
||||
<tr>
|
||||
<td colspan="7" class="center">
|
||||
{l s='There are no addresses yet' mod='dpdpoland'}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
@@ -0,0 +1,218 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$("table#sender_address_list .datepicker").datepicker({
|
||||
prevText: '',
|
||||
nextText: '',
|
||||
dateFormat: 'yy-mm-dd'
|
||||
});
|
||||
|
||||
$('table#sender_address_list .filter').keypress(function(event){
|
||||
formSubmit(event, 'submitFilterButtonSenderAddress');
|
||||
});
|
||||
|
||||
$('table#packages_list .filter').keypress(function(e){
|
||||
var key = (e.keyCode ? e.keyCode : e.which);
|
||||
if (key == 13)
|
||||
{
|
||||
e.preventDefault();
|
||||
formSubmit(event, 'submitFilterButtonSenderAddress');
|
||||
}
|
||||
});
|
||||
|
||||
$('#submitFilterButtonSenderAddress').click(function() {
|
||||
$('#submitFilterSenderAddress').val(1);
|
||||
$('#sender_addresses').submit();
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
<form id="sender_addresses" class="form-horizontal clearfix" action="{$full_url|escape:'htmlall':'UTF-8'}" method="post">
|
||||
<input type="hidden" value="0" name="submitFilterButtonSenderAddress" id="submitFilterSenderAddress">
|
||||
<div class="panel col-lg-12">
|
||||
<div class="panel-heading">
|
||||
{l s='Sender addresses' mod='dpdpoland'}
|
||||
<span class="badge">
|
||||
{$list_total|escape:'htmlall':'UTF-8'}
|
||||
</span>
|
||||
<span class="panel-heading-action">
|
||||
<a id="desc-sender_address-new" class="list-toolbar-btn" href="{$form_url|escape:'htmlall':'UTF-8'}">
|
||||
<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Add new' mod='dpdpoland'}" data-html="true" data-placement="top">
|
||||
<i class="process-icon-new"></i>
|
||||
</span>
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
<div class="table-responsive clearfix">
|
||||
<table class="table" id="sender_address_list" name="list_table">
|
||||
<thead>
|
||||
<tr class="nodrag nodrop">
|
||||
<th class="center">
|
||||
<span class="title_box{if $order_by == 'id_sender_address'} active{/if}">{l s='Sender address ID' mod='dpdpoland'}
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&SenderAddressOrderBy=id_sender_address&SenderAddressOrderWay=desc"{if $order_by == 'id_sender_address' && $order_way == 'desc'} class="active"{/if}><i class="icon-caret-down"></i></a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&SenderAddressOrderBy=id_sender_address&SenderAddressOrderWay=asc"{if $order_by == 'id_sender_address' && $order_way == 'asc'} class="active"{/if}><i class="icon-caret-up"></i></a>
|
||||
</span>
|
||||
</th>
|
||||
<th class="">
|
||||
<span class="title_box{if $order_by == 'alias'} active{/if}">{l s='Alias' mod='dpdpoland'}
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&SenderAddressOrderBy=alias&SenderAddressOrderWay=desc"{if $order_by == 'alias' && $order_way == 'desc'} class="active"{/if}><i class="icon-caret-down"></i></a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&SenderAddressOrderBy=alias&SenderAddressOrderWay=asc"{if $order_by == 'alias' && $order_way == 'asc'} class="active"{/if}><i class="icon-caret-up"></i></a>
|
||||
</span>
|
||||
</th>
|
||||
<th class="">
|
||||
<span class="title_box{if $order_by == 'company'} active{/if}">{l s='Company' mod='dpdpoland'}
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&SenderAddressOrderBy=company&SenderAddressOrderWay=desc"{if $order_by == 'company' && $order_way == 'desc'} class="active"{/if}><i class="icon-caret-down"></i></a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&SenderAddressOrderBy=company&SenderAddressOrderWay=asc"{if $order_by == 'company' && $order_way == 'asc'} class="active"{/if}><i class="icon-caret-up"></i></a>
|
||||
</span>
|
||||
</th>
|
||||
<th class="left">
|
||||
<span class="title_box{if $order_by == 'name'} active{/if}">{l s='Name' mod='dpdpoland'}
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&SenderAddressOrderBy=name&SenderAddressOrderWay=desc"{if $order_by == 'name' && $order_way == 'desc'} class="active"{/if}><i class="icon-caret-down"></i></a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&SenderAddressOrderBy=name&SenderAddressOrderWay=asc"{if $order_by == 'name' && $order_way == 'asc'} class="active"{/if}><i class="icon-caret-up"></i></a>
|
||||
</span>
|
||||
</th>
|
||||
<th class="">
|
||||
<span class="title_box{if $order_by == 'city'} active{/if}">{l s='City' mod='dpdpoland'}
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&SenderAddressOrderBy=city&SenderAddressOrderWay=desc"{if $order_by == 'city' && $order_way == 'desc'} class="active"{/if}><i class="icon-caret-down"></i></a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&SenderAddressOrderBy=city&SenderAddressOrderWay=asc"{if $order_by == 'city' && $order_way == 'asc'} class="active"{/if}><i class="icon-caret-up"></i></a>
|
||||
</span>
|
||||
</th>
|
||||
<th class="">
|
||||
<span class="title_box{if $order_by == 'email'} active{/if}">{l s='Email' mod='dpdpoland'}
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&SenderAddressOrderBy=email&SenderAddressOrderWay=desc"{if $order_by == 'email' && $order_way == 'desc'} class="active"{/if}><i class="icon-caret-down"></i></a>
|
||||
<a href="{$full_url|escape:'htmlall':'UTF-8'}&SenderAddressOrderBy=email&SenderAddressOrderWay=asc"{if $order_by == 'email' && $order_way == 'asc'} class="active"{/if}><i class="icon-caret-up"></i></a>
|
||||
</span>
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
<tr class="nodrag nodrop filter row_hover">
|
||||
<th class="center">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('SenderAddressFilter_id_sender_address') && Context::getContext()->cookie->SenderAddressFilter_id_sender_address}{Context::getContext()->cookie->SenderAddressFilter_id_sender_address}{/if}" name="SenderAddressFilter_id_sender_address" class="filter">
|
||||
</th>
|
||||
|
||||
<th class="center">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('SenderAddressFilter_alias') && Context::getContext()->cookie->SenderAddressFilter_alias}{Context::getContext()->cookie->SenderAddressFilter_alias}{/if}" name="SenderAddressFilter_alias" class="filter">
|
||||
</th>
|
||||
|
||||
<th class="center">
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('SenderAddressFilter_company') && Context::getContext()->cookie->SenderAddressFilter_company}{Context::getContext()->cookie->SenderAddressFilter_company}{/if}" name="SenderAddressFilter_company" class="filter">
|
||||
</th>
|
||||
|
||||
<th>
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('SenderAddressFilter_name') && Context::getContext()->cookie->SenderAddressFilter_name}{Context::getContext()->cookie->SenderAddressFilter_name}{/if}" name="SenderAddressFilter_name" class="filter">
|
||||
</th>
|
||||
|
||||
<th>
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('SenderAddressFilter_city') && Context::getContext()->cookie->SenderAddressFilter_city}{Context::getContext()->cookie->SenderAddressFilter_city}{/if}" name="SenderAddressFilter_city" class="filter">
|
||||
</th>
|
||||
|
||||
<th>
|
||||
<input type="text" value="{if Context::getContext()->cookie->__isset('SenderAddressFilter_email') && Context::getContext()->cookie->SenderAddressFilter_email}{Context::getContext()->cookie->SenderAddressFilter_email}{/if}" name="SenderAddressFilter_email" class="filter">
|
||||
</th>
|
||||
|
||||
<th class="actions text-center">
|
||||
<span class="pull-right">
|
||||
<button id="submitFilterButtonSenderAddress" class="btn btn-default" data-list-id="sender_address_list" name="submitFilter" type="submit">
|
||||
<i class="icon-search"></i>
|
||||
{l s='Search' mod='dpdpoland'}
|
||||
</button>
|
||||
{if $filters_has_value}
|
||||
<button type="submit" name="submitResetSenderAddress" class="btn btn-warning">
|
||||
<i class="icon-eraser"></i> {l s='Reset' mod='dpdpoland'}
|
||||
</button>
|
||||
{/if}
|
||||
</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{if isset($table_data) && $table_data}
|
||||
{section name=ii loop=$table_data}
|
||||
<tr class="odd" id="tr_{$smarty.section.ii.index|escape:'htmlall':'UTF-8' + 1}_{$table_data[ii].id_sender_address|escape:'htmlall':'UTF-8'}_0">
|
||||
<td class="center">
|
||||
{if $table_data[ii].id_sender_address}
|
||||
{$table_data[ii].id_sender_address|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].alias}
|
||||
{$table_data[ii].alias|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].company}
|
||||
{$table_data[ii].company|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if $table_data[ii].name}
|
||||
{$table_data[ii].name|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="text-left">
|
||||
{if $table_data[ii].city}
|
||||
{$table_data[ii].city|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="text-left">
|
||||
{if $table_data[ii].email}
|
||||
{$table_data[ii].email|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
<td class="text-right sender-address-list-buttons">
|
||||
<a title="{l s='Edit' mod='dpdpoland'}" href="{$form_url|escape:'htmlall':'UTF-8'}&editSenderAddress&id_sender_address={$table_data[ii].id_sender_address|escape:'htmlall':'UTF-8'}">
|
||||
<img alt="{l s='Edit sender address' mod='dpdpoland'}" src="../img/admin/edit.gif">
|
||||
</a>
|
||||
<a title="{l s='Delete' mod='dpdpoland'}" href="{$full_url|escape:'htmlall':'UTF-8'}&deleteSenderAddress&id_sender_address={$table_data[ii].id_sender_address|escape:'htmlall':'UTF-8'}">
|
||||
<img alt="{l s='Delete sender address' mod='dpdpoland'}" src="../img/admin/delete.gif">
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/section}
|
||||
{else}
|
||||
<tr>
|
||||
<td colspan="7" class="list-empty">
|
||||
<div class="list-empty-msg">
|
||||
<i class="icon-warning-sign list-empty-icon"></i>
|
||||
{l s='No records found' mod='dpdpoland'}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</tbody>
|
||||
</table>
|
||||
{include file=$smarty.const._DPDPOLAND_TPL_DIR_|cat:'admin/_pagination_16.tpl' identifier='SenderAddress'}
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
32
modules/dpdpoland/views/templates/admin/timeframes.tpl
Normal file
32
modules/dpdpoland/views/templates/admin/timeframes.tpl
Normal file
@@ -0,0 +1,32 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
{if $timeFrames === false}
|
||||
<p class="warn warning alert alert-warning">{DpdPolandPickup::$errors|reset}</p>
|
||||
{else}
|
||||
<select name="pickupTime">
|
||||
{if isset($extra_timeframe)}
|
||||
<option value="{$extra_timeframe|escape:'htmlall':'UTF-8'}"{if isset($smarty.post.pickupTime) && $smarty.post.pickupTime == $extra_timeframe} selected="selected"{/if}>{$extra_timeframe|escape:'htmlall':'UTF-8'}</option>
|
||||
{/if}
|
||||
{foreach from=$timeFrames item=timeFrame}
|
||||
{if isset($timeFrame.range)}
|
||||
<option value="{$timeFrame.range|escape:'htmlall':'UTF-8'}"{if isset($smarty.post.pickupTime) && $smarty.post.pickupTime == $timeFrame.range} selected="selected"{/if}>{$timeFrame.range|escape:'htmlall':'UTF-8'}</option>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</select>
|
||||
<p class="preference_description">{l s='You have' mod='dpdpoland'} <span class="time_left"></span> {l s='minutes to make PickUp order for selected time frame' mod='dpdpoland'}</p>
|
||||
{/if}
|
||||
34
modules/dpdpoland/views/templates/admin/warnings.tpl
Normal file
34
modules/dpdpoland/views/templates/admin/warnings.tpl
Normal file
@@ -0,0 +1,34 @@
|
||||
{** 2019 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 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/osl-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
|
||||
* prestashop@dpd.com.pl so we can send you a copy immediately.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2019 DPD Polska Sp. z o.o.
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of DPD Polska Sp. z o.o.
|
||||
*}
|
||||
{if count($warnings)}
|
||||
<div class="bootstrap">
|
||||
<div class="warning warn alert alert-warning">
|
||||
{if count($warnings) == 1}
|
||||
{$warnings[0]|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
{l s='%d warnings' mod='dpdpoland' sprintf=$warnings|count}
|
||||
<br/>
|
||||
<ol>
|
||||
{foreach $warnings as $warning}
|
||||
<li>{$warning|escape:'htmlall':'UTF-8'}</li>
|
||||
{/foreach}
|
||||
</ol>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
Reference in New Issue
Block a user