update
This commit is contained in:
57
Admin/template/partial/ProductAttribute/Add.tpl
Normal file
57
Admin/template/partial/ProductAttribute/Add.tpl
Normal file
@@ -0,0 +1,57 @@
|
||||
<h1>Dodaj Kategorie</h1>
|
||||
<script language="javascript" type="text/javascript">
|
||||
urlStatic = '{$urlStatic}';
|
||||
</script>
|
||||
|
||||
<form method="post" action="{url ProductAttribute='Add'}" enctype="multipart/form-data">
|
||||
{if isset($objAttributeProduct)}
|
||||
<input type="hidden" name="idProduct" value="{$objAttributeProduct->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='objAttributeProduct' func='getDescription'}
|
||||
{if isset($error.name)}<div style="color: red;" id="actionError" class="validate">{$error.name}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Publikuj:</td>
|
||||
<td>{formField type='checkbox' name='publication' obj='objAttributeProduct' func='GetPublication'}</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'));" /> {formField type='input' name='datepublication' errorClass='validate' obj='objAttributeProduct' 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 _value=$controller,index}'"/>
|
||||
{/if}
|
||||
|
||||
<input type="submit" value="Zapisz" name="doAttributeAdd"/>
|
||||
</div>
|
||||
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
|
||||
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
|
||||
</form>
|
||||
57
Admin/template/partial/ProductAttribute/Edit.tpl
Normal file
57
Admin/template/partial/ProductAttribute/Edit.tpl
Normal file
@@ -0,0 +1,57 @@
|
||||
<h1>Dodaj Kategorie</h1>
|
||||
<script language="javascript" type="text/javascript">
|
||||
urlStatic = '{$urlStatic}';
|
||||
</script>
|
||||
|
||||
<form method="post" action="{url ProductAttribute='Edit' id=$objAttributeProduct->GetId() }" enctype="multipart/form-data">
|
||||
{if isset($objAttributeProduct)}
|
||||
<input type="hidden" name="idProductAttribute" value="{$objAttributeProduct->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='objAttributeProduct' func='getDescription'}
|
||||
{if isset($error.name)}<div style="color: red;" id="actionError" class="validate">{$error.name}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Publikuj:</td>
|
||||
<td>{formField type='checkbox' name='publication' obj='objAttributeProduct' func='GetPublication'}</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'));" /> {formField type='input' name='datepublication' errorClass='validate' obj='objAttributeProduct' 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 _value=$controller,index}'"/>
|
||||
{/if}
|
||||
|
||||
<input type="submit" value="Zapisz" name="doAttributeEdit"/>
|
||||
</div>
|
||||
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
|
||||
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
|
||||
</form>
|
||||
48
Admin/template/partial/ProductAttribute/Index.tpl
Normal file
48
Admin/template/partial/ProductAttribute/Index.tpl
Normal file
@@ -0,0 +1,48 @@
|
||||
<h1>Parametry produktu</h1>
|
||||
|
||||
{dropDownContainer title='Parametry'}
|
||||
|
||||
<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"> </td> *}
|
||||
<th><div style="float:left; width:100%">Lp.<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></div></th>
|
||||
<th>Nazwa<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
{*<th>Wartość<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>*}
|
||||
<th class="noSort">Publikuj<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
<th class="noSort"><a href="{url ProductAttribute=Add}" class="add">Dodaj</a> <div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
</tr>
|
||||
{assign var=x value=0}
|
||||
{foreach from=$arrayObjProductAttribute item=objAttribute}
|
||||
{assign var=x value=$x+1}
|
||||
{assign var=idAttribute value=$objAttribute->GetId()}
|
||||
<tr>
|
||||
{*<td class="selAll"><input name="Checkbox1" type="checkbox" /></td> *}
|
||||
<td>{$x}</td>
|
||||
<td><a href="{url ProductAttribute=Index idAttribute=$objAttribute->GetId()}">{$objAttribute->GetDescription()}</a></td>
|
||||
<td>{$objAttribute->GetPublication()}</td>
|
||||
<td style="width:15px">
|
||||
<a href="{url ProductAttribute=Edit id=$idAttribute}" class="edit">edytuj</a><a href="{url ProductAttribute=Delete id=$idAttribute}" class="delete">usuń</a>
|
||||
</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">« 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 »</a></div></td> *}
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
{/dropDownContainer}
|
||||
|
||||
{if isset($linkedAttribute)}
|
||||
{$linkedAttribute}
|
||||
{/if}
|
||||
|
||||
{if isset($unlinkedAttribute)}
|
||||
{$unlinkedAttribute}
|
||||
{/if}
|
||||
49
Admin/template/partial/ProductAttribute/IndexStructure.tpl
Normal file
49
Admin/template/partial/ProductAttribute/IndexStructure.tpl
Normal 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}
|
||||
45
Admin/template/partial/ProductAttribute/LinkedAttribute.tpl
Normal file
45
Admin/template/partial/ProductAttribute/LinkedAttribute.tpl
Normal file
@@ -0,0 +1,45 @@
|
||||
{dropDownContainer title='Powią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"> </td> *}
|
||||
<th style="width: 10%"><div style="float:left; width:100%">Lp.<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></div></th>
|
||||
<th style="width: 50%">Parametr<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
{*<th>Wartość<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>*}
|
||||
<th style="width: 20%" class="noSort">Publikuj<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
<th style="width: 20%" class="noSort">{*<a href="#" class="add">Dodaj</a> <div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div>*}</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="delete">usuń</a>*}
|
||||
</td>
|
||||
</tr>
|
||||
{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">« 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 »</a></div></td> *}
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
{else}
|
||||
Wybierz kategorie żeby zobaczyć powiązane parametry
|
||||
{/if}
|
||||
|
||||
{/dropDownContainer}
|
||||
@@ -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"> </td> *}
|
||||
<th style="width: 10px"><div style="float:left; width:100%">Lp.<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></div></th>
|
||||
<th style="width: 50%">Parametr<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
{*<th>Wartość<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>*}
|
||||
<th style="width: 20%" class="noSort">Publikuj<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </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">« 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 »</a></div></td> *}
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
{else}
|
||||
Wybierz kategorie żeby zobaczyć nie powiązane parametry
|
||||
{/if}
|
||||
|
||||
{/dropDownContainer}
|
||||
Reference in New Issue
Block a user