Files
2026-04-24 15:32:21 +02:00

77 lines
2.9 KiB
Smarty

<form action="{url HomeSite=EditBaner}" id="sendForm" method="post" enctype="multipart/form-data" >
{dropDownContainer title='Boxy'}
{assign var=x value=1}
{foreach from=$arrayToEdit item=objHomeElement key=keyHome}
<div class="articlePreviewRight" >
<input class="inputWidth141 input100percent" type="hidden" name="elementId[{$keyHome}]" value="{$objHomeElement->GetId()}" />
<table class="frameTableForm tableContetntWhite" cellpadding="5" cellspacing="0" border="0" >
{if $objHomeElement->GetPhotoUrl()}
<tr>
<td colspan="2">
{* <img src="{$objHomeElement->GetPhotoUrl()}" alt="" align="left"/>*}
{assign var=imageSlider value=$objHomeElement->GetPhotoPath()}
{thumb file=$imageSlider longside=false shortside=false width="1200" height="390" link='false' crop=true }
</td>
</tr>
{/if}
<tr>
<td>Tytuł:</td>
<td class="left">
<input class="inputWidth141 input100percent" type="text" name="elementName[{$keyHome}]" value="{$objHomeElement->GetName()|escape}" />
{if isset($error.elementName)}<div style="color: red;" id="actionError">{$error.elementName}</div>{/if}
</td>
</tr>
<tr>
<td>Opis:</td>
<td class="left">
<textarea name="elementText[{$keyHome}]" cols="54" rows="5">{$objHomeElement->GetDescription()}</textarea>
{if isset($error.elementName)}<div style="color: red;" id="actionError">{$error.elementName}</div>{/if}
</td>
</tr>
<tr>
<td>Url:</td>
<td class="left">
<input class="inputWidth141 input100percent" type="text" name="elementUrl[{$keyHome}]" value="{$objHomeElement->GetSourceUrl()}" /></br>
{if isset($error.elementName)}<div style="color: red;" id="actionError">{$error.elementName}</div>{/if}
</td>
</tr>
<tr>
<td>Obraz:</td>
<td class="left">
<input type="file" name="elementImg_{$keyHome}"><br/>
</td>
</tr>
<tr>
<td>Wyczyść:</td>
<td class="left">
<input type="checkbox" name="elementClear[{$keyHome}]"><br/>
</td>
</tr>
<tr>
<td>Kolejność:</td>
<td class="left">
<input type="text" name="elementSort[{$keyHome}]" value="{$objHomeElement->GetSort()}"><br/>
</td>
</tr>
</table>
</div>
<div class="clearBoth"></div>
<hr>
{/foreach}
<div class="clearBoth"></div>
{/dropDownContainer}
<div class="panelButtons">
<input type="button" class="cancel" value="Anulij" name="" onclick="javascript:document.location.href='{url HomeSite=Baner}'"/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" class="button buttonZapisz" value="Zapisz" name="AddHomesite"/>
</div>
</form>