update
This commit is contained in:
362
Admin/template/partial/Product/Add.tpl
Normal file
362
Admin/template/partial/Product/Add.tpl
Normal file
@@ -0,0 +1,362 @@
|
||||
<h1>Dodaj mieszkanie</h1>
|
||||
<script language="javascript" type="text/javascript">
|
||||
urlStatic = '{$urlStatic}';
|
||||
</script>
|
||||
|
||||
<form method="post" action="{url Product='Add'}" enctype="multipart/form-data">
|
||||
{if isset($objProduct)}
|
||||
<input type="hidden" name="idProduct" value="{$objProduct->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>
|
||||
{if $lang != 'pl'}
|
||||
<tr>
|
||||
<td>Wprowadź dane elementu innej wersji językowej</td>
|
||||
<td>
|
||||
<a href="#" ></a>
|
||||
<div>
|
||||
<select id="productLangId">
|
||||
<option value="">
|
||||
|
||||
</option>
|
||||
{foreach from=$arrayProduct key=idProductLang item=produktLang}
|
||||
<option value="{$idProductLang}">
|
||||
{$produktLang}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<input type="button" value="uzupełnij" onclick="LoadProductLang('productLangId', '{url Product=AddLang idProduct=#i#d# idElement=$idStructure}');">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr>
|
||||
<td>Nazwa:</td>
|
||||
<td>
|
||||
{formField name='name' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='getName'}
|
||||
{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='objProduct' 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='objProduct' func='GetDatePublicationWithoutTime' id='datepub'}
|
||||
{if isset($error.datepublication)}<div style="color: red;" id="actionError" class="validate">{$error.datepublication}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Godzina:</b></td>
|
||||
<td>
|
||||
{formField type='input' maxlength='2' errorClass='validate' name='timepublication' obj='objProduct' func='GetDatePublicationTime'}
|
||||
<span class="grayText smallText">format (HH)</span>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Kolejność:</td>
|
||||
<td>
|
||||
{formField type='input' maxlength='2' class='inputWidth141' errorClass='validate' name='weight' obj='objFile' func='GetWeight'}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
{dropDownContainer title="Karta"}
|
||||
<div class="articlePreviewRight">
|
||||
<input type="file" name="filename" />
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
{/dropDownContainer}
|
||||
{dropDownContainer title="Plik"}
|
||||
<div>
|
||||
{if isset($objProduct)}
|
||||
<img src="{$objProduct->GetFileIcon()}" alt="" title="" style="float: left;" >
|
||||
<p>{$objProduct->GetName()}</p>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<br />
|
||||
<div class="articlePreviewRight">
|
||||
<input type="file" name="filename_pdf" >
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
{/dropDownContainer}
|
||||
|
||||
{dropDownContainer title="Treść}
|
||||
|
||||
<div class="center">
|
||||
{if isset($objProduct)}
|
||||
{assign var='tresc' value=$objProduct->GetDescription()}
|
||||
{else}
|
||||
{assign var='tresc' value=''}
|
||||
{/if}
|
||||
{insertCkEditor width='1020' height='380' name='tresc' toolbar='Formix' value=$tresc}
|
||||
</div>
|
||||
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
{dropDownContainer title="Opis dodatkowy" isHidden=true}
|
||||
<div class="articlePreviewRight">
|
||||
{if isset($objProduct)}
|
||||
{assign var='zajawka' value=$objProduct->GetShortnote()}
|
||||
{else}
|
||||
{assign var='zajawka' value=''}
|
||||
{/if}
|
||||
{insertCkEditor width='1020' height='380' name='zajawka' toolbar='Basic' value=$zajawka}
|
||||
<div class="validate" id="shortnoteHiddenError"></div>
|
||||
{if isset($error.zajawka)}<div style="color: red;" id="actionError" class="validate">{$error.zajawka}</div>{/if}
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
{dropDownContainer title="Kategorie" isHidden=true}
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
|
||||
<tr>
|
||||
<td>Kategorie:</td>
|
||||
<td class="left">
|
||||
{foreach from=$arrayStructureProductCategory item=productCategory key=idProductCategory}
|
||||
<input type="checkbox" value="1" name="prod_category_value[{$productCategory->GetId()}]" class="input" {if $productCategory->GetChecked()} checked{/if} />{$productCategory->GetName()};</br>
|
||||
{if $productCategory->GetHaveChildren()}
|
||||
{foreach from=$productCategory->GetArrayChildren() item=subProductCategory key=idSubProductCategory}
|
||||
-> <input type="checkbox" value="1" name="prod_category_value[{$subProductCategory->GetId()}]" class="input" {if $subProductCategory->GetChecked()} checked{/if} />{$subProductCategory->GetName()};</br>
|
||||
{/foreach}
|
||||
{/if}
|
||||
{/foreach}
|
||||
<p><br>
|
||||
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
|
||||
{dropDownContainer title="Parametry" isHidden=true}
|
||||
|
||||
{foreach from=$arraySpecType item=specTypeName key=idSpecTypeName}
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
|
||||
<th style="width: 20%">{$specTypeName}{*<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div>*}</th>
|
||||
|
||||
</tr>
|
||||
<tr class="selAllRow" id="linkParam" style="display: none;">
|
||||
<td colspan="6">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="id_spec_{$idSpecTypeName}" id="id_spec_{$idSpecTypeName}">
|
||||
{assign var=x value=0}
|
||||
{foreach from=$arrayObjProductSpecification item=objProductSpecification}
|
||||
{assign var=x value=$x+1}
|
||||
|
||||
{if $objProductSpecification->GetTyp() == $idSpecTypeName}
|
||||
<input type="checkbox" value="1" name="spec_value[{$objProductSpecification->GetId()}]" class="input" />{$objProductSpecification->GetValue()};
|
||||
{/if}
|
||||
|
||||
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>lub dodaj nowy:
|
||||
<input type="text" name="spec_new_{$idSpecTypeName}" id="spec_new_{$idSpecTypeName}" style="width: 200px;" value="" /> <input type="button" value="dodaj" onclick="AddSpec('{url Product=AddSpecification type=$idSpecTypeName}', '#spec_new_{$idSpecTypeName}', '#id_spec_{$idSpecTypeName}')"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
{/foreach}
|
||||
{/dropDownContainer}
|
||||
|
||||
{dropDownContainer title="Parametry mieszkania"}
|
||||
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="commonTable">
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
|
||||
<td>Piętro:</td>
|
||||
<td class="left">
|
||||
<input type="hidden" name="idProductCategory" value="1" />
|
||||
<select name="idProductCategory">
|
||||
{foreach from=$arrayStructureProductCategory item=productCategory key=idProductCategory}
|
||||
<option value="{$productCategory->GetId()}">
|
||||
{$productCategory->GetName()}
|
||||
</option>
|
||||
{if $productCategory->GetHaveChildren()}
|
||||
{foreach from=$productCategory->GetArrayChildren() item=subProductCategory key=idSubProductCategory}
|
||||
<option value="{$subProductCategory->GetId()}"}>
|
||||
-> {$subProductCategory->GetName()}
|
||||
</option>
|
||||
{/foreach}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
{*<tr>
|
||||
<td>Promocja:</td>
|
||||
<td>{formField type='checkbox' name='sale' obj='objProduct' func='GetSale'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Nowość:</td>
|
||||
<td>{formField type='checkbox' name='new' obj='objProduct' func='GetNew'}</td>
|
||||
</tr>*}
|
||||
<tr>
|
||||
<td>Status:</td>
|
||||
<td>
|
||||
<select name="available">
|
||||
|
||||
<option value="0">
|
||||
sprzedane
|
||||
</option>
|
||||
<option value="1">
|
||||
wolne
|
||||
</option>
|
||||
<option value="2">
|
||||
rezerwacja
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
{*
|
||||
<tr>
|
||||
<td>Polecany:</td>
|
||||
<td>{formField type='checkbox' name='special' obj='objProduct' func='GetSpecial'}</td>
|
||||
</tr>
|
||||
*}
|
||||
<tr>
|
||||
<td>Typ:</td>
|
||||
<td>
|
||||
{formField name='type' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetType'}
|
||||
{if isset($error.type)}<div style="color: red;" id="actionError" class="validate">{$error.type}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Numer:</td>
|
||||
<td>
|
||||
{formField name='amount' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetAmount'}
|
||||
{if isset($error.amount)}<div style="color: red;" id="actionError" class="validate">{$error.amount}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Cena:</td>
|
||||
<td>
|
||||
{formField name='price' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetPrice'}
|
||||
{if isset($error.price)}<div style="color: red;" id="actionError" class="validate">{$error.price}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{*<tr>
|
||||
<td>Cena promocyjna:</td>
|
||||
<td>
|
||||
{formField name='price_sale' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetPriceSale'}
|
||||
{if isset($error.price_sale)}<div style="color: red;" id="actionError" class="validate">{$error.price_sale}</div>{/if}
|
||||
</td>
|
||||
</tr>*}
|
||||
<tr>
|
||||
<td>Powierzchnia:</td>
|
||||
<td>
|
||||
{formField name='dimension' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetDimension'}
|
||||
{if isset($error.dimension)}<div style="color: red;" id="actionError" class="validate">{$error.dimension}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Powierzchnia balkonu/tarasu/loggii:</td>
|
||||
<td>
|
||||
{formField name='code' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetCode'}
|
||||
{if isset($error.code)}<div style="color: red;" id="actionError" class="validate">{$error.code}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Powierzchnia balkonu/tarasu/loggii opis:</td>
|
||||
<td>
|
||||
{formField name='zajawka' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetShortnote'}
|
||||
{if isset($error.zajawka)}<div style="color: red;" id="actionError" class="validate">{$error.zajawka}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Liczba pokoi:</td>
|
||||
<td>
|
||||
{formField name='bulb' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetBulb'}
|
||||
{if isset($error.bulb)}<div style="color: red;" id="actionError" class="validate">{$error.bulb}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
{dropDownContainer title="Seria" isHidden=true}
|
||||
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="commonTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Wybierz serię:</td>
|
||||
<td>
|
||||
<select id="id_series" name="id_series">
|
||||
<option value="">
|
||||
|
||||
</option>
|
||||
{foreach from=$arraySeries key=idSeries item=series}
|
||||
<option value="{$idSeries}">
|
||||
{$series}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>lub dodaj nową:</td>
|
||||
<td><input type="text" name="series_new" id="series_new" style="width: 200px;" value="" /> <input type="button" value="dodaj" onclick="AddSeries('{url Product=AddSeries}', '#series_new')"/></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{/dropDownContainer}
|
||||
|
||||
{dropDownContainer title="Dodaj zdjecia" isHidden=true}
|
||||
<iframe name="PhotoUpload" id="PhotoUpload" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" height="70" width="625" src="{url Image='Form'}">
|
||||
<noscript>
|
||||
Do wyświetlenia konieczne jest działanie ramek (iframe).
|
||||
</noscript>
|
||||
</iframe>
|
||||
{/dropDownContainer}
|
||||
{dropDownContainer title="Zdjecia" isHidden=true}
|
||||
<div name="PhotoDisplay" id="PhotoDisplay" class="PhotoDisplay">
|
||||
{foreach from=$arrayPhoto item=file name=photo key=key}<div style="float:left; text-align: center; border:1px solid #000000; margin-right:5px; margin-bottom: 5px"><img src="{$urlStatic}/temp/{$file.th}" alt="test" /></div> {/foreach}
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
{/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="doProductAdd"/>
|
||||
</div>
|
||||
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
|
||||
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
|
||||
</form>
|
||||
195
Admin/template/partial/Product/AddLang.tpl
Normal file
195
Admin/template/partial/Product/AddLang.tpl
Normal file
@@ -0,0 +1,195 @@
|
||||
<h1>Dodaj produkt</h1>
|
||||
<script language="javascript" type="text/javascript">
|
||||
urlStatic = '{$urlStatic}';
|
||||
</script>
|
||||
|
||||
<form method="post" action="{url Product='AddLang' idProduct=$idProduct idElement=$idStructure}" enctype="multipart/form-data">
|
||||
{if isset($objProduct)}
|
||||
<input type="hidden" name="idProduct" value="{$objProduct->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>Wprowadź dane elementu innej wersji językowej</td>
|
||||
<td>
|
||||
<a href="#" ></a>
|
||||
<div>
|
||||
<select id="productLangId">
|
||||
<option value="">
|
||||
|
||||
</option>
|
||||
{foreach from=$arrayProduct key=idProductLang item=produktLang}
|
||||
<option value="{$idProductLang}" {if $objProduct->GetId() == $idProductLang}selected{/if}>
|
||||
{$produktLang}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<input type="button" value="uzupełnij" onclick="LoadProductLang('productLangId', '{url Product=AddLang idProduct=#i#d# idElement=$idStructure}');">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Nazwa:</td>
|
||||
<td>
|
||||
{formField name='name' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='getName'}
|
||||
{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='objProduct' 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='objProduct' func='GetDatePublicationWithoutTime' id='datepub'}
|
||||
{if isset($error.datepublication)}<div style="color: red;" id="actionError" class="validate">{$error.datepublication}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Godzina:</b></td>
|
||||
<td>
|
||||
{formField type='input' maxlength='2' errorClass='validate' name='timepublication' obj='objProduct' func='GetDatePublicationTime'}
|
||||
<span class="grayText smallText">format (HH)</span>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
{*<tr>
|
||||
<td>Kolejność:</td>
|
||||
<td>
|
||||
|
||||
{formField name='tytul' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetTitle'}
|
||||
{if isset($error.tytul)}<div style="color: red;" id="actionError" class="validate">{$error.tytul}</div>{/if}
|
||||
</td>
|
||||
</tr>*}
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
{dropDownContainer title="Zdjecie"}
|
||||
<div class="floatLeft" style="margin-left: 10px;">
|
||||
{if $objProduct->GetPictureMini()}<img src="{$objProduct->GetPictureMiniUrl()}" />{/if}
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<div class="articlePreviewRight">
|
||||
<input type="file" name="filename" />
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<div class="articlePreviewRight">
|
||||
<input type="checkbox" name="deletePhoto" > Usuń obrazek
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
{/dropDownContainer}
|
||||
|
||||
{dropDownContainer title="Zajawka" isHidden=true}
|
||||
<div class="articlePreviewRight">
|
||||
{if isset($objProduct)}
|
||||
{assign var='zajawka' value=$objProduct->GetShortnote()}
|
||||
{else}
|
||||
{assign var='zajawka' value=''}
|
||||
{/if}
|
||||
{insertFckEditor width='620' height='159' name='zajawka' toolbar='Basic' value=$zajawka}
|
||||
<div class="validate" id="shortnoteHiddenError"></div>
|
||||
{if isset($error.zajawka)}<div style="color: red;" id="actionError" class="validate">{$error.zajawka}</div>{/if}
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
{/dropDownContainer}
|
||||
|
||||
{dropDownContainer title="Treść}
|
||||
|
||||
<div class="center">
|
||||
{if isset($objProduct)}
|
||||
{assign var='tresc' value=$objProduct->GetDescription()}
|
||||
{else}
|
||||
{assign var='tresc' value=''}
|
||||
{/if}
|
||||
{insertFckEditor width='620' height='380' name='tresc' toolbar='Formix' value=$tresc}
|
||||
</div>
|
||||
|
||||
{/dropDownContainer}
|
||||
|
||||
{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>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 class="noSort">Publikuj<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div>*}</th>
|
||||
{*<th 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><input type="text" value="{$objAttribute->GetValue()}" name="attr_value[{$objAttribute->GetId()}]" class="input" /></td>
|
||||
{*<td style="width:15px">
|
||||
<input name="Checkbox2" type="checkbox" checked="checked" />
|
||||
</td>
|
||||
<td style="width:15px">
|
||||
<a href="#" class="edit">edytuj</a><a href="#" 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}
|
||||
{dropDownContainer title="Dodaj zdjecia"}
|
||||
<iframe name="PhotoUpload" id="PhotoUpload" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" height="70" width="625" src="{url Image='Form'}">
|
||||
<noscript>
|
||||
Do wyświetlenia konieczne jest działanie ramek (iframe).
|
||||
</noscript>
|
||||
</iframe>
|
||||
{/dropDownContainer}
|
||||
{dropDownContainer title="Zdjecia"}
|
||||
<div >
|
||||
{foreach from=$arrayImage item=image name=photo key=key}
|
||||
<div id="image_{$image->GetId()}" style="float:left; text-align: center; border:1px solid #000000; margin-right:5px; margin-bottom: 5px"><img src="{$image->GetFullUrlMiniId($objProduct->GetId(), 'Product')}" alt="test" />
|
||||
<div>
|
||||
<a href="#" onclick="DeletePhoto('{url Image=DeleteImage}', '{$image->GetId()}'); return false;"><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
|
||||
</div>
|
||||
</div> {/foreach}
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<div name="PhotoDisplay" id="PhotoDisplay" class="PhotoDisplay">
|
||||
{if isset($arrayPhoto)}
|
||||
{foreach from=$arrayPhoto item=file name=photo key=key}<div style="float:left; text-align: center; border:1px solid #000000; margin-right:5px; margin-bottom: 5px"><img src="{$urlStatic}/temp/{$file.th}" alt="test"/></div> {/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
{/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="doProductAdd"/>
|
||||
</div>
|
||||
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
|
||||
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
|
||||
</form>
|
||||
1
Admin/template/partial/Product/AddSeries.tpl
Normal file
1
Admin/template/partial/Product/AddSeries.tpl
Normal file
@@ -0,0 +1 @@
|
||||
<option value="{$idSeries}" selected>{$series}</option>
|
||||
9
Admin/template/partial/Product/AddSpecification.tpl
Normal file
9
Admin/template/partial/Product/AddSpecification.tpl
Normal file
@@ -0,0 +1,9 @@
|
||||
{if $state}
|
||||
<input type="checkbox" value="1" name="spec_value[{$idSpec}]" class="input" checked />{$spec};
|
||||
{else}
|
||||
{literal}
|
||||
<script>
|
||||
alert('Podana nazwa istnieje!');
|
||||
</script>
|
||||
{/literal}
|
||||
{/if}
|
||||
0
Admin/template/partial/Product/AjaxAddAttribute.tpl
Normal file
0
Admin/template/partial/Product/AjaxAddAttribute.tpl
Normal file
1
Admin/template/partial/Product/AjaxCeackLang.tpl
Normal file
1
Admin/template/partial/Product/AjaxCeackLang.tpl
Normal file
@@ -0,0 +1 @@
|
||||
{$isLang}
|
||||
1
Admin/template/partial/Product/AjaxEditWeight.tpl
Normal file
1
Admin/template/partial/Product/AjaxEditWeight.tpl
Normal file
@@ -0,0 +1 @@
|
||||
<div onclick="WeightInput('{url Product=AjaxEditWeight}', '#weightList{$id}', '{$id}', '{$value}');">{$value}</div>
|
||||
1
Admin/template/partial/Product/AjaxLimited.tpl
Normal file
1
Admin/template/partial/Product/AjaxLimited.tpl
Normal file
@@ -0,0 +1 @@
|
||||
<a href="#" title="zmień" onclick="SetState('{url Product=AjaxLimited}', '#limitedList{$id}', '{$id}', '{$state}'); return false;">{$state|replace:"0":"Nie"|replace:"1":"Tak"}</a>
|
||||
61
Admin/template/partial/Product/AjaxList.tpl
Normal file
61
Admin/template/partial/Product/AjaxList.tpl
Normal file
@@ -0,0 +1,61 @@
|
||||
<table width="100%" class="datagrid" cellpadding="4" cellspacing="1" border="0">
|
||||
<tr class="selAllRow">
|
||||
<td class="cornerTop"></td><td colspan="6">{*<a href="#">Zaznacz wszystkie</a>*} <a href="#" onclick="DeleteProduct('{url Product=AjaxDeleteChecked}', ''); return false;">usuń</a> {*<a href="#">publikuj</a><a href="#">nie publikuj</a>*}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="selAll"> </td>
|
||||
<th>id</th>
|
||||
<th>nazwa</th>
|
||||
<th>data publikacji</th>
|
||||
<th>publikacja</th>
|
||||
<th>wyprzedaż</th>
|
||||
<th>promocja</th>
|
||||
<th>nowość</th>
|
||||
<th>kolejność</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>
|
||||
|
||||
{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} id="row_{$obj->GetId()}">
|
||||
<td class="selAll"><input name="deleteList[{$obj->GetId()}]" type="checkbox" value="{$obj->GetId()}" class="tf" /></td>
|
||||
<td>{$obj->GetId()}</td>
|
||||
<td>{$obj->GetName()}</td>
|
||||
<td>{$obj->GetDate()}</td>
|
||||
<td id="publicationList{$obj->GetId()}"><a href="#" title="zmień" onclick="SetPublication('{url Product=AjaxPublication}', '{$obj->GetId()}', {$obj->GetPublication()}); return false;">{$obj->GetPublication()|replace:"0":"Nie"|replace:"1":"Tak"}</a></td>
|
||||
|
||||
<td id="limitedList{$obj->GetId()}"><a href="#" title="zmień" onclick="SetState('{url Product=AjaxLimited}', '#limitedList{$obj->GetId()}', '{$obj->GetId()}', {$obj->GetLimited()}); return false;">{$obj->GetLimited()|replace:"0":"Nie"|replace:"1":"Tak"}</a></td>
|
||||
<td id="saleList{$obj->GetId()}"><a href="#" title="zmień" onclick="SetState('{url Product=AjaxSale}', '#saleList{$obj->GetId()}', '{$obj->GetId()}', {$obj->GetSale()}); return false;">{$obj->GetSale()|replace:"0":"Nie"|replace:"1":"Tak"}</a></td>
|
||||
<td id="newList{$obj->GetId()}"><a href="#" title="zmień" onclick="SetState('{url Product=AjaxNew}', '#newList{$obj->GetId()}', '{$obj->GetId()}', {$obj->GetNew()}); return false;">{$obj->GetNew()|replace:"0":"Nie"|replace:"1":"Tak"}</a></td>
|
||||
<td id="weightList{$obj->GetId()}"><div onclick="WeightInput('{url Product=AjaxEditWeight}', '#weightList{$obj->GetId()}', '{$obj->GetId()}', '{$obj->GetWeight()}');" title="zmień">{$obj->GetWeight()}</div> </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="#" onclick="checkLang({$idElement},'{url Product=AjaxCeackLang idProduct=$obj->GetId() idElement=$idElement}', '{url Product=Delete idProduct=$obj->GetId() idElement=$idElement}'); return false;"><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{if $smarty.foreach.obj.last}
|
||||
<tr class="selAllRow">
|
||||
<td class="cornerBottom"></td><td colspan="6">{*<a href="#">Zaznacz wszystkie</a>*}<a href="#" onclick="DeleteProduct('{url Product=AjaxDeleteChecked}', ''); return false;">usuń</a> {*<a href="#">publikuj</a> <a href="#">nie publikuj</a>*}
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="10" class="selAllRow" >
|
||||
<div class="paging">
|
||||
{insertPagination _class='pager'}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{foreachelse}
|
||||
{if !isset($searchString) || $searchString == ""}
|
||||
<tr>
|
||||
<td class="selAll"> </td>
|
||||
<td colspan="9" style="text-align: center;">Brak zdefiniowanych elementów. <br/> Aby dodać kliknij link 'dodaj'.</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</table>
|
||||
1
Admin/template/partial/Product/AjaxNew.tpl
Normal file
1
Admin/template/partial/Product/AjaxNew.tpl
Normal file
@@ -0,0 +1 @@
|
||||
<a href="#" title="zmień" onclick="SetState('{url Product=AjaxNew}', '#newList{$id}', '{$id}', '{$state}'); return false;">{$state|replace:"0":"Nie"|replace:"1":"Tak"}</a>
|
||||
1
Admin/template/partial/Product/AjaxPublication.tpl
Normal file
1
Admin/template/partial/Product/AjaxPublication.tpl
Normal file
@@ -0,0 +1 @@
|
||||
<a href="#" title="zmień" onclick="SetPublication('{url Product=AjaxPublication}', '{$id}', '{$state}'); return false;">{$state|replace:"0":"Nie"|replace:"1":"Tak"}</a>
|
||||
1
Admin/template/partial/Product/AjaxSale.tpl
Normal file
1
Admin/template/partial/Product/AjaxSale.tpl
Normal file
@@ -0,0 +1 @@
|
||||
<a href="#" title="zmień" onclick="SetState('{url Product=AjaxSale}', '#saleList{$id}', '{$id}', '{$state}'); return false;">{$state|replace:"0":"Nie"|replace:"1":"Tak"}</a>
|
||||
1
Admin/template/partial/Product/CheckSpec.tpl
Normal file
1
Admin/template/partial/Product/CheckSpec.tpl
Normal file
@@ -0,0 +1 @@
|
||||
{$state}
|
||||
360
Admin/template/partial/Product/Edit.tpl
Normal file
360
Admin/template/partial/Product/Edit.tpl
Normal file
@@ -0,0 +1,360 @@
|
||||
<h1>Edytuj element</h1>
|
||||
<script language="javascript" type="text/javascript">
|
||||
urlStatic = '{$urlStatic}';
|
||||
</script>
|
||||
|
||||
<form method="post" action="{url Product='Edit' idProduct=$idProduct idElement=$idStructure}" enctype="multipart/form-data">
|
||||
{if isset($objProduct)}
|
||||
<input type="hidden" name="idProduct" value="{$objProduct->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='objProduct' func='getName'}
|
||||
{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='objProduct' 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='objProduct' func='GetDatePublicationWithoutTime' id='datepub'}
|
||||
{if isset($error.datepublication)}<div style="color: red;" id="actionError" class="validate">{$error.datepublication}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Godzina:</b></td>
|
||||
<td>
|
||||
{formField type='input' maxlength='2' errorClass='validate' name='timepublication' obj='objProduct' func='GetDatePublicationTime'}
|
||||
<span class="grayText smallText">format (HH)</span>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Kolejność:</td>
|
||||
<td>
|
||||
{formField type='input' maxlength='2' class='inputWidth141' errorClass='validate' name='weight' obj='objFile' func='GetWeight'}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
{dropDownContainer title="Karta"}
|
||||
<div class="floatLeft" style="margin-left: 10px;">
|
||||
{if $objProduct->GetPictureMini()}<img src="{$objProduct->GetPictureMiniUrl()}" />{/if}
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<div class="articlePreviewRight">
|
||||
<input type="file" name="filename" />
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<div class="articlePreviewRight">
|
||||
<input type="checkbox" name="deletePhoto" > Usuń obrazek
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
{/dropDownContainer}
|
||||
|
||||
{dropDownContainer title="Plik"}
|
||||
<div>
|
||||
{if $objProduct->GetFile()}
|
||||
{assign var=objFile value=$objProduct->GetFile()}
|
||||
<img src="{$urlStatic}/image/fileIcon/pdf.gif " alt="" title="" style="float: left;" >
|
||||
<p>{$objFile->GetName()}</p>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
<div class="articlePreviewRight">
|
||||
<input type="file" name="filename_pdf" >
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
{/dropDownContainer}
|
||||
{dropDownContainer title="Treść"}
|
||||
|
||||
<div class="center">
|
||||
{if isset($objProduct)}
|
||||
{assign var='tresc' value=$objProduct->GetDescription()}
|
||||
{else}
|
||||
{assign var='tresc' value=''}
|
||||
{/if}
|
||||
{insertCkEditor width='1020' height='380' name='tresc' toolbar='Formix' value=$tresc}
|
||||
</div>
|
||||
|
||||
{/dropDownContainer}
|
||||
|
||||
{dropDownContainer title="Opis dodatkowy" isHidden=true}
|
||||
<div class="articlePreviewRight">
|
||||
{if isset($objProduct)}
|
||||
{assign var='zajawka' value=$objProduct->GetShortnote()}
|
||||
{else}
|
||||
{assign var='zajawka' value=''}
|
||||
{/if}
|
||||
{insertCkEditor width='1020' height='380' name='zajawka' toolbar='Basic' value=$zajawka}
|
||||
<div class="validate" id="shortnoteHiddenError"></div>
|
||||
{if isset($error.zajawka)}<div style="color: red;" id="actionError" class="validate">{$error.zajawka}</div>{/if}
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
{dropDownContainer title="Kategorie" isHidden=true}
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
|
||||
<tr>
|
||||
<td>Kategorie:</td>
|
||||
<td class="left">
|
||||
{foreach from=$arrayStructureProductCategory item=productCategory key=idProductCategory}
|
||||
<input type="checkbox" value="1" name="prod_category_value[{$productCategory->GetId()}]" class="input" {if $productCategory->GetChecked() || $objProduct->getIdMfProductCategory() == $productCategory->GetId()} checked{/if} />{$productCategory->GetName()};</br>
|
||||
{if $productCategory->GetHaveChildren()}
|
||||
{foreach from=$productCategory->GetArrayChildren() item=subProductCategory key=idSubProductCategory}
|
||||
-> <input type="checkbox" value="1" name="prod_category_value[{$subProductCategory->GetId()}]" class="input" {if $subProductCategory->GetChecked()} checked{/if} />{$subProductCategory->GetName()};</br>
|
||||
{/foreach}
|
||||
{/if}
|
||||
{/foreach}
|
||||
<p><br>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
|
||||
{dropDownContainer title="Parametry" isHidden=true}
|
||||
|
||||
{foreach from=$arraySpecType item=specTypeName key=idSpecTypeName}
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
|
||||
<th style="width: 20%">{$specTypeName}{*<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div>*}</th>
|
||||
|
||||
</tr>
|
||||
<tr class="selAllRow" id="linkParam" style="display: none;">
|
||||
<td colspan="6">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="id_spec_{$idSpecTypeName}" id="id_spec_{$idSpecTypeName}">
|
||||
{assign var=x value=0}
|
||||
{foreach from=$arrayObjProductSpecification item=objProductSpecification}
|
||||
{assign var=x value=$x+1}
|
||||
|
||||
{if $objProductSpecification->GetTyp() == $idSpecTypeName}
|
||||
<input type="checkbox" value="1" name="spec_value[{$objProductSpecification->GetId()}]" class="input" {if $objProductSpecification->GetChecked()} checked{/if} />{$objProductSpecification->GetValue()};
|
||||
{/if}
|
||||
|
||||
|
||||
{/foreach}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>lub dodaj nowy:
|
||||
<input type="text" name="spec_new_{$idSpecTypeName}" id="spec_new_{$idSpecTypeName}" style="width: 200px;" value="" /> <input type="button" value="dodaj" onclick="AddSpec('{url Product=AddSpecification type=$idSpecTypeName}', '#spec_new_{$idSpecTypeName}', '#id_spec_{$idSpecTypeName}')"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
{/foreach}
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
{dropDownContainer title="Parametry dla mieszkania"}
|
||||
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="commonTable">
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
|
||||
<td>Piętro:</td>
|
||||
<td class="left">
|
||||
<input type="hidden" name="idProductCategory" value="1" />
|
||||
<select name="idProductCategory">
|
||||
{foreach from=$arrayStructureProductCategory item=productCategory key=idProductCategory}
|
||||
<option value="{$productCategory->GetId()}" {if $productCategory->GetId() == $objProduct->getIdMfProductCategory()}selected{/if}>
|
||||
{$productCategory->GetName()}
|
||||
</option>
|
||||
{if $productCategory->GetHaveChildren()}
|
||||
{foreach from=$productCategory->GetArrayChildren() item=subProductCategory key=idSubProductCategory}
|
||||
<option value="{$subProductCategory->GetId()}" {if $subProductCategory->GetId() == $objProduct->getIdMfProductCategory()}selected{/if}>
|
||||
-> {$subProductCategory->GetName()}
|
||||
</option>
|
||||
{/foreach}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
{*<tr>
|
||||
<td>Promocja:</td>
|
||||
<td>{formField type='checkbox' name='sale' obj='objProduct' func='GetSale'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Nowość:</td>
|
||||
<td>{formField type='checkbox' name='new' obj='objProduct' func='GetNew'}</td>
|
||||
</tr>*}
|
||||
<tr>
|
||||
<td>Status:</td>
|
||||
<td>
|
||||
<select name="available">
|
||||
|
||||
<option value="0" {if 0 == $objProduct->GetAvailable()}selected{/if}>
|
||||
sprzedane
|
||||
</option>
|
||||
<option value="1" {if 1 == $objProduct->GetAvailable()}selected{/if}>
|
||||
wolne
|
||||
</option>
|
||||
<option value="2" {if 2 == $objProduct->GetAvailable()}selected{/if}>
|
||||
rezerwacja
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
{*
|
||||
<tr>
|
||||
<td>Polecany:</td>
|
||||
<td>{formField type='checkbox' name='special' obj='objProduct' func='GetSpecial'}</td>
|
||||
</tr>*}
|
||||
<tr>
|
||||
<td>Typ:</td>
|
||||
<td>
|
||||
{formField name='type' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetType'}
|
||||
{if isset($error.type)}<div style="color: red;" id="actionError" class="validate">{$error.type}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Numer:</td>
|
||||
<td>
|
||||
{formField name='amount' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetAmount'}
|
||||
{if isset($error.amount)}<div style="color: red;" id="actionError" class="validate">{$error.amount}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Cena:</td>
|
||||
<td>
|
||||
{formField name='price' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetPrice'}
|
||||
{if isset($error.price)}<div style="color: red;" id="actionError" class="validate">{$error.price}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{*
|
||||
<tr>
|
||||
<td>Cena promocyjna:</td>
|
||||
<td>
|
||||
{formField name='price_sale' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetPriceSale'}
|
||||
{if isset($error.price_sale)}<div style="color: red;" id="actionError" class="validate">{$error.price_sale}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
*}
|
||||
|
||||
<tr>
|
||||
<td>Powierzchnia:</td>
|
||||
<td>
|
||||
{formField name='dimension' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetDimension'}
|
||||
{if isset($error.dimension)}<div style="color: red;" id="actionError" class="validate">{$error.dimension}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Powierzchnia balkonu/tarasu/loggii:</td>
|
||||
<td>
|
||||
{formField name='code' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetCode'}
|
||||
{if isset($error.code)}<div style="color: red;" id="actionError" class="validate">{$error.code}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Powierzchnia balkonu/tarasu/loggii opis:</td>
|
||||
<td>
|
||||
{formField name='zajawka' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetShortnote'}
|
||||
{if isset($error.zajawka)}<div style="color: red;" id="actionError" class="validate">{$error.zajawka}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Liczba pokoi:</td>
|
||||
<td>
|
||||
{formField name='bulb' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objProduct' func='GetBulb'}
|
||||
{if isset($error.bulb)}<div style="color: red;" id="actionError" class="validate">{$error.bulb}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
{dropDownContainer title="Seria" isHidden=true}
|
||||
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="commonTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Wybierz serię:</td>
|
||||
<td>
|
||||
<select id="id_series" name="id_series">
|
||||
<option value="">
|
||||
|
||||
</option>
|
||||
{foreach from=$arraySeries key=idSeries item=series}
|
||||
<option value="{$idSeries}" {if $idSeries == $objProduct->GetSeries()} selected{/if}>
|
||||
{$series}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>lub dodaj nową:</td>
|
||||
<td><input type="text" name="series_new" id="series_new" style="width: 200px;" value="" /> <input type="button" value="dodaj" onclick="AddSeries('{url Product=AddSeries}', '#series_new')"/></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{/dropDownContainer}
|
||||
|
||||
{dropDownContainer title="Dodaj zdjecia" isHidden=true}
|
||||
<iframe name="PhotoUpload" id="PhotoUpload" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" height="70" width="625" src="{url Image='Form'}">
|
||||
<noscript>
|
||||
Do wyświetlenia konieczne jest działanie ramek (iframe).
|
||||
</noscript>
|
||||
</iframe>
|
||||
{/dropDownContainer}
|
||||
{dropDownContainer title="Zdjecia" isHidden=true}
|
||||
<div >
|
||||
{foreach from=$arrayImage item=image name=photo key=key}
|
||||
<div id="image_{$image->GetId()}" style="float:left; text-align: center; border:1px solid #000000; margin-right:5px; margin-bottom: 5px"><img src="{$image->GetFullUrlMiniId($objProduct->GetId(), 'Product')}" alt="test" />
|
||||
<div>
|
||||
<a href="#" onclick="DeletePhotoJ('{url Image=DeleteImage}', '{$image->GetId()}'); return false;"><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
|
||||
</div>
|
||||
</div> {/foreach}
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<div name="PhotoDisplay" id="PhotoDisplay" class="PhotoDisplay">
|
||||
{if isset($arrayPhoto)}
|
||||
{foreach from=$arrayPhoto item=file name=photo key=key}<div style="float:left; text-align: center; border:1px solid #000000; margin-right:5px; margin-bottom: 5px"><img src="{$urlStatic}/temp/{$file.th}" alt="test"/></div> {/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
{/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="doProductEdit"/>
|
||||
</div>
|
||||
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
|
||||
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
|
||||
</form>
|
||||
51
Admin/template/partial/Product/Index.tpl
Normal file
51
Admin/template/partial/Product/Index.tpl
Normal file
@@ -0,0 +1,51 @@
|
||||
{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>kolejność</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>{$obj->GetWeight()}</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="#" onclick="checkLang({$idElement},'{url Product=AjaxCeackLang idProduct=$obj->GetId() idElement=$idElement}', '{url Product=Delete idProduct=$obj->GetId() idElement=$idElement}');"><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}
|
||||
204
Admin/template/partial/Product/IndexStructure.tpl
Normal file
204
Admin/template/partial/Product/IndexStructure.tpl
Normal file
@@ -0,0 +1,204 @@
|
||||
{dropDownContainer title="Lista"}
|
||||
<div>
|
||||
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="frameTableForm tableContetntWhite">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Tytuł:</td>
|
||||
<td>
|
||||
<input name="search" id="search" onkeyup="GetTableContent('{url Product=AjaxList}', $('#search').val(), $('#idCategorySelected').val(), $('#publicationList').val(), $('#newList').val(), $('#saleList').val(), $('#limitedList').val());" />
|
||||
</td>
|
||||
|
||||
<td>piętro</td>
|
||||
<td>
|
||||
<select name="idCategorySelected" id="idCategorySelected" onchange="GetTableContent('{url Product=AjaxList}', $('#search').val(), $('#idCategorySelected').val(), $('#publicationList').val(), $('#newList').val(), $('#saleList').val(), $('#limitedList').val());">
|
||||
<option value="-1">
|
||||
Wszystkie
|
||||
</option>
|
||||
{foreach from=$arrayStructureProductCategory item=productCategory key=idProductCategory}
|
||||
<option value="{$productCategory->GetId()}" {*if $productCategory->GetId() == $idCategorySelected}selected{/if*}>
|
||||
{$productCategory->GetName()}
|
||||
</option>
|
||||
{if $productCategory->GetHaveChildren()}
|
||||
{foreach from=$productCategory->GetArrayChildren() item=subProductCategory key=idSubProductCategory}
|
||||
<option value="{$subProductCategory->GetId()}" {*if $subProductCategory->GetId() == $idCategorySelected}selected{/if*}>
|
||||
-> {$subProductCategory->GetName()}
|
||||
</option>
|
||||
{/foreach}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</select>
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
<td>Publikacja:</td>
|
||||
<td>
|
||||
<select name="publicationList" id="publicationList" onchange="GetTableContent('{url Product=AjaxList}', $('#search').val(), $('#idCategorySelected').val(), $('#publicationList').val(), $('#newList').val(), $('#saleList').val(), $('#limitedList').val());">
|
||||
<option value="all">
|
||||
Wszystkie
|
||||
</option>
|
||||
<option value="1">
|
||||
Tak
|
||||
</option>
|
||||
<option value="0">
|
||||
Nie
|
||||
</option>
|
||||
</select>
|
||||
{*<input name="publicationList" type="checkbox" id="publicationList" value="1" onclick="GetTableContent('{url Product=AjaxList}', $('#search').val(), $('#idCategorySelected').val(), $('#publicationList').attr('checked'));" />*}
|
||||
</td>
|
||||
</tr>
|
||||
{*
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
|
||||
<td> </td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
<td>Nowość:</td>
|
||||
<td>
|
||||
<select name="newList" id="newList" onchange="GetTableContent('{url Product=AjaxList}', $('#search').val(), $('#idCategorySelected').val(), $('#publicationList').val(), $('#newList').val(), $('#saleList').val(), $('#limitedList').val());">
|
||||
<option value="all">
|
||||
Wszystkie
|
||||
</option>
|
||||
<option value="1">
|
||||
Tak
|
||||
</option>
|
||||
<option value="0">
|
||||
Nie
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
|
||||
<td> </td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
<td>Promocja:</td>
|
||||
<td>
|
||||
<select name="saleList" id="saleList" onchange="GetTableContent('{url Product=AjaxList}', $('#search').val(), $('#idCategorySelected').val(), $('#publicationList').val(), $('#newList').val(), $('#saleList').val(), $('#limitedList').val());">
|
||||
<option value="all">
|
||||
Wszystkie
|
||||
</option>
|
||||
<option value="1">
|
||||
Tak
|
||||
</option>
|
||||
<option value="0">
|
||||
Nie
|
||||
</option>
|
||||
</select>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
|
||||
<td> </td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
<td>Wyprzedaż:</td>
|
||||
<td>
|
||||
<select name="limitedList" id="limitedList" onchange="GetTableContent('{url Product=AjaxList}', $('#search').val(), $('#idCategorySelected').val(), $('#publicationList').val(), $('#newList').val(), $('#saleList').val(), $('#limitedList').val());">
|
||||
<option value="all">
|
||||
Wszystkie
|
||||
</option>
|
||||
<option value="1">
|
||||
Tak
|
||||
</option>
|
||||
<option value="0">
|
||||
Nie
|
||||
</option>
|
||||
</select>
|
||||
<input name="publicationList" type="checkbox" id="publicationList" value="1" onclick="GetTableContent('{url Product=AjaxList}', $('#search').val(), $('#idCategorySelected').val(), $('#publicationList').attr('checked'));" />
|
||||
</td>
|
||||
</tr>
|
||||
*}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div id="tableContent">
|
||||
<table width="100%" class="datagrid" id="selAllList" cellpadding="4" cellspacing="1" border="0">
|
||||
<tr class="selAllRow">
|
||||
<td class="cornerTop"></td><td colspan="6"><a href="#" onclick="DeleteProduct('{url Product=AjaxDeleteChecked}', ''); return false;">usuń</a>{*<a href="#" id="selectall" class="selectall" onclick="SelectAll();">Zaznacz wszystkie</a>*)nbn <a href="#">usuń</a> {*<a href="#">publikuj</a><a href="#">nie publikuj</a>*}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="selAll"> </td>
|
||||
<th>nr</th>
|
||||
<th>nazwa</th>
|
||||
<th>data publikacji</th>
|
||||
<th>publikacja</th>
|
||||
<th>status</th>
|
||||
<th>plik</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}
|
||||
{assign var=objFile value=$obj->GetFile()}
|
||||
<tr {if $x==1}{assign var=x value=0}{else}{assign var=x value=1}class="even"{/if} id="row_{$obj->GetId()}">
|
||||
<td class="selAll"><input name="deleteList[{$obj->GetId()}]" type="checkbox" value="{$obj->GetId()}" class="tf" /></td>
|
||||
<td>{$obj->GetAmount()}</td>
|
||||
<td>{$obj->GetName()}</td>
|
||||
<td>{$obj->GetDate()}</td>
|
||||
<td id="publicationList{$obj->GetId()}"><a href="#" title="zmień" onclick="SetPublication('{url Product=AjaxPublication}', '{$obj->GetId()}', {$obj->GetPublication()}); return false;">{$obj->GetPublication()|replace:"0":"Nie"|replace:"1":"Tak"}</a></td>
|
||||
<td>{$obj->GetAvailable()|replace:"0":"sprzedane"|replace:"1":"wolne"|replace:"2":"rezerwacja"}</td>
|
||||
<td>{if is_object($objFile)}{$objFile->GetName()}{else}brak{/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="#" onclick="checkLang({$idElement},'{url Product=AjaxCeackLang idProduct=$obj->GetId() idElement=$idElement}', '{url Product=Delete idProduct=$obj->GetId() idElement=$idElement}'); return false;"><img src="{$urlStatic}/image/Admin/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{if $smarty.foreach.obj.last}
|
||||
|
||||
<tr class="selAllRow">
|
||||
<td class="cornerBottom"></td><td colspan="6">{*<a href="#">Zaznacz wszystkie</a>*}<a href="#" onclick="DeleteProduct('{url Product=AjaxDeleteChecked}', ''); return false;">usuń</a> {*<a href="#">publikuj</a> <a href="#">nie publikuj</a>*}
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="10" class="selAllRow" >
|
||||
<div class="paging">
|
||||
{insertPagination _class='pager'}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{foreachelse}
|
||||
{if !isset($searchString) || $searchString == ""}
|
||||
<tr>
|
||||
<td colspan="5" style="text-align: center;">Brak zdefiniowanych mieszkań. <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>
|
||||
</div>
|
||||
{/dropDownContainer}
|
||||
Reference in New Issue
Block a user