update
This commit is contained in:
84
Admin/template/partial/HomeSite/Main.tpl
Normal file
84
Admin/template/partial/HomeSite/Main.tpl
Normal file
@@ -0,0 +1,84 @@
|
||||
|
||||
<form action="{url HomeSite=EditMain}" 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="articlePreviewLeft" style="width: 180px" >
|
||||
|
||||
{*if isset($objArticle) && $objArticle->GetPicture()*}
|
||||
|
||||
{*else}
|
||||
podczas dodawania będziesz mógł przyciąć swoje zdjęcie do rozmiarów 120x70.
|
||||
{/if*}
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<div class="articlePreviewLeft" >
|
||||
<input class="inputWidth141 input100percent" type="hidden" name="elementId[{$keyHome}]" value="{$objHomeElement->GetId()}" />
|
||||
<table class="frameTableForm tableContetntWhite" cellpadding="5" cellspacing="0" border="0" width="50%" >
|
||||
<tr>
|
||||
<td width="10%">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" width="30%">
|
||||
<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>Element z menu:</td>
|
||||
<td class="left">
|
||||
<select name="idElement[{$keyHome}]">
|
||||
<option value="0">
|
||||
</option>
|
||||
{foreach from=$arrayObjElement item=objElementList}
|
||||
<option value="{$objElementList->GetId()}" {if $objElementList->GetId() == $objHomeElement->GetIdSource()} selected {/if}>
|
||||
{$objElementList->GetTitle()}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display: none;">
|
||||
<td>Obraz:</td>
|
||||
<td class="left">
|
||||
<input type="file" name="elementImg_{$keyHome}"><br/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display: none;">
|
||||
<td colspan="2"><img src="{$objHomeElement->GetPhotoUrl()}" alt="" align="left"/></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>
|
||||
Reference in New Issue
Block a user