This commit is contained in:
2026-05-15 18:33:51 +02:00
parent 3601be572f
commit c980004309
8442 changed files with 783630 additions and 1 deletions

View File

@@ -0,0 +1,80 @@
<h1>Dodaj Kategorie</h1>
<script language="javascript" type="text/javascript">
urlStatic = '{$urlStatic}';
</script>
<form method="post" action="{url ProductCategory='Add'}" enctype="multipart/form-data">
{if isset($objCategoryProduct)}
<input type="hidden" name="idProduct" value="{$objCategoryProduct->GetId()}" />
{/if}
<div class="panelRightTop"></div>
<div class="panelRightBody">
<div class="paddedContent">
{assign var="additionalTitle" value=""}
{dropDownContainer title="Ogólne" additionalTitle=$additionalTitle}
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="commonTable">
<tbody>
<tr>
<td>Nazwa:</td>
<td>
{formField name='name' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objCategoryProduct' func='getName'}
{if isset($error.name)}<div style="color: red;" id="actionError" class="validate">{$error.name}</div>{/if}
</td>
</tr>
<tr>
<td>Kategoria główna:</td>
<td>
<select name="idParent">
<option value="0" >
Rodzic
</option>
{foreach from=$arrayObjProductCategory item=objProductCategoryList}
<option value="{$objProductCategoryList->GetId()}">
{$objProductCategoryList->GetName()}
</option>
{/foreach}
</select>
</td>
</tr>
<tr>
<td>Publikuj:</td>
<td>{formField type='checkbox' name='publication' obj='objCategoryProduct' func='GetPublication'}</td>
</tr>
<tr>
<td>Kolejność:</td>
<td>
{formField name='weight' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objCategoryProduct' func='getWeight'}
{if isset($error.name)}<div style="color: red;" id="actionError" class="validate">{$error.weight}</div>{/if}
</td>
</tr>
{*<tr>
<td class="noborder"><b>Data publikacji:</b></td>
<td class="noborder">
<img src='{$urlStatic}/image/iconKalendarz.gif' alt='kalendarz' onclick="showKal(document.getElementById('datepub'));" />&nbsp;{formField type='input' name='datepublication' errorClass='validate' obj='objCategoryProduct' func='GetDatePublicationWithoutTime' id='datepub'}
{if isset($error.datepublication)}<div style="color: red;" id="actionError" class="validate">{$error.datepublication}</div>{/if}
</td>
</tr>*}
</tbody>
</table>
{/dropDownContainer}
</div>
</div>
<div class="cb"></div>
<div class="panelButtons">
{if isset($idStructure)}
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url label=editStructure id=$idStructure}'" />
{else}
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url ProductCategory=Index}'"/>
{/if}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" value="Zapisz" name="doCategoryAdd"/>
</div>
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
</form>

View File

@@ -0,0 +1,78 @@
<h1>Dodaj Kategorie</h1>
<script language="javascript" type="text/javascript">
urlStatic = '{$urlStatic}';
</script>
<form method="post" action="{url ProductCategory='Edit' id=$objCategoryProduct->GetId() }" enctype="multipart/form-data">
{if isset($objCategoryProduct)}
<input type="hidden" name="idProductCategory" value="{$objCategoryProduct->GetId()}" />
{/if}
<div class="panelRightTop"></div>
<div class="panelRightBody">
<div class="paddedContent">
{assign var="additionalTitle" value=""}
{dropDownContainer title="Ogólne" additionalTitle=$additionalTitle}
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="commonTable">
<tbody>
<tr>
<td>Nazwa:</td>
<td>
{formField name='name' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objCategoryProduct' func='getName'}
{if isset($error.name)}<div style="color: red;" id="actionError" class="validate">{$error.name}</div>{/if}
</td>
</tr>
<tr>
<td>Kategoria główna:</td>
<td>
<select name="idParent">
<option value="0" {if $objCategoryProduct->GetIdParent() == '0'}selected{/if}>
Rodzic
</option>
{foreach from=$arrayObjProductCategory item=objProductCategoryList}
<option value="{$objProductCategoryList->GetId()}" {if $objCategoryProduct->GetIdParent() == $objProductCategoryList->GetId()}selected{/if}>
{$objProductCategoryList->GetName()}
</option>
{/foreach}
</select>
</td>
</tr>
<tr>
<td>Publikuj:</td>
<td>{formField type='checkbox' name='publication' obj='objCategoryProduct' func='GetPublication'}</td>
</tr>
<tr>
<td>Kolejność:</td>
<td>
{formField name='weight' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objCategoryProduct' func='getWeight'}
{if isset($error.name)}<div style="color: red;" id="actionError" class="validate">{$error.weight}</div>{/if}
</td>
</tr>
{*<tr>
<td class="noborder"><b>Data publikacji:</b></td>
<td class="noborder">
<img src='{$urlStatic}/image/iconKalendarz.gif' alt='kalendarz' onclick="showKal(document.getElementById('datepub'));" />&nbsp;{formField type='input' name='datepublication' errorClass='validate' obj='objCategoryProduct' func='GetDatePublicationWithoutTime' id='datepub'}
{if isset($error.datepublication)}<div style="color: red;" id="actionError" class="validate">{$error.datepublication}</div>{/if}
</td>
</tr>*}
</tbody>
</table>
{/dropDownContainer}
</div>
</div>
<div class="cb"></div>
<div class="panelButtons">
{if isset($idStructure)}
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url label=editStructure id=$idStructure}'" />
{else}
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url ProductCategory=Index}'"/>
{/if}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" value="Zapisz" name="doCategoryEdit"/>
</div>
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
</form>

View File

@@ -0,0 +1,61 @@
<h1>Kategorie produktu</h1>
{dropDownContainer title='Kategorie'}
<table cellspacing="0" cellpadding="0" border="0">
<tr class="selAllRow">
{*<td class="cornerTop"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a> <a href="#">usuń</a>
</td>*}
</tr>
<tr>
{*<td class="selAll">&nbsp;</td> *}
<th><div style="float:left; width:100%">Lp.<div class="sort"><a class="ascendingAct" href="#">&nbsp;</a><a class="descending" href="#">&nbsp;</a></div></div></th>
<th>Nazwa<div class="sort"><a class="ascendingAct" href="#">&nbsp;</a><a class="descending" href="#">&nbsp;</a></div></th>
{*<th>Wartość<div class="sort"><a class="ascendingAct" href="#">&nbsp;</a><a class="descending" href="#">&nbsp;</a></div></th>*}
<th class="noSort">Publikuj<div class="sort"><a class="ascendingAct" href="#">&nbsp;</a><a class="descending" href="#">&nbsp;</a></div></th>
<th class="noSort"><a href="{url ProductCategory=Add}" class="add">Dodaj</a> <div class="sort"><a class="ascendingAct" href="#">&nbsp;</a><a class="descending" href="#">&nbsp;</a></div></th>
</tr>
{assign var=x value=0}
{foreach from=$menuProductCategory item=objCategory}
{assign var=x value=$x+1}
{assign var=idCategory value=$objCategory->GetId()}
<tr>
{*<td class="selAll"><input name="Checkbox1" type="checkbox" /></td> *}
<td>{$x}</td>
<td><a href="{url ProductCategory=Edit id=$idCategory}" title="edytuj">{$objCategory->GetName()}</a></td>
<td>{$objCategory->GetPublication()}</td>
<td style="width:15px">
<a href="{url ProductCategory=Edit id=$idCategory}" class="edit">edytuj</a><a href="{url ProductCategory=Delete id=$idCategory}" class="delete">usuń</a>
</td>
</tr>
{if $objCategory->GetHaveChildren()}
{foreach from=$objCategory->GetArrayChildren() item=subProductCategory key=idSubProductCategory}
<tr>
{*<td class="selAll"><input name="Checkbox1" type="checkbox" /></td> *}
<td>{$x}</td>
<td><a href="{url ProductCategory=Edit id=$idCategory}" title="edytuj">&nbsp;->&nbsp;&nbsp;{$subProductCategory->GetName()}</a></td>
<td>{$subProductCategory->GetPublication()}</td>
<td style="width:15px">
<a href="{url ProductCategory=Edit id=$subProductCategory->GetId()}" class="edit">edytuj</a><a href="{url ProductCategory=Delete id=$subProductCategory->GetId()}" class="delete">usuń</a>
</td>
</tr>
{/foreach}
{/if}
{/foreach}
<tr class="selAllRow">
{*<td class="cornerBottom"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a><a href="#">usuń</a>
<div class="pager"><div class="perpage">wyświetl:<br/><select id="perpage" class="tiny " name="#"><option>10</option><option>25</option><option>50</option><option>100</option></select></div><a href="#" class="prvnext">&laquo; poprzednia</a><a href="#">1</a><a class="active" href="#">2</a><a href="#">3</a>...<a href="#">50</a><a href="#">51</a><a href="#">52</a>...<a href="#">100</a><a class="prvnext" href="#">następna &raquo;</a></div></td> *}
</tr>
</table>
{/dropDownContainer}
{*if isset($linkedAttribute)}
{$linkedAttribute}
{/if}
{if isset($unlinkedAttribute)}
{$unlinkedAttribute}
{/if*}

View File

@@ -0,0 +1,49 @@
{dropDownContainer title="Lista"}
<table width="100%" class="datagrid" cellpadding="4" cellspacing="1" border="0">
<tr>
<th>id</th>
<th>nazwa</th>
<th>data publikacji</th>
<th>publikacja</th>
<th width="60">
<a href="{url Product=Add}" {if isset($add)}onclick="alert('Aby dodać wpis, proszę zapisać element do struktury'); return false;" {/if}><img src="{$urlStatic}/image/Admin/iconAdd.gif" alt="Dodaj" title="Dodaj" border="0"/></a>
</th>
</tr>
{if !isset($add)}
{assign var=x value=1}
{foreach from=$arrayObj item=obj name=obj}
<tr {if $x==1}{assign var=x value=0}{else}{assign var=x value=1}class="even"{/if}>
<td>{$obj->GetId()}</td>
<td>{$obj->GetName()}</td>
<td>{$obj->GetDate()}</td>
<td>{if $obj->GetPublication()}p*{/if}</td>
<td style="text-align: center;">
<a href="{url Product=Edit idProduct=$obj->GetId() idElement=$idElement}"><img src="{$urlStatic}/image/Admin/iconEdit.gif" alt="Edytuj" title="Edytuj" border="0"/></a> |
<a href="{url Product=Delete idProduct=$obj->GetId() idElement=$idElement}" onclick="{literal}if(confirm('Czy napewno usunęć ten element?')){return true;}else{return false;}{/literal}"><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
</td>
</tr>
{if $smarty.foreach.obj.last}
<tr>
<td colspan="10" align="center" >
<div class="paging">
{insertPagination}
</div>
</td>
</tr>
{/if}
{foreachelse}
{if !isset($searchString) || $searchString == ""}
<tr>
<td colspan="5" style="text-align: center;">Brak zdefiniowanych produktów. <br/> Aby dodać kliknij link 'dodaj'.</td>
</tr>
{/if}
{/foreach}
{else}
<tr>
<td colspan="5" style="text-align: center;">Aby dodać wpis, proszę zapisać element do struktury.</td>
</tr>
{/if}
</table>
{/dropDownContainer}

View File

@@ -0,0 +1,54 @@
{dropDownContainer title='Powiązane parametry'}
<form method="post" action="{url ProductCategory='SaveSort'}" enctype="multipart/form-data">
{if isset($idCategory)}
<input type="hidden" name="idCategory" value="{$idCategory}" />
{/if}
{if !isset($clikCategory)}
<table cellspacing="0" cellpadding="0" border="0">
<tr class="selAllRow">
{*<td class="cornerTop"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a> <a href="#">usuń</a>
</td>*}
</tr>
<tr>
{*<td class="selAll">&nbsp;</td> *}
<th style="width: 10%"><div style="float:left; width:100%">Lp.<div class="sort"><a class="ascendingAct" href="#">&nbsp;</a><a class="descending" href="#">&nbsp;</a></div></div></th>
<th style="width: 50%">Parametr<div class="sort"><a class="ascendingAct" href="#">&nbsp;</a><a class="descending" href="#">&nbsp;</a></div></th>
{*<th>Wartość<div class="sort"><a class="ascendingAct" href="#">&nbsp;</a><a class="descending" href="#">&nbsp;</a></div></th>*}
<th style="width: 20%" class="noSort">Publikuj<div class="sort"><a class="ascendingAct" href="#">&nbsp;</a><a class="descending" href="#">&nbsp;</a></div></th>
<th style="width: 20%" class="noSort">kolejność{*<a href="#" class="add">Dodaj</a> <div class="sort"><a class="ascendingAct" href="#">&nbsp;</a><a class="descending" href="#">&nbsp;</a></div>*}</th>
</tr>
{assign var=x value=0}
{foreach from=$arrayObjAttribute item=objAttribute name=attribute}
{assign var=x value=$x+1}
<tr>
{*<td class="selAll"><input name="Checkbox1" type="checkbox" /></td> *}
<td>{$x}</td>
<td><a href="#">{$objAttribute->GetDescription()}</a></td>
<td>{$objAttribute->GetPublication()}</td>
<td>
<input type="text" name="attr[{$objAttribute->GetId()}]" value="{$x}" />
{*<a href="#" class="delete">usuń</a>*}
</td>
</tr>
{if $smarty.foreach.attribute.last}
<tr>
<td colspan="4" align="right"><input type="submit" value="Zapisz" name="doSaveSort"/></td>
</tr>
{/if}
{foreachelse}
<tr>
<td colspan="4">Brak powiązanych parametrów</td>
</tr>
{/foreach}
<tr class="selAllRow">
{*<td class="cornerBottom"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a><a href="#">usuń</a>
<div class="pager"><div class="perpage">wyświetl:<br/><select id="perpage" class="tiny " name="#"><option>10</option><option>25</option><option>50</option><option>100</option></select></div><a href="#" class="prvnext">&laquo; poprzednia</a><a href="#">1</a><a class="active" href="#">2</a><a href="#">3</a>...<a href="#">50</a><a href="#">51</a><a href="#">52</a>...<a href="#">100</a><a class="prvnext" href="#">następna &raquo;</a></div></td> *}
</tr>
</table>
{else}
Wybierz kategorie żeby zobaczyć powiązane parametry
{/if}
</form>
{/dropDownContainer}

View File

@@ -0,0 +1,43 @@
{dropDownContainer title='Niepowiązane parametry'}
{if !isset($clikCategory)}
<table cellspacing="0" cellpadding="0" border="0">
<tr class="selAllRow">
{*<td class="cornerTop"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a> <a href="#">usuń</a>
</td>*}
</tr>
<tr>
{*<td class="selAll">&nbsp;</td> *}
<th style="width: 10px"><div style="float:left; width:100%">Lp.<div class="sort"><a class="ascendingAct" href="#">&nbsp;</a><a class="descending" href="#">&nbsp;</a></div></div></th>
<th style="width: 50%">Parametr<div class="sort"><a class="ascendingAct" href="#">&nbsp;</a><a class="descending" href="#">&nbsp;</a></div></th>
{*<th>Wartość<div class="sort"><a class="ascendingAct" href="#">&nbsp;</a><a class="descending" href="#">&nbsp;</a></div></th>*}
<th style="width: 20%" class="noSort">Publikuj<div class="sort"><a class="ascendingAct" href="#">&nbsp;</a><a class="descending" href="#">&nbsp;</a></div></th>
<th style="width: 20%" class="noSort">Powiąż</th>
</tr>
{assign var=x value=0}
{foreach from=$arrayObjAttribute item=objAttribute}
{assign var=x value=$x+1}
<tr>
{*<td class="selAll"><input name="Checkbox1" type="checkbox" /></td> *}
<td>{$x}</td>
<td><a href="#">{$objAttribute->GetDescription()}</a></td>
<td>{$objAttribute->GetPublication()}</td>
<td><a href="#" class="add">Powiąż</a></td>
</tr>
{foreachelse}
<tr>
<td colspan="4">Brak nie powiązanych parametrów</td>
</tr>
{/foreach}
<tr class="selAllRow">
{*<td class="cornerBottom"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a><a href="#">usuń</a>
<div class="pager"><div class="perpage">wyświetl:<br/><select id="perpage" class="tiny " name="#"><option>10</option><option>25</option><option>50</option><option>100</option></select></div><a href="#" class="prvnext">&laquo; poprzednia</a><a href="#">1</a><a class="active" href="#">2</a><a href="#">3</a>...<a href="#">50</a><a href="#">51</a><a href="#">52</a>...<a href="#">100</a><a class="prvnext" href="#">następna &raquo;</a></div></td> *}
</tr>
</table>
{else}
Wybierz kategorie żeby zobaczyć nie powiązane parametry
{/if}
{/dropDownContainer}