update
This commit is contained in:
103
Admin/template/partial/HomeSite/Index.tpl
Normal file
103
Admin/template/partial/HomeSite/Index.tpl
Normal file
@@ -0,0 +1,103 @@
|
||||
|
||||
<form action="{url HomeSite=Edit}" 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">
|
||||
{* {$objHomeElement->GetName()|escape} *}
|
||||
<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 width="10%">Tytuł:</td>
|
||||
<td class="left">
|
||||
<input class="inputWidth141 input100percent" type="text" name="elementTitle[{$keyHome}]" value="{$objHomeElement->GetTitle()|escape}" />
|
||||
|
||||
</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}*}
|
||||
|
||||
{assign var="elementTextName" value="elementText[$keyHome]"}
|
||||
|
||||
{insertCkEditor width='450' height='220' name=$elementTextName toolbar='Formix' value=$objHomeElement->GetDescription()}
|
||||
</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->GetName()}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>*}
|
||||
{*<tr>
|
||||
<td>Obraz:</td>
|
||||
<td class="left">
|
||||
<input type="file" name="elementImg_{$keyHome}"><br/>
|
||||
</td>
|
||||
</tr>*}
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
{assign var=imageHome value=$objHomeElement->GetPhotoPath()}
|
||||
{if $objHomeElement->GetPhotoPath()}
|
||||
{* {thumb file=$imageHome longside=false shortside=false width="266" height="195" link='false' crop=true }*}
|
||||
<img src="{$objHomeElement->GetPhotoUrl()}" alt="" align="left"/>
|
||||
{/if}
|
||||
</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