66 lines
2.5 KiB
Smarty
66 lines
2.5 KiB
Smarty
|
|
<form action="{url HomeSite=EditLink}" id="sendForm" method="post" enctype="multipart/form-data" >
|
|
|
|
|
|
{dropDownContainer title='Linki'}
|
|
{assign var=x value=1}
|
|
|
|
{foreach from=$arrayToEdit item=objHomeElement key=keyHome}
|
|
|
|
<div class="articlePreviewLeft" style="width: 180px" >
|
|
|
|
{*if isset($objArticle) && $objArticle->GetPicture()}
|
|
<img src="{$objHomeElement->GetPhotoUrl()}" alt="" align="left"/>
|
|
{else}
|
|
podczas dodawania będziesz mógł przyciąć swoje zdjęcie do rozmiarów 120x70.
|
|
{/if*}
|
|
</div>
|
|
<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" >
|
|
<tr>
|
|
<td>Nazwa elementu:</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()|nl2br}</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>
|
|
*}
|
|
</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=index}'"/>
|
|
|
|
<input type="submit" class="button buttonZapisz" value="Zapisz" name="AddHomesite"/>
|
|
</div>
|
|
|
|
</form>
|