first commit

This commit is contained in:
2024-11-11 18:46:54 +01:00
commit a630d17338
25634 changed files with 4923715 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2016 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2016 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,81 @@
{extends file='customer/page.tpl'}
{block name='page_title'}
{l s='Moje przesyłki Inpost' mod='inpostship'}
{/block}
{block name='page_content'}
<div class="mypackage">
<p class="alert alert-info" style="font-size: 14px;">
Mój ulubiony paczkomat: <b>{$favouritePoint nofilter}</b><br /><br />
<a href="#" class="btn btn-secondary btn-xs" onclick="openModalMap({$id_customer});">{if empty($favouritePoint) || $favouritePoint == 'brak'}Dodaj ulubiony paczkomat{else}Zmień ulubiony paczkomat{/if}</a><br />
</p>
<br />
{if $packageList}
<table class="table">
<thead>
<tr>
<th>Lp.</th>
<th>Numer zamówienia</th>
<th>Numer paczki</th>
{* <th></th>*}
<th>Status</th>
<th>Historia</th>
<th>Data utworzenia</th>
</tr>
</thead>
<tbody>
{foreach $packageList as $item}
{if !empty($item.reference_number)}
<tr>
<td>{$item@iteration}.</td>
<td>{$item.order_reference}</td>
<td>{$item.reference_number}</td>
{* <td><a href="https://inpost.pl/sledzenie-przesylek?number={$item.reference_number}" target="_blank"><small>śledź przesyłkę</small></a></td>*}
<td><button type="button" class="showStatus btn btn-success btn-sm" data-packcode="{$item.packcode}" data-reference="{$item.reference_number}">sprawdź</button></td>
<td><button type="button" class="showHistory btn btn-warning btn-sm" data-packcode="{$item.packcode}" data-reference="{$item.reference_number}">sprawdź</button></td>
<td>{$item.date_add}</td>
</tr>
{/if}
{/foreach}
</tbody>
</table>
{else}
<p class="alert alert-warning">
Nie masz jeszcze wygenerowanych przesyłek z Inpost
</p>
{/if}
</div>
<script type="text/javascript" src="https://geowidget.easypack24.net/js/sdk-for-javascript.js"></script>
<link rel="stylesheet" href="https://geowidget.easypack24.net/css/easypack.css" />
<script type="text/javascript">
var ajaxTrackingLink = '{$ajaxTrackingLink}';
var ajaxTrackingHistoryLink = '{$ajaxTrackingHistoryLink}';
var pTypes = '{$pTypes}';
var mapBox = '{$map_box}';
var imap = '{$imap}';
var imgm = '{$imgm}';
var imw = '{$imw}';
var mapShow = '{$map_show}';
var baseDirShop = '{$baseDirShop}';
</script>
<div id="inpostship">
<div class="modal fade" id="modalTracking" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="myModalLabel">Śledzenie przesyłek InPost</h4>
</div>
<div class="modal-body">
<div class="trackInfo"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">{l s='Close' mod='inpostship'}</button>
</div>
</div>
</div>
</div>
</div>
{/block}

View File

@@ -0,0 +1,58 @@
<div class="mypackage">
{if $packageList}
<table class="table">
<thead>
<tr>
<th>Lp.</th>
<th>Numer zamówienia</th>
<th>Numer paczki</th>
{* <th></th>*}
<th>Status</th>
<th>Historia</th>
<th>Data utworzenia</th>
</tr>
</thead>
<tbody>
{foreach $packageList as $item}
{if !empty($item.reference_number)}
<tr>
<td>{$item@iteration}.</td>
<td>{$item.order_reference}</td>
<td>{$item.reference_number}</td>
{* <td><a href="https://inpost.pl/sledzenie-przesylek?number={$item.reference_number}" target="_blank"><small>śledź przesyłkę</small></a></td>*}
<td><button type="button" class="showStatus btn btn-success btn-sm" data-packcode="{$item.packcode}" data-reference="{$item.reference_number}">sprawdź</button></td>
<td><button type="button" class="showHistory btn btn-warning btn-sm" data-packcode="{$item.packcode}" data-reference="{$item.reference_number}">sprawdź</button></td>
<td>{$item.date_add}</td>
</tr>
{/if}
{/foreach}
</tbody>
</table>
{else}
<p class="alert alert-warning">
Nie masz jeszcze wygenerowanych przesyłek z Inpost
</p>
{/if}
</div>
<script type="text/javascript">
var ajaxTrackingLink = '{$ajaxTrackingLink}';
var ajaxTrackingHistoryLink = '{$ajaxTrackingHistoryLink}';
</script>
<div id="inpostship">
<div class="modal fade" id="modalTracking" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="myModalLabel">Śledzenie przesyłek InPost</h4>
</div>
<div class="modal-body">
<div class="trackInfo"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">{l s='Close' mod='inpostship'}</button>
</div>
</div>
</div>
</div>
</div>