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,150 @@
{if version_compare($smarty.const._PS_VERSION_, '1.6.0.0', '<')}
{include file="toolbar.tpl" toolbar_btn=$toolbar_btn toolbar_scroll=$toolbar_scroll title=$toolbar_title}
{else}
{include file="page_header_toolbar.tpl" page_header_toolbar_btn=$toolbar_btn title=$toolbar_title}
{/if}
<div class="leadin">{block name="leadin"}{/block}</div>
<form id="{$table}_form" action="" method="post">
<input type="hidden" name="show" value="{$show}" />
<input type="hidden" name="id_auction" value="{$id_auction}" />
<div class="row">
<div class="panel col-lg-12" x-name="allegro_products">
<div class="panel-heading"><i class="icon-gavel"></i> Aukcje</div>
<table class="table">
<colgroup>
<col width="5px">
<col width="260px">
<col width="150px">
<col width="130px">
<col/>
</colgroup>
<thead>
<tr class="nodrag nodrop" style="height: 30px">
<th>&nbsp;</th>
<th><span class="title_box">Tytuł aukcji</span></th>
<th><span class="title_box">Ilość</span></th>
<th><span class="title_box">Cena</span></th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
{foreach $auctions as $index => $auction}
<tr class="{if $index is odd}alt_row odd{/if}">
<td class="center" style="border-bottom: 1px dashed #DDD;vertical-align:middle;padding-top:8px;padding-bottom:8px;">
<input type="checkbox" name="item[{$index}][enabled]" value="1" class="noborder" x-name="product_switch" checked="checked" />
</td>
<td colspan="7" style="border-bottom: 1px dashed #DDD;vertical-align:middle;">
<p style="margin:0;">{$auction->productObj->name}{if isset($auction->productObj->name_attribute)} - {$auction->productObj->name_attribute}{/if} - <strong>{$auction->productObj->price_buy_now_default} zł</strong></p>
</td>
</tr>
<tr class="{if $index is odd}alt_row odd{/if}" x-name="product" x-id="{$index}">
<td></td>
<td style="vertical-align: top; padding-top:10px;">
<input type="text" name="item[{$index}][title]" value="{$auction->item->title}" size="45" x-name="title" disabled="disabled" />
</td>
<td style="vertical-align: top;padding-top:10px;">
<span class="clearfix">
<input type="text" name="item[{$index}][quantity]" value="{$auction->quantity}" size="3" data-cast="integer" x-name="quantity" x-oos="{$auction->productObj->quantity_oos}" {if $quantity_check}x-max="{$auction->productObj->quantity_max}"{/if} style="width: 70px; float: left;" />
<input type="hidden" name="item[{$index}][quantity_oos]" value="{$auction->productObj->quantity_oos}">
</span>
<p class="clearfix">Na stanie: <strong>{$auction->productObj->quantity}</strong></p>
</td>
<td style="vertical-align: top;padding-top:10px;">
<label for="item_price_buy_now" class="t">Cena <b>Kup teraz:</b></label>
<input type="text" id="item_price_buy_now" name="item[{$index}][price_buy_now]" value="{$auction->price_buy_now}" size="11" data-cast="float" x-name="price_buy_now" />
</td>
<td style="vertical-align: middle;padding-top:10px;">
<p>
<a class="btn btn-default button bt-icon" href="#" x-name="copy_price_buy_now_default" data-price="{$auction->productObj->price_buy_now_default}">
<i class="icon-copy"></i> <span>Kopiuj cenę ostateczną produktu ({$auction->productObj->price_buy_now_default} zł)</span>
</a>
</p>
{if $price_markup}
<p>
<a class="btn btn-default button bt-icon" href="#" x-name="copy_price_buy_now" data-price="{$auction->productObj->price_buy_now}">
<i class="icon-copy"></i> <span>Kopiuj cenę z ustawioną marżą ({$auction->productObj->price_buy_now} zł)</span>
</a>
</p>
{/if}
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
<div class="row">
<div class="panel col-lg-12" x-name="allegro_bulk">
<div class="panel-heading">
<i class="icon-copy"></i> Masowe ustawienia dla wszystkich aukcji
</div>
<table class="table">
<colgroup>
<col width="5px">
<col width="150px">
<col width="130px">
<col/>
</colgroup>
<thead>
<tr class="nodrag nodrop" style="height: 30px">
<th>&nbsp;</th>
<th><span class="title_box">Ilość</span></th>
<th><span class="title_box">Cena</span></th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
<tr style="background-color: #ececec;">
<td style="border-bottom: none;">&nbsp;</td>
<td style="border-bottom: none; vertical-align: top; padding-top:10px;">
<label for="bulk_quantity" class="t">Ilość:</label>
<input type="text" value="" size="3" id="bulk_quantity" x-name="bulk_quantity" data-cast="integer" />
</td>
<td style="border-bottom: none; vertical-align: top; padding-top:10px;">
<label for="bulk_price_buy_now" class="t">
Cena Kup teraz (narzut):
<a href="#" title="Dodaj marżę" x-name="bulk_price_buy_now" x-action="up"><i class="icon-plus-sign"></i></a>
<a href="#" title="Usuń marżę" x-name="bulk_price_buy_now" x-action="down"><i class="icon-minus-sign"></i></a>
</label>
<input type="text" value="" size="11" id="bulk_price_buy_now" x-name="bulk_price_buy_now" data-cast="integer" />
</td>
<td style="border-bottom: none; vertical-align: middle;padding-top:10px;">
<p>
<a class="btn btn-default button bt-icon" href="#" x-name="bulk_copy_price_buy_now_default">
<i class="icon-copy"></i> <span>Kopiuj ceny ostateczne produktu</span>
</a>
</p>
{if $price_markup}
<p>
<a class="btn btn-default button bt-icon" href="#" x-name="bulk_copy_price_buy_now">
<i class="icon-copy"></i> <span>Kopiuj ceny z ustawioną marżą</span>
</a>
</p>
{/if}
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="row">
<div class="panel col-lg-12" style="padding: 0;">
<div class="panel-footer" style="margin: 0;">
<button type="submit" name="submitEditAuctions" class="btn btn-default pull-right"><i class="process-icon-save"></i> {l s='Zapisz aukcje' mod='x13allegro'}</button>
</div>
</div>
</div>
</form>

View File

@@ -0,0 +1,10 @@
{if isset($auctions) && !empty($auctions)}
{include file='./content-bootstrap.tpl'}
<script type="text/javascript">
var XAllegro = new X13Allegro();
XAllegro.auctionEdit();
</script>
{else}
{l s='Brak wybranych aukcji' mod='x13allegro'}
{/if}

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;