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,11 @@
<?php
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,3 @@
<a href="{$href|escape:'html':'UTF-8'}" title="{$title|escape:'html':'UTF-8'}" style="{$color}" data-allegro-auction="{$auction}">
<img src="../modules/x13allegro/img/{$icon}" width="14px" height="14px" alt="Allegro">&nbsp;{$button_txt|escape:'html':'UTF-8'}
</a>

View File

@@ -0,0 +1,3 @@
<a href="{$href|escape:'html':'UTF-8'}" title="{$action|escape:'html':'UTF-8'}">
<i class="icon-pencil"></i>&nbsp;{$action|escape:'html':'UTF-8'}
</a>

View File

@@ -0,0 +1,11 @@
<?php
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,20 @@
{extends file="helpers/list/list_content.tpl"}
{block name="td_content"}
{if isset($params.type) && $params.type == 'auction_info'}
{$tr.$key|escape:'html':'UTF-8'}
{if isset($tr.auction_info)}
<span class="xauction-info">
{if $tr.auction_info.planned_nb}
{l s='Zaplanowano' mod='x13allegro'}: <b>{$tr.auction_info.planned_qty}</b> {l s='szt. na' mod='x13allegro'} <b>{$tr.auction_info.planned_nb}</b> {if $tr.auction_info.planned_nb == 1}{l s='ofertę' mod='x13allegro'}{elseif $tr.auction_info.planned_nb < 5}{l s='ofertach' mod='x13allegro'}{else}{l s='ofert' mod='x13allegro'}{/if}<br />
{/if}
{if $tr.auction_info.auctions_nb > 0}
{l s='Wystawiono' mod='x13allegro'}: <b>{$tr.auction_info.qty}</b> {l s='szt. na' mod='x13allegro'} <b>{$tr.auction_info.auctions_nb}</b> {if $tr.auction_info.auctions_nb == 1}{l s='ofertę' mod='x13allegro'}{elseif $tr.auction_info.planned_nb < 5}{l s='ofertach' mod='x13allegro'}{else}{l s='ofert' mod='x13allegro'}{/if}<br />
{/if}
{if $tr.auction_info.combinations_total > 0 && $tr.auction_info.combinations_nb > 0}{l s='Wystawionych kombinacji' mod='x13allegro'}: <b>{$tr.auction_info.combinations_nb}/{$tr.auction_info.combinations_total}</b>{/if}
</span>
{/if}
{else}
{$smarty.block.parent}
{/if}
{/block}

View File

@@ -0,0 +1,9 @@
{extends file="helpers/list/list_footer.tpl"}
{block name="after"}
<script>
$(document).ready(function() {
var XAllegro = new X13Allegro();
});
</script>
{/block}

View File

@@ -0,0 +1,119 @@
{extends file="helpers/list/list_header.tpl"}
{block name=leadin}
{if isset($accountSwitch)}{$accountSwitch}{/if}
<form id="xallegro_advanced_filters" class="defaultForm form-horizontal bootstrap clearfix" action="{$currentIndex}&token={$token}" method="post">
<div class="panel col-lg-12 clearfix">
<fieldset>
<div class="panel-heading">{l s='Zaawansowane filtrowanie' mod='x13allegro'}</div>
<div class="row">
<div class="col-lg-6">
<div id="container_category_tree">
{$category_tree}
</div>
</div>
<div class="col-lg-6">
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label class="col-xs-4 control-label">{l s='Cena' mod='x13allegro'}:</label>
<input type="text" name="xFilterPriceFrom" value="{$xFilterPriceFrom}" data-cast="float" /> -
<input type="text" name="xFilterPriceTo" value="{$xFilterPriceTo}" data-cast="float" />
</div>
<div class="form-group">
<label class="col-xs-4 control-label">{l s='Ilość' mod='x13allegro'}:</label>
<input type="text" name="xFilterQtyFrom" value="{$xFilterQtyFrom}" data-cast="integer" /> -
<input type="text" name="xFilterQtyTo" value="{$xFilterQtyTo}" data-cast="integer" />
</div>
{if !empty($manufacturers)}
<div class="form-group chosen-styled-selectbox">
<label for="xFilterManufacturer" class="col-xs-4 control-label">{l s='Producent' mod='x13allegro'}:</label>
<div class="col-xs-8">
<select data-placeholder="Wybierz" id="xFilterManufacturer" class="fixed-width-lg chosen" name="xFilterManufacturer[]" multiple>
<option></option>
{foreach from=$manufacturers item=manufacturer}
<option
value="{$manufacturer.id_manufacturer}"
{if $manufacturer.id_manufacturer|in_array:$xFilterManufacturer}selected="selected"{/if}
>{$manufacturer.name}</option>
{/foreach}
</select>
<script>
$(function() {
var selectedManufacturers = {$xFilterManufacturer|json_encode};
$('#xFilterManufacturer').val(selectedManufacturers).trigger('chosen:updated');
});
</script>
</div>
</div>
{/if}
{if !empty($suppliers)}
<div class="form-group chosen-styled-selectbox">
<label for="xFilterSupplier" class="col-xs-4 control-label">{l s='Dostawca' mod='x13allegro'}:</label>
<div class="col-xs-8">
<select data-placeholder="Wybierz" id="xFilterSupplier" class="fixed-width-lg chosen" name="xFilterSupplier[]" multiple>
<option></option>
{foreach from=$suppliers item=supplier}
<option
value="{$supplier.id_supplier}"
{if $supplier.id_supplier|in_array:$xFilterSupplier}selected="selected"{/if}
>{$supplier.name}</option>
{/foreach}
</select>
<script>
$(function() {
var selectedSuppliers = {$xFilterSupplier|json_encode};
$('#xFilterSupplier').val(selectedSuppliers).trigger('chosen:updated');
});
</script>
</div>
</div>
{/if}
</div>
<div class="col-md-6">
<div class="clearfix" style="margin-bottom: 6px;">
<label for="xFilterPerformed" class="col-xs-4 control-label">{l s='Wystawiony' mod='x13allegro'}:</label>
<select id="xFilterPerformed" name="xFilterPerformed" class="col-xs-8">
<option value="0">--</option>
<option value="1" {if $xFilterPerformed == 1}selected="selected"{/if}>{l s='tak (lub chociaż 1dna kombinacja)' mod='x13allegro'}</option>
<option value="2" {if $xFilterPerformed == 2}selected="selected"{/if}>{l s='tak (wszystkie kombinacje)' mod='x13allegro'}</option>
<option value="3" {if $xFilterPerformed == 3}selected="selected"{/if}>{l s='nie (lub żadna kombinacja)' mod='x13allegro'}</option>
<option value="4" {if $xFilterPerformed == 4}selected="selected"{/if}>{l s='nie (nie wszystkie kombinacje)' mod='x13allegro'}</option>
</select>
</div>
<div class="radio clearfix">
<label class="col-xs-4 control-label">{l s='Aktywny' mod='x13allegro'}:</label>
<label class="filter-label" for="xFilterActive_1">
<input type="radio" name="xFilterActive" id="xFilterActive_1" value="2" {if $xFilterActive == 2}checked="checked"{/if} />
<img src="../img/admin/enabled.gif" alt="{l s='Tak' mod='x13allegro'}" title="{l s='Tak' mod='x13allegro'}" />
</label>
<label class="filter-label" for="xFilterActive_0">
<input type="radio" name="xFilterActive" id="xFilterActive_0" value="1" {if $xFilterActive == 1}checked="checked"{/if} />
<img src="../img/admin/disabled.gif" alt="{l s='Nie' mod='x13allegro'}" title="{l s='Nie' mod='x13allegro'}" />
</label>
</div>
</div>
</div>
</div>
<div class="col-lg-12 xfilter-submit">
<a href="{$currentIndex}&token={$token}&reset_xFilter=1" class="button btn btn-default">{l s='Resetuj' mod='x13allegro'}</a>
<button type="submit" name="submit_xFilter" class="button btn btn-success">{l s='Filtruj' mod='x13allegro'}</button>
</div>
</div>
</fieldset>
</div>
</form>
{/block}
{block name="startForm"}
<form method="post" action="{$currentIndex}&token={$token}" class="form-horizontal clearfix" id="allegro_perform_list">
{/block}

View File

@@ -0,0 +1,11 @@
<?php
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;