This commit is contained in:
2024-04-27 09:23:34 +02:00
commit 11e713ca6f
11884 changed files with 3263371 additions and 0 deletions

View File

@@ -0,0 +1,59 @@
<form name="ecmproductsQuickCreate" id="ecmproductsQuickCreate" method="POST" action="index.php">
<input type="hidden" name="module" value="EcmProducts">
<input type="hidden" name="return_action" value="{$REQUEST.return_action}">
<input type="hidden" name="return_module" value="{$REQUEST.return_module}">
<input type="hidden" name="return_id" value="{$REQUEST.return_id}">
<input type="hidden" name="action" value='Save'>
<input type="hidden" name="duplicate_parent_id" value="{$REQUEST.duplicate_parent_id}">
<input type="hidden" name="to_pdf" value='1'>
<input id='assigned_user_id' name='assigned_user_id' type="hidden" value="{$ASSIGNED_USER_ID}" />
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left" style="padding-bottom: 2px;">
<input title= "{$APP.LBL_SAVE_BUTTON_TITLE}"
accessKey= "{$APP.LBL_SAVE_BUTTON_KEY}"
class= "button"
type= "submit"
name= "button" {$saveOnclick|default:"onclick=\"return check_form('EcmProductsQuickCreate');\""} value=" {$APP.LBL_SAVE_BUTTON_LABEL} " >
<input title= "{$APP.LBL_CANCEL_BUTTON_TITLE}"
accessKey= "{$APP.LBL_CANCEL_BUTTON_KEY}"
class= "button"
type= "submit"
name= "button" {$cancelOnclick|default:"onclick=\"this.form.action.value='$RETURN_ACTION'; this.form.module.value='$RETURN_MODULE'; this.form.record.value='$RETURN_ID'\""}
value= " {$APP.LBL_CANCEL_BUTTON_LABEL} ">
<input title= "{$APP.LBL_FULL_FORM_BUTTON_TITLE}"
accessKey= "{$APP.LBL_FULL_FORM_BUTTON_KEY}"
class= "button"
type= "submit"
name= "button"
onclick= "this.form.to_pdf.value='0';this.form.action.value='EditView'; this.form.module.value='EcmProducts';"
value= " {$APP.LBL_FULL_FORM_BUTTON_LABEL} ">
</td>
<td align="right" nowrap>
<span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span>
{$APP.NTC_REQUIRED}
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tabForm">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th align="left" class="dataLabel" colspan="4">
<h4 class="dataLabel"><slot>{$MOD.LBL_ECMPRODUCT_INFORMATION}</slot></h4>
</th>
</tr>
<tr>
<td valign="top" class="dataLabel" width="15%"><slot>{$MOD.LBL_NAME} <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></slot></td>
<td width="35%"><slot><textarea name='name' cols="40" tabindex='1' rows="1">{$NAME}</textarea></slot></td>
</tr>
</table>
</form>
<script>
{$additionalScripts}
</script>

View File

@@ -0,0 +1,235 @@
<style>
{literal}
#menu-link {
color: rgb(150, 150, 150);
text-decoration: none;
font-size: x-large;
}
#menu-cell {
border-bottom: 3px solid white;
padding-top: 15px;
padding-bottom: 15px;
font-size: medium;
}
#prod-image {
border: 1px solid rgb(230, 230, 230);
}
p.m1 {
position: absolute;
top: 240px;
left: 10px;
width: 100%;
color: rgb(200, 200, 200);
font-size: 20px;
}
p.m2 {
position: absolute;
top: 275px;
left: 10px;
width: 100%;
color: rgb(200, 200, 200);
font-size: 20px;
}
p.m3 {
position: absolute;
top: 310px;
left: 10px;
width: 100%;
color: rgb(200, 200, 200);
font-size: 20px;
}
p.m4 {
position: absolute;
top: 345px;
left: 10px;
width: 100%;
color: rgb(200, 200, 200);
font-size: 20px;
}
p.m5 {
width: 100%;
color: rgb(42, 61, 153);
font-size: 20px;
padding-left: 10px;
text-align: left;
}
p.m6 {
width: 100%;
color: rgb(107, 109, 108);
font-size: 10px;
padding-left: 10px;
padding-top: 5px;
padding-bottom: 5px;
text-align: left;
}
p.m7 {
width: 100%;
color: rgb(214, 42, 58);
font-size: 20px;
padding-left: 10px;
text-align: left;
}
.Table
{
display: table;
width: 100%;
}
.Title
{
display: table-caption;
text-align: center;
font-weight: bold;
font-size: larger;
}
.Heading
{
display: table-row;
font-weight: bold;
text-align: center;
}
.Row
{
display: table-row;
}
.Cell
{
display: table-cell;
background-color: rgb(235, 237, 236);
width: 25%;
}
.Cell2
{
display: table-cell;
width: 3.5%;
}
.Cell3
{
width: 71.5%;
display: table-cell;
right: 5%;
}
p.product-title {
padding-top: 10px;
padding-bottom: 10px;
padding-right: 10px;
padding-left: 10px;
color: #ffffff;
text-align: center;
font-size: 20px;
}
.Cell4
{
width: 1500px;
display: table-cell;
background-color: rgb(226, 31, 35);
}
#photos img{
width:100%; height:auto;
}
ul {
list-style: square url("http://e5.pl/allegro/img/kropeczka.png");
text-align: left;
color: rgb(92, 92, 92);
font-size: 23px;
}
li {
text-align: left;
font-size: 20px;
color: rgb(29, 72, 166);
padding-top: 5px;
padding-left: 10px;
padding-bottom: 5px;
}
p.titledes {
color: rgb(92, 92, 92);
font-size: 25px;
text-align: left;
}
p.prodes {
color: rgb(92, 92, 92);
font-size: 15px;
text-align: initial;
}
a.email:link {
text-decoration: none;
color: rgb(42, 61, 153);
}
a.email:visited {
text-decoration: none;
color: rgb(42, 61, 153);
}
a.email:hover {
text-decoration: underline;
color: rgb(42, 61, 153);
}
a.email:active {
text-decoration: underline;
color: rgb(42, 61, 153);
}
a:link {
text-decoration: none;
color: rgb(200, 200, 200);
}
a:visited {
text-decoration: none;
color: rgb(200, 200, 200);
}
a:hover {
text-decoration: underline;
color: rgb(200, 200, 200);
}
a:active {
text-decoration: underline;
color: rgb(200, 200, 200);
}
{/literal}
</style>
<div class="image">
<img src="http://www.e5.pl/allegro/img/top.png" style="height: 400px; width: 100%"/>
<p class="m1"><a href="https://www.facebook.com/e5polska?fref=ts">O nas</a><hr style="border-width:3px;border-color: rgb(200, 200, 200);background-color: rgb(200, 200, 200);width:25%; position: absolute;top: 255px; "/></p>
<p class="m2">Nasze aukcje<hr style="border-width:3px;border-color: rgb(200, 200, 200);background-color: rgb(200, 200, 200);width:25%; position: absolute;top: 290px; "/></p>
<p class="m3">Komentarze<hr style="border-width:3px;border-color: rgb(200, 200, 200);background-color: rgb(200, 200, 200);width:25%; position: absolute;top: 325px; "/></p>
<p class="m4">Dodaj do ulubionych<hr style="border-width:3px;border-color: rgb(200, 200, 200);background-color: rgb(200, 200, 200);width:25%; position: absolute;top: 325px; "/></p>
</div>
<div class="Table">
<div class="Heading">
<div class="Cell">
<p class="m5">Konto bankowe</p>
<p class="m6">26 1140 1010 0000 5482 1200 1001</p>
<p class="m7"><br>UWAGA!</p>
<p class="m6">Prosimy pamiętać aby w tytule przelewu podać swój nick Allegro oraz nr aukcji.</p>
<p class="m6">W razie wątpliwości prosimy o kontakt:</p>
<p class="m6"><a class="email" href="mailto:as@e5.pl">as@e5.pl</a></p>
</div>
<div class="Cell2">
</div>
<div class="Cell3">
<div class="Cell4"><p class="product-title">{$name}</p></div>
<div class="Cell5">
<table style="width:100%;" id="photos" class="photos">
{if $pictures|@count==1}<tr><td style="width:100%;">{$pictures[0]}</td></tr>{/if}
{if $pictures|@count==2}<tr><td style="width:45%;">{$pictures[0]}</td><td style="width:5%;"></td><td style="width:45%;">{$pictures[1]}</td></tr>{/if}
</table>
{$specification}<br><p class="titledes">Opis produktu:</p><br>
<p class="prodes">{$description}</p>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,242 @@
<div class="loader" id="loader">
<img src="themes/default/images/loading.gif" />
</div>
<script>
var CODES = {$CODES};
</script>
<script type="text/javascript" src="modules/EcmProducts/javascript/stockAddress.js"></script>
<h2>Produkty: Adresy magazynowe</h2>
<div id="stockAddress_search" class="edit view search" style="width: 98%;">
<table width="100%" cellspacing="0" cellpadding="0">
<form type="GET" id="searchByAddressForm">
<tr>
<td scope="row" nowrap="nowrap" width='1%'>
Adres magazynowy
</td>
<td nowrap="nowrap" width='1%'>
<input type="text" name="address" id="address" size="30" value="{$CURRENT_ADDRESS}">
</td>
<td>
<input type="hidden" name="module" value="EcmProducts" />
<input type="hidden" name="action" value="stockAddress" />
<input type="hidden" name="searchType" value="address" />
<input type="button" id="searchByAddressTrigger" value="Szukaj adresu&nbsp;" class="button" />
<span style="color: red;" id="addressError"></span>
</td>
</tr>
</form>
<form type="GET" id="searchByIndexForm">
<tr>
<td scope="row" nowrap="nowrap" width="1%">
Indeks Produktu
</td>
<td nowrap="nowrap" width="1%">
<input type='text' name="index" id="index" size="30" value="{$CURRENT_INDEX}">
</td>
<td>
<input type="hidden" name="module" value="EcmProducts" />
<input type="hidden" name="action" value="stockAddress" />
<input type="hidden" name="searchType" value="index" />
<input type="hidden" name="productId" id="productId" value="" />
<input type="button" id="searchByIndexTrigger" value="Szukaj indeksu" class="button" />
<span style="color: red;" id="indexError"></span>
</td>
</tr>
</form>
<form type="GET" id="allAddressesForm">
<tr>
<td scope="row" nowrap="nowrap" width="1%">
Całe palety
<input type="checkbox" name="onlyFull" {if $ONLY_FULL}checked{/if} />
</td>
<td nowrap="nowrap" width="1%">
<select name="allType" value="{$ALL_TYPE}">
<option value="all" {if $ALL_TYPE=='all'}selected{/if}>Wszystkie adresy</option>
<option value="used" {if $ALL_TYPE=='used'}selected{/if}>Adresy zajęte</option>
<option value="empty" {if $ALL_TYPE=='empty'}selected{/if}>Adresy wolne</option>
</select>
</td>
<td>
<input type="hidden" name="module" value="EcmProducts" />
<input type="hidden" name="action" value="stockAddress" />
<input type="hidden" name="searchType" value="allAddresses" />
<input type="submit" id="searchByIndexTrigger" value="Pokaż adresy" class="button" />
</td>
</tr>
</form>
</table>
</div>
{if $PROCESS && $PROCESS=='ADDRESS'}
{if $PRODUCT}
{if $PRODUCT.is_not_full}<b>Paleta niepełna.</b>{/if}
<table cellpadding="0" cellspacing="0" class="list view">
<tr class="oddListRowS1">
<th style="width: 20%;"><b>Indeks</b></th>
<th><b>Nazwa</b></th>
<th><b>Stan</b></th>
<th><b>Akcje</b></th>
</tr>
<tr class="oddListRowS1">
<td valign="top" class="oddListRowS1"
style="padding:5px !important;border-bottom:1px solid #cccccc;vertical-align:top;">
{$PRODUCT.code}
</td>
<td valign="top" class="oddListRowS1"
style="padding:5px !important;border-bottom:1px solid #cccccc;vertical-align:top;">
{$PRODUCT.name}
</td>
<td valign="top" class="oddListRowS1"
style="padding:5px !important;border-bottom:1px solid #cccccc;vertical-align:top;">
{$PRODUCT.stock_state}
</td>
<td valign="top" class="oddListRowS1"
style="padding:5px !important;border-bottom:1px solid #cccccc;vertical-align:top;">
<input type="button" value="Karta produktu" class="button"
onclick="openProductCard('{$PRODUCT.ecmproduct_id}');" />&nbsp;&nbsp;
<input type="button" value="Wyszukaj wszystkie adresy" class="button"
onclick="searchByIndex('{$PRODUCT.code}')" />&nbsp;&nbsp;
<input type="button" value="Usuń produkt z adresu" class="button" onclick="removeProductFromAddress()" />
</td>
</tr>
</table>
{else}
<table cellpadding="0" cellspacing="0" class="list view">
<tr class="oddListRowS1">
<th style="width: 20%;"><b>Indeks</b></td>
<th><b>Nazwa</b></td>
<th><b>Akcje</b></td>
</tr>
<tr class="oddListRowS1">
<td valign="top" class="oddListRowS1"
style="padding:5px !important;border-bottom:1px solid #cccccc;vertical-align:top;">
<input type='text' id="addProductInput" size="10">
<span style="color: red;" id="addProductInputError"></span>
</td>
<td valign="top" class="oddListRowS1"
style="padding:5px !important;border-bottom:1px solid #cccccc;vertical-align:top;">
Brak produktu w wybranej lokalizacji.
</td>
<td valign="top" class="oddListRowS1"
style="padding:5px !important;border-bottom:1px solid #cccccc;vertical-align:top;">
<input type="button" value="Dodaj produkt" class="button" onclick="addProductToAddress()" />
</td>
</tr>
</table>
{/if}
{/if}
{if $PROCESS && $PROCESS=='PRODUCT'}
<h2>{$PRODUCT.code} {$PRODUCT.name} ( Stan: {$PRODUCT.ems_qty_in_stock} )&nbsp;<input type="button"
value="Karta produktu" class="button" onclick="openProductCard('{$PRODUCT.id}');" /></h2>
<table cellpadding="0" cellspacing="0" class="list view">
<tr class="oddListRowS1">
<th style="width: 15%;"><b>Adres</b></td>
<th style="width: 15%;"><b>Niepełny</b></td>
<th><b>Akcje</b></td>
</tr>
{foreach from=$ADDRESSES item=item key=item_name}
<tr class="oddListRowS1">
<td valign="top" class="oddListRowS1"
style="padding:5px !important;border-bottom:1px solid #cccccc;vertical-align:top;">
{$item.stock_address}
</td>
<td valign="top" class="oddListRowS1"
style="padding:5px !important;border-bottom:1px solid #cccccc;vertical-align:top;">
<input type="checkbox" {if $item.is_not_full}checked{/if}
onclick="setAddressIsNotFull('{$item.stock_address}', this)" />
</td>
<td valign="top" class="oddListRowS1"
style="padding:5px !important;border-bottom:1px solid #cccccc;vertical-align:top;">
<input type="button" value="Usuń lokalizację" class="button"
onclick="removeAddressFromProduct('{$item.stock_address}')" />
</td>
</tr>
{/foreach}
<tr class="oddListRowS1">
<td valign="top" class="oddListRowS1"
style="padding:5px !important;border-bottom:1px solid #cccccc;vertical-align:top;">
<input type="text" size="10" id="newAddress" />
<span style="color: red;" id="newAddressError"></span>
</td>
<td valign="top" class="oddListRowS1"
style="padding:5px !important;border-bottom:1px solid #cccccc;vertical-align:top;">
<input type="checkbox" id="isNotFull" />
</td>
<td valign="top" class="oddListRowS1"
style="padding:5px !important;border-bottom:1px solid #cccccc;vertical-align:top;">
<input type="button" value="Dodaj lokalizację" class="button" onclick="addAddressToProduct();" />
</td>
</tr>
</table>
{/if}
{if $PROCESS && $PROCESS=="ALL_ADDRESSES"}
<h3>Ilość: {$SUM}</h3>
<table cellpadding="0" cellspacing="0" class="list view">
<tr class="oddListRowS1">
<th style="width: 10%;"><b>Adres</b></th>
<th><b>Niepełny</b></th>
<th><b>Akcja</b></th>
<th><b>Nazwa</b></th>
<th><b>Stan</b></th>
</tr>
{foreach from=$ADDRESSES item=item key=item_name}
<tr class="oddListRowS1">
<td valign="top" class="oddListRowS1"
style="padding:5px !important;border-bottom:1px solid #cccccc;vertical-align:top;">
{$item.stock_address}
</td>
<td valign="top" class="oddListRowS1"
style="padding:5px !important;border-bottom:1px solid #cccccc;vertical-align:top;">
<input type="checkbox" {if $item.is_not_full}checked{/if} disabled />
</td>
<td valign="top" class="oddListRowS1"
style="padding:5px !important;border-bottom:1px solid #cccccc;vertical-align:top;">
<input type="button" value="Pokaż adres" class="button" name="showAddress-{$item.stock_address}" />
</td>
<td valign="top" class="oddListRowS1"
style="padding:5px !important;border-bottom:1px solid #cccccc;vertical-align:top;">
{if $item.name}
{$item.name}
{else}
Wolne miejsce.
{/if}
</td>
<td valign="top" class="oddListRowS1"
style="padding:5px !important;border-bottom:1px solid #cccccc;vertical-align:top;">
{if $item.name}
{$item.stock_state}
{/if}
</td>
</tr>
{/foreach}
</table>
{/if}
<style>
{literal}
.ui-autocomplete {
max-height: 200px;
overflow-y: auto;
overflow-x: hidden;
padding-right: 20px;
border-radius: 0;
}
.ui-corner-all {
border-radius: 0;
}
.loader {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
padding-top: 50vh;
text-align: center;
background-color: rgba(16, 16, 16, 0.5);
}
.loader>img {}
{/literal}
</style>