195 lines
9.9 KiB
Smarty
195 lines
9.9 KiB
Smarty
{**
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This file is licenced under the Software License Agreement.
|
|
* With the purchase or the installation of the software in your application
|
|
* you accept the licence agreement.
|
|
*
|
|
* You must not modify, adapt or create derivative works of this source code
|
|
*
|
|
* @author PrestaHelp.com
|
|
* @copyright 2022 PrestaHelp
|
|
* @license LICENSE.txt
|
|
*}
|
|
{include file=$phelpTop}
|
|
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
if ($("table .datepicker").length > 0) {
|
|
$("table .datepicker").datepicker({
|
|
prevText: '',
|
|
nextText: '',
|
|
altFormat: 'yy-mm-dd'
|
|
});
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<form method="post">
|
|
<div class="panel">
|
|
<div class="panel-heading"><i class="icon-cog"></i> {l s='InPost - bulk shipment creation list' mod='inpostship'} <span class="badge">{$package_list|count}</span> </div>
|
|
<div class="form-horizontal">
|
|
{if empty($package_list)}
|
|
<p class="alert alert-warning">Brak przesyłek w systemie.</p>
|
|
{if !empty($filter)}
|
|
<a href="{$currentPage}" class="btn btn-primary"><i class="icon-eraser"></i> Wyczyść wynik wyszukania</a>
|
|
{/if}
|
|
{else}
|
|
{if isset($errors) && !empty($errors)}
|
|
<div class="col-lg-12">
|
|
<div class="alert alert-danger">{$errors}</div>
|
|
</div>
|
|
{/if}
|
|
{if isset($success) && !empty($success)}
|
|
<div class="col-lg-12">
|
|
<div class="alert alert-success">{$success}</div>
|
|
</div>
|
|
{/if}
|
|
|
|
<div class="packageLists">
|
|
<table class="table tablePackageList">
|
|
<thead>
|
|
<tr>
|
|
<th><input type="checkbox" class="select_all" /></th>
|
|
<th>Lp.</th>
|
|
<th>Zamówienie</th>
|
|
<th>Rodzaj dostawcy</th>
|
|
<th class="text-center">Paczkomat odbiorczy</th>
|
|
<th>Rozmiar</th>
|
|
<th>Nadanie</th>
|
|
<th>Ubezpieczenie</th>
|
|
<th>Pobranie</th>
|
|
<th class="text-center">Paczka w weekend</th>
|
|
<th>Data utworzenia</th>
|
|
</tr>
|
|
<tr class="alert-warning">
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th>
|
|
<select class="select_packtype_all">
|
|
{foreach $packtype as $p}
|
|
<option value="{$p.value}">{$p.name}: {$p.description}</option>
|
|
{/foreach}
|
|
</select>
|
|
</th>
|
|
<th>
|
|
<select class="select_sendtype_all">
|
|
{foreach $sendingMethods as $sm}
|
|
{if $sm->id == 'dispatch_order' || $sm->id == 'parcel_locker' || $sm->id == 'pop'}
|
|
<option value="{$sm->id}">{$sm->name} ({$sm->description})</option>
|
|
{/if}
|
|
{/foreach}
|
|
</select>
|
|
</th>
|
|
<th>
|
|
<select class="select_ins_all">
|
|
<option value="">{l s='lack of insurance' mod='inpostship'}</option>
|
|
{foreach $insurance as $i}
|
|
<option value="{$i.value}">{$i.name}</option>
|
|
{/foreach}
|
|
</select>
|
|
</th>
|
|
<th></th>
|
|
<th class="text-center"><input type="checkbox" class="select_pww_all" /></th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{foreach $package_list as $pl}
|
|
<tr>
|
|
<td><input type="checkbox" class="select_one" name="pack[id_cart][]" value="{$pl.id_cart}" data-service="{$pl.service}" /></td>
|
|
<td>{$pl@iteration}.</td>
|
|
<td>
|
|
{$pl.order_id}<br />{$pl.order_reference}
|
|
<br />
|
|
<span class="show_products" data-show="off"><small>pokaż produkty</small></span>
|
|
</td>
|
|
<td>
|
|
{if $pl.service == 1}
|
|
InPost Paczkomaty 24{if $pl.c_type == 1} za pobraniem{/if}
|
|
{elseif $pl.service == 2}
|
|
Kurier InPost{if $pl.c_type == 1} za pobraniem{/if}
|
|
{elseif $pl.service == 3}
|
|
Allegro
|
|
{elseif $pl.service == 5}
|
|
InPost Paczkomaty 24 Paczka w weekend{if $pl.c_type == 1} za pobraniem{/if}
|
|
{elseif $pl.service == 6}
|
|
InPost Paczkomaty 24 Paczka w weekend{if $pl.c_type == 1} za pobraniem{/if}
|
|
{else}
|
|
- bd -
|
|
{/if}
|
|
</td>
|
|
<td class="text-center">
|
|
{if $pl.service != 1 && $pl.service != 5 && $pl.service != 6}
|
|
--
|
|
{else}
|
|
{$pl.receiver_machine}
|
|
{/if}
|
|
|
|
</td>
|
|
<td>
|
|
<select name="pack[packtype][{$pl.id_cart}][]" class="select_packtype_one">
|
|
{foreach $packtype as $p}
|
|
<option value="{$p.value}" {if $p.value == $packtype_default}selected="selected"{/if}>{$p.name}: {$p.description}</option>
|
|
{/foreach}
|
|
</select>
|
|
</td>
|
|
<td>
|
|
<select name="pack[sendtype][{$pl.id_cart}][]" class="select_sendtype_one">
|
|
{foreach $sendingMethods as $sm}
|
|
{if $pl.service == 2}
|
|
{if $sm->id == 'dispatch_order' || $sm->id == 'pop'}
|
|
<option value="{$sm->id}"{if $sm->id == $dispatch} selected="selected"{/if}>{$sm->name} ({$sm->description})</option>
|
|
{/if}
|
|
{else}
|
|
{if $sm->id == 'dispatch_order' || $sm->id == 'parcel_locker' || $sm->id == 'pop'}
|
|
<option value="{$sm->id}"{if $sm->id == $dispatch} selected="selected"{/if}>{$sm->name} ({$sm->description})</option>
|
|
{/if}
|
|
{/if}
|
|
{/foreach}
|
|
</select>
|
|
</td>
|
|
<td>
|
|
<select name="pack[ins][{$pl.id_cart}][]" class="select_ins_one">
|
|
<option value="">{l s='lack of insurance' mod='inpostship'}</option>
|
|
{foreach $insurance as $i}
|
|
<option value="{$i.value}"{if ($scv == 1 && $i.value == $ipi) || ($i.value == $ipi)} selected="selected"{/if} >{$i.name}</option>
|
|
{/foreach}
|
|
</select>
|
|
</td>
|
|
<td>
|
|
{if $pl.cod_type == 0}
|
|
--
|
|
{else}
|
|
{$pl.cod_total} zł
|
|
{/if}
|
|
</td>
|
|
<td class="text-center">
|
|
<input type="checkbox" name="pack[pww][{$pl.id_cart}][]" value="1" class="select_pww_one" />
|
|
</td>
|
|
<td>{$pl.date_add}</td>
|
|
</tr>
|
|
<tr style="display: none;">
|
|
<td></td>
|
|
<td></td>
|
|
<td colspan="9">
|
|
{$pl.productList}
|
|
</td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
<button type="submit" class="btn btn-primary generatePacked" name="submitGenerateLabels" disabled><i class="icon-file-text"></i> <span class="" style="margin-left: 10px;">Utwórz paczki</span></button>
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
{$banersHtml}
|
|
|
|
{include file=$phelpBtm}
|