update
This commit is contained in:
78
Admin/template/partial/HomeSite/AddLogo.tpl
Normal file
78
Admin/template/partial/HomeSite/AddLogo.tpl
Normal file
@@ -0,0 +1,78 @@
|
||||
<h1>Dodaj Logo</h1>
|
||||
<script language="javascript" type="text/javascript">
|
||||
urlStatic = '{$urlStatic}';
|
||||
</script>
|
||||
|
||||
<form method="post" action="{url HomeSite='AddLogo' type=$type}" enctype="multipart/form-data">
|
||||
{if isset($obj)}
|
||||
<input type="hidden" name="id" value="{$obj->GetId()}" />
|
||||
{/if}
|
||||
|
||||
<div class="panelRightTop"></div>
|
||||
<div class="panelRightBody">
|
||||
<div class="paddedContent">
|
||||
{assign var="additionalTitle" value=""}
|
||||
|
||||
{dropDownContainer title="Ogólne" additionalTitle=$additionalTitle}
|
||||
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="commonTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Nazwa:</td>
|
||||
<td>
|
||||
{formField name='name' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getName'}
|
||||
{if isset($error.name)}<div style="color: red;" id="actionError" class="validate">{$error.name}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Adres url:</td>
|
||||
<td>
|
||||
{formField name='url' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getUrl'}
|
||||
{if isset($error.url)}<div style="color: red;" id="actionError" class="validate">{$error.url}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Sort:</td>
|
||||
<td>
|
||||
{formField name='sort' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getSort'}
|
||||
{if isset($error.sort)}<div style="color: red;" id="actionError" class="validate">{$error.sort}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Aktywny:</td>
|
||||
<td>{formField type='checkbox' name='active' obj='obj' func='GetPublication'}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
{dropDownContainer title="Plik"}
|
||||
<div>
|
||||
{if $obj->GetPhotoUrl()}
|
||||
<img src="{$obj->GetPhotoUrl()}" alt="" align="left"/>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<br />
|
||||
<div class="articlePreviewRight">
|
||||
<input type="file" name="logo" >
|
||||
{if isset($error.logo)}<div style="color: red;" id="actionError" class="validate">{$error.logo}</div>{/if}
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<div class="panelButtons">
|
||||
{if isset($idStructure)}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url label=editStructure id=$idStructure}'" />
|
||||
{else}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url HomeSite=Logo}'"/>
|
||||
{/if}
|
||||
|
||||
<input type="submit" value="Zapisz" name="doLogoEdit"/>
|
||||
</div>
|
||||
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
|
||||
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
|
||||
</form>
|
||||
44
Admin/template/partial/HomeSite/ArticleBox.tpl
Normal file
44
Admin/template/partial/HomeSite/ArticleBox.tpl
Normal file
@@ -0,0 +1,44 @@
|
||||
|
||||
<script language="javascript" type="text/javascript">
|
||||
urlStatic = '{$urlStatic}';
|
||||
</script>
|
||||
{dropDownContainer title="Treść strona główna" }
|
||||
<table width="100%" class="datagrid" cellpadding="4" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<th>id</th>
|
||||
<th>nazwa</th>
|
||||
<th>Kolejność</th>
|
||||
<th>Publikacja</th>
|
||||
|
||||
<th style="width: 40px; text-align: center;" >
|
||||
<a class="optionIcon iconAdd" title="{'Add'|translateAdmin}" href="{url HomeSite=EditArticle}"> </a>
|
||||
|
||||
{* <a href="{url SimpleArticle_Index=Add}" {if isset($add)}onclick="alert('Aby dodać wpis, proszę zapisać element struktury'); return false;" {/if}><img src="{$urlStatic}/image/Admin/iconAdd.gif" alt="Dodaj" title="Dodaj" border="0"/></a>*}
|
||||
</th>
|
||||
</tr>
|
||||
|
||||
{assign var=x value=1}
|
||||
{foreach from=$arrayObj item=obj name=obj}
|
||||
<tr {if $x==1}{assign var=x value=0}{else}{assign var=x value=1}class="even"{/if}>
|
||||
<td>{$obj->GetId()}</td>
|
||||
<td>{$obj->GetName()}</td>
|
||||
<td>{$obj->GetWeight()}</td>
|
||||
<td><a id="publicationIcon_homeArt_{$obj->GetId()}" class="optionIcon {if $obj->GetPublication() == 1}iconPublishOn{else}iconPublishOff{/if}" title="{if $obj->GetPublication() == 1}Niepublikuj{else}Publikuj{/if}" href="#" onclick="PublishItem('{url HomeSite=AjaxPublishArticleBox}',{$obj->GetId()},'publicationIcon_homeArt_{$obj->GetId()}'); return false;"> </a></td>
|
||||
{*<td id="special_info_{$obj->GetId()}" onclick="Special('{$obj->GetId()}', document.getElementById('special_{$obj->GetId()}').value, '{url SimpleArticle_Index=special}'); return false;"> <a href="#" title="zmień">{$obj->GetSpecial()|replace:"0":"Nie"|replace:"1":"Tak" }</a> </td>*}
|
||||
<td style="text-align: center;">
|
||||
<a class="optionIcon iconEdit" title="Edytuj" href="{url HomeSite=EditArticle id=$obj->GetId()}"> </a>
|
||||
{if $admin->GetRole() != 'moderator'}
|
||||
<a class="optionIcon iconDelete" title="Usuń" href="{url HomeSite=DeleteArticleBox id=$obj->GetId()}" onclick="{literal}if (ConfirmAction('Czy napewno usunęć ten element?', '{/literal}{url HomeSite=DeleteArticleBox id=$obj->GetId()}{literal}')) { } else {return false;}{/literal}"> </a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
{/foreach}
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
{/dropDownContainer}
|
||||
|
||||
89
Admin/template/partial/HomeSite/Baner.tpl
Normal file
89
Admin/template/partial/HomeSite/Baner.tpl
Normal 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');"> </a>
|
||||
<a class="optionIcon iconDown" id="down_element_{$keyHome}" title="Przenieś niżej" onclick="SortModule('element_{$keyHome}', 'down');"> </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>
|
||||
20
Admin/template/partial/HomeSite/Box.tpl
Normal file
20
Admin/template/partial/HomeSite/Box.tpl
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
<form action="{url HomeSite=Box}" id="sendForm" method="post" enctype="multipart/form-data" >
|
||||
|
||||
|
||||
{dropDownContainer title='Boxy'}
|
||||
{assign var=x value=1}
|
||||
|
||||
<div class="articlePreviewRight" >
|
||||
<div><img src="{$urlStatic}/upload/baner.jpg" alt="" /></div>
|
||||
<div><input type="file" name="box"></div>
|
||||
|
||||
{/dropDownContainer}
|
||||
|
||||
<div class="panelButtons">
|
||||
<input type="button" class="cancel" value="Anulij" name="" onclick="javascript:document.location.href='{url HomeSite=Box}'"/>
|
||||
|
||||
<input type="submit" class="button buttonZapisz" value="Zapisz" name="doBoxEdit"/>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
86
Admin/template/partial/HomeSite/EditArticle.tpl
Normal file
86
Admin/template/partial/HomeSite/EditArticle.tpl
Normal file
@@ -0,0 +1,86 @@
|
||||
|
||||
<script language="javascript" type="text/javascript">
|
||||
urlStatic = '{$urlStatic}';
|
||||
</script>
|
||||
|
||||
<form method="post" action="{url HomeSite=EditArticle id=$obj->GetId()}" id="sendForm" enctype="multipart/form-data">
|
||||
{if isset($obj)}
|
||||
<input type="hidden" name="idArticle" value="{$obj->GetId()}" />
|
||||
{/if}
|
||||
|
||||
<div class="panelRightTop"></div>
|
||||
<div class="panelRightBody">
|
||||
<div class="paddedContent">
|
||||
{assign var="additionalTitle" value=""}
|
||||
|
||||
{dropDownContainer title="Ogólne" additionalTitle=$additionalTitle}
|
||||
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="commonTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="20%">Nazwa:</td>
|
||||
<td>
|
||||
{* {$obj->GetName()}*}
|
||||
<input name="name" value="{$obj->GetName()}" type="text" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td >Publikuj</td>
|
||||
<td>{formField type='checkbox' name='publication' obj='obj' func='GetPublication'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td >Kolejność</td>
|
||||
<td><input name="weight" value="{$obj->GetWeight()}" type="text" /></td>
|
||||
</tr>
|
||||
<tr style="display: none;">
|
||||
<td class="noborder"><b>Data publikacji:</b></td>
|
||||
<td class="noborder">
|
||||
<img src='{$urlStatic}/image/iconKalendarz.gif' alt='kalendarz' onclick="showKal(document.getElementById('datepub'));" /> {formField type='input' name='datePpublication' errorClass='validate' obj='obj' func='GetDatePublicationWithoutTime' id='datepub'}
|
||||
{if isset($error.datepublication)}<div style="color: red;" id="actionError" class="validate">{$error.datepublication}</div>{/if}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display: none;">
|
||||
<td><b>Godzina:</b></td>
|
||||
<td>
|
||||
{formField type='input' maxlength='2' errorClass='validate' name='timepublication' obj='obj' func='GetDatePublicationTime'}
|
||||
<span class="grayText smallText">format (HH)</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
{dropDownContainer title="Treść SG"}
|
||||
<div class="center">
|
||||
{if isset($obj)}
|
||||
{assign var='description' value=$obj->GetDescription()}
|
||||
{else}
|
||||
{assign var='description' value=''}
|
||||
{/if}
|
||||
{insertCkEditor width='680' height='220' name='description' toolbar='Formix' value=$description}
|
||||
</div>
|
||||
{/dropDownContainer}
|
||||
|
||||
{dropDownContainer title="Treść pod" isHidden=true}
|
||||
<div class="articlePreviewRight" >
|
||||
{if isset($obj)}
|
||||
{assign var='shortnote' value=$obj->GetShortnote()}
|
||||
{else}
|
||||
{assign var='shortnote' value=''}
|
||||
{/if}
|
||||
{insertCkEditor width='680' height='220' name='shortnote' toolbar='Basic' value=$shortnote}
|
||||
<div class="validate" id="shortnoteHiddenError"></div>
|
||||
{if isset($error.shortnote)}<div style="color: red;" id="actionError" class="validate">{$error.shortnote}</div>{/if}
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
{/dropDownContainer}
|
||||
</div>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<div class="panelButtons">
|
||||
<input type="button" class="cancel" value="Anuluj" name="" onclick="document.location.href='{url HomeSite=ArticleBox}'"/>
|
||||
<input type="submit" value="Zapisz" name="doSimpleArticleEdit"/>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
78
Admin/template/partial/HomeSite/EditLogo.tpl
Normal file
78
Admin/template/partial/HomeSite/EditLogo.tpl
Normal file
@@ -0,0 +1,78 @@
|
||||
<h1>Dodaj Logo</h1>
|
||||
<script language="javascript" type="text/javascript">
|
||||
urlStatic = '{$urlStatic}';
|
||||
</script>
|
||||
|
||||
<form method="post" action="{url HomeSite='EditLogo' id=$obj->GetId() type=$obj->GetType()}" enctype="multipart/form-data">
|
||||
{if isset($obj)}
|
||||
<input type="hidden" name="id" value="{$obj->GetId()}" />
|
||||
{/if}
|
||||
|
||||
<div class="panelRightTop"></div>
|
||||
<div class="panelRightBody">
|
||||
<div class="paddedContent">
|
||||
{assign var="additionalTitle" value=""}
|
||||
|
||||
{dropDownContainer title="Ogólne" additionalTitle=$additionalTitle}
|
||||
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="commonTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Nazwa:</td>
|
||||
<td>
|
||||
{formField name='name' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getName'}
|
||||
{if isset($error.name)}<div style="color: red;" id="actionError" class="validate">{$error.name}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Adres url:</td>
|
||||
<td>
|
||||
{formField name='url' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getUrl'}
|
||||
{if isset($error.url)}<div style="color: red;" id="actionError" class="validate">{$error.url}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Sort:</td>
|
||||
<td>
|
||||
{formField name='sort' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getSort'}
|
||||
{if isset($error.sort)}<div style="color: red;" id="actionError" class="validate">{$error.sort}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Aktywny:</td>
|
||||
<td>{formField type='checkbox' name='active' obj='obj' func='GetPublication'}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
{dropDownContainer title="Plik"}
|
||||
<div>
|
||||
{if $obj->GetPhotoUrl()}
|
||||
<img src="{$obj->GetPhotoUrl()}" alt="" align="left"/>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<br />
|
||||
<div class="articlePreviewRight">
|
||||
<input type="file" name="logo" >
|
||||
{if isset($error.logo)}<div style="color: red;" id="actionError" class="validate">{$error.logo}</div>{/if}
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
{/dropDownContainer}
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<div class="panelButtons">
|
||||
{if isset($idStructure)}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url label=editStructure id=$idStructure}'" />
|
||||
{else}
|
||||
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url HomeSite=Logo}'"/>
|
||||
{/if}
|
||||
|
||||
<input type="submit" value="Zapisz" name="doLogoEdit"/>
|
||||
</div>
|
||||
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
|
||||
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
|
||||
</form>
|
||||
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>
|
||||
65
Admin/template/partial/HomeSite/Links.tpl
Normal file
65
Admin/template/partial/HomeSite/Links.tpl
Normal file
@@ -0,0 +1,65 @@
|
||||
|
||||
<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>
|
||||
60
Admin/template/partial/HomeSite/Logo.tpl
Normal file
60
Admin/template/partial/HomeSite/Logo.tpl
Normal file
@@ -0,0 +1,60 @@
|
||||
<h1>Loga</h1>
|
||||
|
||||
{dropDownContainer title='Lista'}
|
||||
{*<div class="searchBox">
|
||||
Nazwisko: <input name="search" id="search" onkeyup="GetTableContent('{url Client=AjaxClient}', '#tableContentClient', $('#search').val(), '#roleList');" />
|
||||
<select name="roleList" id="roleList" onchange="GetTableContent('{url Client=AjaxClient}', '#tableContentClient', $('#search').val(), '#roleList');">
|
||||
<option value="all">
|
||||
Wszystkie
|
||||
</option>
|
||||
<option value="Tak">
|
||||
Tak
|
||||
</option>
|
||||
<option value="Nie">
|
||||
Nie
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
*}
|
||||
<div id="tableContentClient">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<tr class="selAllRow">
|
||||
{*<td class="cornerTop"></td><td colspan="6"><a href="#">Zaznacz wszystkie</a> <a href="#">usuń</a>
|
||||
</td>*}
|
||||
</tr>
|
||||
<tr>
|
||||
{*<td class="selAll"> </td> *}
|
||||
<th><div style="float:left; width:100%">Lp.<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></div></th>
|
||||
<th>Logo<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
<th>Nazwa<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
<th>Url<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
<th class="noSort">Status<div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
<th class="noSort"><a href="{url HomeSite=AddLogo type=$type}" class="add">Dodaj</a> <div class="sort"><a class="ascendingAct" href="#"> </a><a class="descending" href="#"> </a></div></th>
|
||||
</tr>
|
||||
{assign var=x value=0}
|
||||
{foreach from=$arrayObj item=obj}
|
||||
{assign var=x value=$x+1}
|
||||
{assign var=id value=$obj->GetId()}
|
||||
<tr>
|
||||
{*<td class="selAll"><input name="Checkbox1" type="checkbox" /></td> *}
|
||||
<td>{$x}</td>
|
||||
<td><a href="{url HomeSite=EditLogo id=$id}" title="edytuj"><img src="{$obj->GetPhotoUrl()}" alt="" align="left"/></a></td>
|
||||
<td><a href="{url HomeSite=EditLogo id=$id}" title="edytuj">{$obj->GetName()}</a></td>
|
||||
<td>{$obj->GetUrl()}</td>
|
||||
<td>{$obj->GetPublication()}</td>
|
||||
<td style="width:15px">
|
||||
<a href="{url HomeSite=EditLogo id=$id}" class="edit">edytuj</a><a href="{url HomeSite=DeleteLogo id=$id}" onclick="{literal}if(confirm('Czy napewno usunęć ten element?')){return true;}else{return false;}{/literal}" class="delete">usuń</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr class="selAllRow">
|
||||
<td colspan="10" class="selAllRow" >
|
||||
<div class="paging">
|
||||
{insertPagination _class='pager'}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
{/dropDownContainer}
|
||||
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