This commit is contained in:
2026-05-15 18:33:51 +02:00
parent 3601be572f
commit c980004309
8442 changed files with 783630 additions and 1 deletions

View File

@@ -0,0 +1,89 @@
<form action="{url HomeSite=EditBaner}" id="sendForm" method="post" enctype="multipart/form-data" >
{dropDownContainer title='Slider-Baner' }
{assign var=x value=1}
{foreach from=$arrayToEdit item=objHomeElement key=keyHome}
{* {if !$objHomeElement->GetPhotoUrl()}{assign var=showElement value='none'}{else}{assign var=showElement value=''}{/if} *}
{assign var=showElement value=''}
<div class="elementContainer {$showElement}" id='element_{$keyHome}' >
<div class="elementBar"><h1>Element</h1>
<div class="optionIconBox">
<a class="optionIcon iconUp" id="up_element_{$keyHome}" title="Przenieś wyżej" onclick="SortModule('element_{$keyHome}', 'up');">&nbsp;</a>
<a class="optionIcon iconDown" id="down_element_{$keyHome}" title="Przenieś niżej" onclick="SortModule('element_{$keyHome}', 'down');">&nbsp;</a>
</div>
</div>
<input class="inputWidth141 input100percent" type="hidden" name="elementId[{$keyHome}]" value="{$objHomeElement->GetId()}" />
<input class="inputWidth141 input100percent" type="hidden" name="sortId[]" 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 height="220" 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">
<label for="file-upload_{$keyHome}" class="custom-file-upload">
Przeglądaj...
</label>
<span id="file-selected_{$keyHome}" class="fileSelected"></span>
<input name="elementImg_{$keyHome}" id="file-upload_{$keyHome}" type="file" onchange="{literal}$('#file-selected_{/literal}{$keyHome}{literal}').html($(this).val().replace(/C:\\fakepath\\/i, ''));{/literal}"/>
{* <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>
{/foreach}
<div class="clearBoth"></div>
{/dropDownContainer}
<div class="clearBoth"></div>
<div class="panelButtons">
<input type="button" class="cancel" value="Anulij" name="" onclick="javascript:document.location.href='{url HomeSite=Baner}';"/>
<input type="submit" class="button buttonZapisz" value="Zapisz" name="AddHomesite"/>
</div>
</form>