first commit

This commit is contained in:
2026-04-24 15:32:21 +02:00
commit 20d40fead4
5046 changed files with 641038 additions and 0 deletions

View File

@@ -0,0 +1,253 @@
<h1>Dodaj element</h1>
<form action="{url label=addStructure}" id="sendForm" method="post" enctype="multipart/form-data" >
<input type="hidden" name="id" value="{$objElement->GetId()}" />
<input type="hidden" name="idRouter" value="{$objElement->GetIdRouter()}" />
<input type="hidden" name="sort" value="{$objElement->GetSort()}" />
<input type="hidden" name="idParent" value="{$objElement->GetIdParent()}" />
<input type="hidden" name="idMain" value="{$objElement->GetIdMain()}" />
<input type="hidden" name="idCategory" value="{$idCategory}" />
<input type="hidden" name="sort" value="{$objElement->GetSort()}" />
<input type="hidden" name="location" value="{$location}" />
<input type="hidden" name="type" value="1" />
{dropDownContainer title='Ogólne'}
<table class="commonTable" cellpadding="5" cellspacing="0" border="0" width="100%">
<tr>
<td>Nazwa elementu:</td>
<td class="left">
<input class="inputWidth141 input100percent" type="text" name="elementName" value="{$objElement->GetElementName()|escape}" />
{if isset($error.elementName)}<div style="color: red;" id="actionError" class="validate">{$error.elementName}</div>{/if}
</td>
</tr>
<tr>
<td>Tytuł strony:</td>
<td class="left">{formField name='title' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objElement' func='GetName'}
{if isset($error.title)}<div style="color: red;" id="actionError" class="validate">{$error.title}</div>{/if}
</td>
</tr>
<tr class="">
<td>subtytuł strony:</td>
<td class="left">{formField name='subname' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objElement' func='GetSubname'}
{if isset($error.subname)}<div style="color: red;" id="actionError" class="validate">{$error.subname}</div>{/if}
</td>
</tr>
<tr>
<td>Typ:</td>
<td class="left">
<input type="hidden" name="type" value="1" />
<select name="type">
<option value="1" {if $objElement->GetType() == '1'}selected{/if}>
Menu Top
</option>
{*<option value="2" {if $objElement->GetType() == '2'}selected{/if}>
Menu Left
</option>*}
<option value="2" {if $objElement->GetType() == '2'}selected{/if}>
Pozostałe
</option>
</select>
</td>
</tr>
{*if $lang != 'pl'}
<tr>
<td>Odpowiednik w wersji polskiej:</td>
<td class="left">
<input type="hidden" name="type" value="1" />
<select name="idStructurePl">
<option value="0" >
</option>
{foreach from=$arrayStructurePl item=structureName key=idStructurePl}
<option value="{$idStructurePl}" >
{$structureName}
</option>
{/foreach}
</select>
</td>
</tr>
{/if*}
{*<tr>
<td>Kolejność:</td>
<td class="left">
<input type="text" name="sort" value="{$objElement->GetSort()}" />
</td>
</tr>*}
<tr>
<td style="width:30%">Publikuj:</td>
<td>
<input class="input" type="checkbox" name="publication" id="publication" value="1" {if $objElement->GetPublication()}checked{/if} />
</td>
</tr>
<tr>
<td style="width:30%">Publikuj w menu:</td>
<td>
<input class="input" type="checkbox" name="publication_menu" id="publication_menu" value="1" {if $objElement->GetPublicationMenu()}checked{/if} />
</td>
</tr>
</table>
{/dropDownContainer}
{dropDownContainer title='Właściwości (SEO)' isClose=true}
{assign var=metaTagDescriptionObj value=$objMetaTag->GetDescriptionObj()}
<table class="commonTable" cellpadding="5" cellspacing="0" border="0" width="100%">
<tr>
<td>Url</td>
<td>
{if $objModule->GetList() == 1}
{assign var=arrayModuleOptions value=$objModule->GetArrayOptions()}
{assign var=matchUri value=$arrayModuleOptions.defaultUrl}
<input class="input" type="text" name="url" id="url" size="60" value="{$matchUri}" disabled />
<input class="input" type="hidden" name="url" id="url" size="60" value="{$matchUri}" />
{else}
<input class="input" type="text" name="url" id="url" size="60" value="{$objElement->GetUrl()}" />
{/if}
</td>
</tr>
<tr>
<td>Tytuł w menu:<br /></td>
<td class="left"><input class="input420" type="text" name="menuName" value="{$objElement->GetMenuName()|escape}" /></td>
</tr>
<tr>
<td>META Description:<br /></td>
<td class="left"><textarea name="meta_description" cols="77">{$metaTagDescriptionObj->GetDescription()|escape}</textarea></td>
</tr>
<tr>
<td>META Keywords:<br /></td>
<td class="left"><input class="input420" type="text" name="meta_keywords" value="{$metaTagDescriptionObj->GetKeywords()|escape}" /></td>
</tr>
<tr>
<td>Skrypt statystyk*:<br /></td>
<td class="left"><textarea name="statistic" cols="77">{$metaTagDescriptionObj->GetStatistic()}</textarea> </td>
</tr>
<tr>
<td colspan="2"><span style="font-size: 9px;">* W polu statystyk może być tylko kod statystyk!</span></td>
</tr>
</table>
{/dropDownContainer}
{if $objModule->GetList() != 1}
{$zoneContent}
{/if}
{if isset($editStructureArticle)}
{$editStructureArticle}
{/if}
{if isset($editStructureProject)}
{$editStructureProject}
{/if}
{if isset($editStructure)}
{$editStructure}
{/if}
{*if $method == 'Index'}
{dropDownContainer title="Powiązania"}
<div class="panelPowiazaniaContentTop">Szukaj: <input type="text"/> <input type="checkbox"" />wszystkie&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" />powiązane</div>
<div class="panelPowiazaniaContent">
{if $arrayCategory}
<div class="panelPowiazaniaContentTop"><a class="iconCatalogy paddingLeft20" href="#" onclick="LinkList('CategoryList'); return false; ">Kategorie</a></div>
<div class="panelWhiteContentTop" id="CategoryListTop">
<table cellpadding="0" cellspacing="0" border="0" class="tableContetntWhite">
<tr>
<th width="300">nazwa</th>
<th width="250">opis</th>
<th width="34">typ</th>
<th width="59">powiąż</th>
</tr>
</table>
</div>
<div class="panelWhiteContent" style="height: 100px; overflow: auto;" id="CategoryList">
<table cellpadding="0" cellspacing="0" border="0" class="tableContetntWhite">
<tr>
<td width="300"><a class="iconCatalogy iconProperties" href="#">Kategorie</a></td>
<td width="250">&nbsp;</td>
<td width="24" class="center"><img src="{$urlStatic}/image/Admin/iconType.gif" alt="iconType.gif" title="typ" /></td>
<td width="66" class="center">&nbsp;</td>
</tr>
{foreach from=$arrayCategory item=Category key=idCategory}
<tr id="{$tableModuleNameCategory}_list[{$idCategory}]">
<td width="300"><a class="iconCategoryUnder iconProperties" href="#">{$Category.name}</a></td>
<td width="250"><a href="#">{$Category.description}</a></td>
<td width="24" class="center"><img src="{$urlStatic}/image/Admin/iconType01.gif" alt="iconType.gif" title="typ" /></td>
<td width="66" class="center">
<input type="checkbox" {$Category.checked} {if $idCategoryChecked == $idCategory}checked{/if} name="{$tableModuleNameCategory}_link[{$idCategory}]" id="{$tableModuleNameCategory}_link[{$idCategory}]" value="{$idCategory}" onclick="javascript: Link({$idContent}, '{$tableModuleName}', '{$tableModuleNameCategory}', document.getElementById('{$tableModuleNameCategory}_link[{$idCategory}]').value, document.getElementById('{$tableModuleNameCategory}_action[{$idCategory}]').value);" />
<input type="hidden" name="{$tableModuleNameCategory}_action[{$idCategory}]" id="{$tableModuleNameCategory}_action[{$idCategory}]" {if $idCategory.checked == 'checked' } value="delete" {else} value="add"{/if} />
</td>
</tr>{/foreach}
</table>
</div>
<div class="panelWhiteContentBottom" id="CategoryListBottom"></div>
{/if}
</div>
<div class="panelPowiazaniaContentBottom"></div>
{/dropDownContainer}
{/if*}
{assign var=EditImgList value=true}
{assign var=TitleImgList value='Zdjecie na listy'}
{if $objModule->Getid() == 3 || $objModule->Getid() == 4}
{assign var=EditImgList value=false}
{assign var=TitleImgList value='Zdjecie na listy'}
{/if}
{dropDownContainer title=$TitleImgList isClose=false isHidden=$EditImgList}
<div class="articlePreviewRight">
<input type="file" name="filename" />
</div>
<div class="clearBoth"></div>
{/dropDownContainer}
{*dropDownContainer title="Baner górny"}
<div id="photoDisplay">
{if $objElement->GetBanner()} <img src="{$objElement->GetBannerThWhitUrl()}" alt="test" style=" border:1px solid #000000; margin-right:5px; margin-bottom: 5px" /> {/if}<input type="hidden" name="photo" value="{$objElement->GetBanner()}" /> </div>
<div class="clearBoth"></div>
<div class="error" id="bannerError"></div>
<div class="clearBoth"></div>
{/dropDownContainer}
{dropDownContainer title="Dodaj baner górny"}
{assign var=idElement value=$objElement->GetId()}
<iframe name="PhotoUpload" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto" height="78" width="625" src="{url Structure='PhotoUpload' id=$idElement}">
<noscript>
Do wyświetlenia konieczne jest działanie ramek (iframe).
</noscript>
</iframe>
{/dropDownContainer*}
<div class="cb"></div>
<div class="panelButtons">
<input type="button" class="cancel" value="Anuluj" name="" onclick="javascript:document.location.href='{url label=current}'"/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{*<input type="submit" class="button buttonPodglad" value="" name=""/>*}
{*<input type="button" class="button buttonZapisz" value="" name="saveStructure"
{if $method != 'Index'} onmouseover="var descriptionEditor = FCKeditorAPI.GetInstance('description'); var descriptionHidden = document.getElementById('descriptionHidden'); descriptionHidden.value = descriptionEditor.GetXHTML(false);" {/if}
onclick="{if $method != 'Index'} GetFromFCK('description'); GetFromFCK('shortnote'); {/if} Dosia.Form('sendForm'); return false;" />*}
<input type="submit" value="Zapisz" name="AddStructureForm"/>
</div>
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
</form>

View File

@@ -0,0 +1,271 @@
<div class="panelRightTop"></div>
<form action="{url label=addStructure}" id="sendForm" method="post" enctype="multipart/form-data" >
<div class="panelRightBody">
<div class="paddedContent">
<input type="hidden" name="id" value="{$objElement->GetId()}" />
<input type="hidden" name="idRouter" value="{$objElement->GetIdRouter()}" />
<input type="hidden" name="sort" value="{$objElement->GetSort()}" />
<input type="hidden" name="idParent" value="{$objElement->GetIdParent()}" />
<input type="hidden" name="idMain" value="{$objElement->GetIdMain()}" />
<input type="hidden" name="idCategory" value="{$idCategory}" />
<input type="hidden" name="sort" value="{$objElement->GetSort()}" />
<input type="hidden" name="location" value="{$location}" />
{dropDownContainer title='Ogólne'}
<table class="frameTableForm tableContetntWhite" cellpadding="5" cellspacing="0" border="0" width="100%">
<tr>
<td>Nazwa elementu:</td>
<td class="left">
<input class="inputWidth141 input100percent" type="text" name="elementName" value="{$objElement->GetElementName()|escape}" />
{if isset($error.elementName)}<div style="color: red;" id="actionError">{$error.elementName}</div>{/if}
</td>
</tr>
<tr>
<td>Tytuł strony:</td>
<td class="left">{formField name='title' class='inputWidth141 input100percent' errorClass='error' type='text' obj='objElement' func='GetName'}
{if isset($error.title)}<div style="color: red;" id="actionError">{$error.title}</div>{/if}
</td>
</tr>
<tr>
<td>subtytuł strony:</td>
<td class="left">{formField name='subname' class='inputWidth141 input100percent' errorClass='error' type='text' obj='objElement' func='GetSubname'}
{if isset($error.subname)}<div style="color: red;" id="actionError">{$error.subname}</div>{/if}
</td>
</tr>
<input type="hidden" name="type" value="1" />
<tr>
<td>Typ:</td>
<td class="left">
<select name="type">
<option value="2" {if $objElement->GetType() == '2'}selected{/if}>
Menu Left
</option>
<option value="1" {if $objElement->GetType() == '1'}selected{/if}>
Menu Top
</option>
{*<option value="3" {if $objElement->GetType() == '3'}selected{/if}>
Pozostałe
</option>*}
</select>
</td>
</tr>
{*<tr>
<td>Kolejność:</td>
<td class="left">
<input type="text" name="sort" value="{$objElement->GetSort()}" />
</td>
</tr>*}
<tr>
<td style="width:30%">Publikuj:</td>
<td>
<input class="input" type="checkbox" name="publication" id="publication" value="1" {if $objElement->GetPublication()}checked{/if} />
</td>
</tr>
<tr>
<td style="width:30%">Publikuj w menu:</td>
<td>
<input class="input" type="checkbox" name="publication_menu" id="publication_menu" value="1" {if $objElement->GetPublicationMenu()}checked{/if} />
</td>
</tr>
</table>
{/dropDownContainer}
{dropDownContainer title='Właściwości (SEO)' isClose=true}
{assign var=metaTagDescriptionObj value=$objMetaTag->GetDescriptionObj()}
<table class="frameTableForm" cellpadding="5" cellspacing="0" border="0" width="100%">
<tr>
<td>Url</td>
<td>
{if $objModule->GetList() == 1}
{assign var=arrayModuleOptions value=$objModule->GetArrayOptions()}
{assign var=matchUri value=$arrayModuleOptions.defaultUrl}
<input class="input" type="text" name="url" id="url" size="60" value="{$matchUri}" disabled />
<input class="input" type="hidden" name="url" id="url" size="60" value="{$matchUri}" />
{else}
<input class="input" type="text" name="url" id="url" size="60" value="{$objElement->GetUrl()}" />
{/if}
</td>
</tr>
<tr>
<td>Tytuł w menu:<br /></td>
<td class="left"><input class="input420" type="text" name="menuName" value="{$objElement->GetMenuName()|escape}" /></td>
</tr>
<tr>
<td>META Description:<br /></td>
<td class="left"><textarea name="meta_description" cols="77">{$metaTagDescriptionObj->GetDescription()|escape}</textarea></td>
</tr>
<tr>
<td>META Keywords:<br /></td>
<td class="left"><input class="input420" type="text" name="meta_keywords" value="{$metaTagDescriptionObj->GetKeywords()|escape}" /></td>
</tr>
<tr>
<td>Skrypt statystyk*:<br /></td>
<td class="left"><textarea name="statistic" cols="77">{$metaTagDescriptionObj->GetStatistic()}</textarea> </td>
</tr>
<tr>
<td colspan="2"><span style="font-size: 9px;">* W polu statystyk może być tylko kod statystyk!</span></td>
</tr>
</table>
{/dropDownContainer}
{if $objModule->GetList() != 1}
{$zoneContent}
{/if}
{if isset($editStructureProject)}
{$editStructureProject}
{/if}
{if isset($editStructure)}
{$editStructure}
{/if}
{*if $method == 'Index'}
{dropDownContainer title="Powiązania"}
<div class="panelPowiazaniaContentTop">Szukaj: <input type="text"/> <input type="checkbox"" />wszystkie&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" />powiązane</div>
<div class="panelPowiazaniaContent">
{if $arrayCategory}
<div class="panelPowiazaniaContentTop"><a class="iconCatalogy paddingLeft20" href="#" onclick="LinkList('CategoryList'); return false; ">Kategorie</a></div>
<div class="panelWhiteContentTop" id="CategoryListTop">
<table cellpadding="0" cellspacing="0" border="0" class="tableContetntWhite">
<tr>
<th width="300">nazwa</th>
<th width="250">opis</th>
<th width="34">typ</th>
<th width="59">powiąż</th>
</tr>
</table>
</div>
<div class="panelWhiteContent" style="height: 100px; overflow: auto;" id="CategoryList">
<table cellpadding="0" cellspacing="0" border="0" class="tableContetntWhite">
<tr>
<td width="300"><a class="iconCatalogy iconProperties" href="#">Kategorie</a></td>
<td width="250">&nbsp;</td>
<td width="24" class="center"><img src="{$urlStatic}/image/Admin/iconType.gif" alt="iconType.gif" title="typ" /></td>
<td width="66" class="center">&nbsp;</td>
</tr>
{foreach from=$arrayCategory item=Category key=idCategory}
<tr id="{$tableModuleNameCategory}_list[{$idCategory}]">
<td width="300"><a class="iconCategoryUnder iconProperties" href="#">{$Category.name}</a></td>
<td width="250"><a href="#">{$Category.description}</a></td>
<td width="24" class="center"><img src="{$urlStatic}/image/Admin/iconType01.gif" alt="iconType.gif" title="typ" /></td>
<td width="66" class="center">
<input type="checkbox" {$Category.checked} {if $idCategoryChecked == $idCategory}checked{/if} name="{$tableModuleNameCategory}_link[{$idCategory}]" id="{$tableModuleNameCategory}_link[{$idCategory}]" value="{$idCategory}" onclick="javascript: Link({$idContent}, '{$tableModuleName}', '{$tableModuleNameCategory}', document.getElementById('{$tableModuleNameCategory}_link[{$idCategory}]').value, document.getElementById('{$tableModuleNameCategory}_action[{$idCategory}]').value);" />
<input type="hidden" name="{$tableModuleNameCategory}_action[{$idCategory}]" id="{$tableModuleNameCategory}_action[{$idCategory}]" {if $idCategory.checked == 'checked' } value="delete" {else} value="add"{/if} />
</td>
</tr>{/foreach}
</table>
</div>
<div class="panelWhiteContentBottom" id="CategoryListBottom"></div>
{/if}
</div>
<div class="panelPowiazaniaContentBottom"></div>
{/dropDownContainer}
{/if*}
{dropDownContainer title="Zdjecie na listy"}
<div class="articlePreviewRight">
<input type="file" name="filename" >
</div>
<div class="clearBoth"></div>
{/dropDownContainer}
{*dropDownContainer title="Baner górny"}
<div id="photoDisplay">
{if $objElement->GetBanner()} <img src="{$objElement->GetBannerThWhitUrl()}" alt="test" style=" border:1px solid #000000; margin-right:5px; margin-bottom: 5px" /> {/if}<input type="hidden" name="photo" value="{$objElement->GetBanner()}" /> </div>
<div class="clearBoth"></div>
<div class="error" id="bannerError"></div>
<div class="clearBoth"></div>
{/dropDownContainer}
{dropDownContainer title="Dodaj baner górny"}
{assign var=idElement value=$objElement->GetId()}
<iframe name="PhotoUpload" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto" height="78" width="625" src="{url Structure='PhotoUpload' id=$idElement}">
<noscript>
Do wyświetlenia konieczne jest działanie ramek (iframe).
</noscript>
</iframe>
{/dropDownContainer*}
{*dropDownContainer title="Tabelki z danymi" isClose=true}
<table width="100%" class="datagrid" cellpadding="4" cellspacing="1">
<tr>
<th width="20">lp</th>
<th>nazwa</th>
<th>informacje<
<th width="20">lp<//th>
<th width="60"><a href="#"><img src="image/iconAdd.gif" alt="Dodaj" title="Dodaj" border="0"/></a></th>
</tr>
<tr>
<td align="center">1</td>
<td>nazwa 1</td>
<td>informacje 1</td>
<td align="center">
<a href="#"><img src="image/iconEdit.gif" alt="Edytuj" title="Edytuj" border="0"/></a> |
<a href="#"><img src="image/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
</td>
</tr>
<tr class="even">
<td align="center">2</td>
<td>nazwa 2</td>
<td>informacje 2</td>
<td align="center">
<a href="#"><img src="image/iconEdit.gif" alt="Edytuj" title="Edytuj" border="0"/></a> |
<a href="#"><img src="image/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
</td>
</tr>
<tr>
<td align="center">1</td>
<td>nazwa 1</td>
<td>informacje 1</td>
<td align="center">
<a href="#"><img src="image/iconEdit.gif" alt="Edytuj" title="Edytuj" border="0"/></a> |
<a href="#"><img src="image/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
</td>
</tr>
<tr class="even">
<td align="center">2</td>
<td>nazwa 2</td>
<td>informacje 2</td>
<td align="center">
<a href="#"><img src="image/iconEdit.gif" alt="Edytuj" title="Edytuj" border="0"/></a> |
<a href="#"><img src="image/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
</td>
</tr>
</table>
{/dropDownContainer*}
</div>
</div>
<div class="panelRightBottom">
<div class="panelButtons">
<input type="button" class="button buttonAnuluj" value="" name="" onclick="javascript:document.location.href='{url _value=$controller,index}'"/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{*<input type="submit" class="button buttonPodglad" value="" name=""/>*}
{*<input type="button" class="button buttonZapisz" value="" name="saveStructure"
{if $method != 'Index'} onmouseover="var descriptionEditor = FCKeditorAPI.GetInstance('description'); var descriptionHidden = document.getElementById('descriptionHidden'); descriptionHidden.value = descriptionEditor.GetXHTML(false);" {/if}
onclick="{if $method != 'Index'} GetFromFCK('description'); GetFromFCK('shortnote'); {/if} Dosia.Form('sendForm'); return false;" />*}
<input type="submit" class="button buttonZapisz" value=" " name="AddStructureForm"/>
</div>
</div>
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
</form>

View File

@@ -0,0 +1,5 @@
<script language="javascript" type="text/javascript">
//load('{url _value=structure}');
//loadTree();
window.location='{url _value=structure}';
</script>

View File

@@ -0,0 +1,11 @@
{if isset($arrayList)}
$('contentList').innerHTML = '{foreach from=$arrayList key=id item=element} <a href="#" onclick="document.getElementById(\'contentList\').style.display=\'none\'; document.getElementById(\'idContent\').value=\'{$id}\'; document.getElementById(\'contentName\').innerHTML=\'{$element.title}\';">{$element.title}</a><br />{/foreach}';
{/if}
{if $url}
$('url').value = '{$url}';
$('content').style.display='none';
{else}
$('url').value = '';
$('content').style.display='';
{/if}

View File

@@ -0,0 +1,5 @@
{foreach from=$arrayObj item=obj key=idStructure}
<a href="{url structure=makeVersion id=$obj->GetId()}" onclick="return load(this); document.getElementById('stucturePopover').style.display = none; ">&nbsp;&nbsp;{$obj->GetName()}&nbsp;&nbsp;</a>
{/foreach}

View File

@@ -0,0 +1,14 @@
{if $arrayModuleCategory}
<script language="javascript" type="text/javascript">
document.getElementById('dalejPopover').style.display = 'none';
</script>
<div class="floatLeft frameLeftPopover">Wybierz kategorię: </div>
<select name="idCategory" onchange="document.getElementById('dalejPopover').style.display = '';">
<option value="0">Wybierz</option>
{html_options options=$arrayModuleCategory}
</select>
{else}
<script language="javascript" type="text/javascript">
document.getElementById('dalejPopover').style.display = '';
</script>
{/if}

View File

@@ -0,0 +1,6 @@
{foreach from=$out item=validate}
$('{$validate.field}Error').innerHTML = '{$validate.msg}';
{foreachelse}
load('{url structure='edit' id=$id'}');
loadTree();
{/foreach}

View File

@@ -0,0 +1,4 @@
{if !$ext}
alert('Dostępne rozszerzenia to jpg, jpeg, gif, png, bmp');
document.getElementById('file').value="";
{/if}

View File

@@ -0,0 +1 @@
document.getElementById('{$photo}').style.display="none";

View File

@@ -0,0 +1,305 @@
<div class="panelRightTop"></div>
<form action="{url label=copyStructure id=$objElement->GetId()}" id="sendForm" method="post" enctype="multipart/form-data" >
<div class="panelRightBody">
<div class="paddedContent">
<input type="hidden" name="id" value="{$objElement->GetId()}" />
<input type="hidden" name="idRouter" value="{$objElement->GetIdRouter()}" />
<input type="hidden" name="sort" value="{$objElement->GetSort()}" />
<input type="hidden" name="idParent" value="{$objElement->GetIdParent()}" />
<input type="hidden" name="idMain" value="{$objElement->GetIdMain()}" />
{dropDownContainer title='Ogólne'}
<table class="frameTableForm tableContetntWhite" cellpadding="5" cellspacing="0" border="0" width="100%">
<tr>
<td>Nazwa elementu:</td>
<td class="left">
<input class="inputWidth141 input100percent" type="text" name="elementName" value="{$objElement->GetElementName()}_kopia" />
{if isset($error.elementName)}<div style="color: red;" id="actionError">{$error.elementName}</div>{/if}
</td>
</tr>
<tr>
<td>Tytuł strony:</td>
<td class="left">{formField name='title' class='inputWidth141 input100percent' errorClass='error' type='text' obj='objElement' func='GetName'}
{if isset($error.title)}<div style="color: red;" id="actionError">{$error.title}</div>{/if}</td>
</tr>
<tr>
<td>Typ:</td>
<td class="left">
<select name="type">
<option value="1" {if $objElement->GetType() == '1'}selected{/if}>
Menu
</option>
<option value="2" {if $objElement->GetType() == '2'}selected{/if}>
Stopka
</option>
{*<option value="3" {if $objElement->GetType() == '3'}selected{/if}>
Pozostałe
</option>*}
</select>
</td>
</tr>
{*
<tr>
<td>Kolejność:</td>
<td class="left">
<input type="text" name="sort" value="{$objElement->GetSort()}" />
</td>
</tr>
*}
<tr>
<td style="width:30%">Publikuj:</td>
<td>
<input class="input" type="checkbox" name="publication" id="publication" value="1" {if $objElement->GetPublication()}checked{/if} />
</td>
</tr>
<tr>
<td style="width:30%">Publikuj w menu:</td>
<td>
<input class="input" type="checkbox" name="publication_menu" id="publication_menu" value="1" {if $objElement->GetPublicationMenu()}checked{/if} />
</td>
</tr>
</table>
{/dropDownContainer}
{dropDownContainer title='Właściwości (SEO)' isClose=true}
{assign var=metaTagDescriptionObj value=$objMetaTag->GetDescriptionObj()}
<table class="frameTableForm" cellpadding="5" cellspacing="0" border="0" width="100%">
<tr>
<td>Url</td>
<td>
{if $objModule->GetList() == 1}
{assign var=arrayModuleOptions value=$objModule->GetArrayOptions()}
{assign var=matchUri value=$arrayModuleOptions.defaultUrl}
<input class="input" type="text" name="url" id="url" size="60" value="{$matchUri}" disabled />
{else}
<input class="input" type="text" name="url" id="url" size="60" value="{$objElement->GetUrl()}" onchange="ConfirmChange('url', '{$objElement->GetUrl()}');" />
<input class="input" type="hidden" name="urlAlert" id="urlAlert" size="60" value="" />
{/if}
</td>
</tr>
<tr>
<td>Tytuł w menu:<br /></td>
<td class="left"><input class="input420" type="text" name="menuName" value="{$objElement->GetMenuName()}" /></td>
</tr>
<tr>
<td>META Description:<br /></td>
<td class="left"><textarea name="meta_description" cols="77">{$metaTagDescriptionObj->GetDescription()}</textarea></td>
</tr>
<tr>
<td>META Keywords:<br /></td>
<td class="left"><input class="input420" type="text" name="meta_keywords" value="{$metaTagDescriptionObj->GetKeywords()}" /></td>
</tr>
<tr>
<td>Skrypt statystyk*:<br /></td>
<td class="left"><textarea name="statistic" cols="77">{$metaTagDescriptionObj->GetStatistic()}</textarea> </td>
</tr>
<tr>
<td colspan="2"><span style="font-size: 9px;">* W polu statystyk może być tylko kod statystyk!</span></td>
</tr>
</table>
{/dropDownContainer}
{if $objModule->GetList() != 1}
{$zoneContent}
{/if}
{*if $module == 'Stage' && $method != 'Index'}
{dropDownContainer title="Powiązania"}
<div class="panelPowiazaniaContentTop">Szukaj: <input type="text"/> <input type="checkbox"" />wszystkie&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" />powiązane</div>
<div class="panelPowiazaniaContent">
{if $arrayCategory}
<div class="panelPowiazaniaContentTop"><a class="iconCatalogy paddingLeft20" href="#" onclick="LinkList('CategoryList'); return false; ">Kategorie</a></div>
<div class="panelWhiteContentTop" id="CategoryListTop">
<table cellpadding="0" cellspacing="0" border="0" class="tableContetntWhite">
<tr>
<th width="300">nazwa</th>
<th width="250">opis</th>
<th width="34">typ</th>
<th width="59">powiąż</th>
</tr>
</table>
</div>
<div class="panelWhiteContent" style="height: 100px; overflow: auto;" id="CategoryList">
<table cellpadding="0" cellspacing="0" border="0" class="tableContetntWhite">
<tr>
<td width="300"><a class="iconCatalogy iconProperties" href="#">Sceny</a></td
<td width="66" class="center">&nbsp;</td>
</tr>
{foreach from=$arrayCategory item=Category }
<tr id="stage_list">
<td width="300"><a class="iconCategoryUnder iconProperties" href="#">{$Category->GetName()}</a></td>
<td width="66" class="center">
<input type="radio" value="{$Category->GetId()}" name="id_stage" />
</td>
</tr>{/foreach}
</table>
</div>
<div class="panelWhiteContentBottom" id="CategoryListBottom"></div>
{/if}
</div>
<div class="panelPowiazaniaContentBottom"></div>
{/dropDownContainer}
{else}
{if $method != 'Index'}
{dropDownContainer title="Powiązania"}
<div class="panelPowiazaniaContentTop">Szukaj: <input type="text"/> <input type="checkbox"" />wszystkie&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" />powiązane</div>
<div class="panelPowiazaniaContent">
{if $arrayCategory}
<div class="panelPowiazaniaContentTop"><a class="iconCatalogy paddingLeft20" href="#" onclick="LinkList('CategoryList'); return false; ">Kategorie</a></div>
<div class="panelWhiteContentTop" id="CategoryListTop">
<table cellpadding="0" cellspacing="0" border="0" class="tableContetntWhite">
<tr>
<th width="300">nazwa</th>
<th width="250">opis</th>
<th width="34">typ</th>
<th width="59">powiąż</th>
</tr>
</table>
</div>
<div class="panelWhiteContent" style="height: 100px; overflow: auto;" id="CategoryList">
<table cellpadding="0" cellspacing="0" border="0" class="tableContetntWhite">
<tr>
<td width="300"><a class="iconCatalogy iconProperties" href="#">Kategorie</a></td>
<td width="250">&nbsp;</td>
<td width="24" class="center"><img src="{$urlStatic}/image/Admin/iconType.gif" alt="iconType.gif" title="typ" /></td>
<td width="66" class="center">&nbsp;</td>
</tr>
{foreach from=$arrayCategory item=Category key=idCategory}
<tr id="{$tableModuleNameCategory}_list[{$idCategory}]">
<td width="300"><a class="iconCategoryUnder iconProperties" href="#">{$Category.name}</a></td>
<td width="250"><a href="#">{$Category.description}</a></td>
<td width="24" class="center"><img src="{$urlStatic}/image/Admin/iconType01.gif" alt="iconType.gif" title="typ" /></td>
<td width="66" class="center">
<input type="checkbox" {$Category.checked} {if $idCategoryChecked == $idCategory}checked{/if} name="{$tableModuleNameCategory}_link[{$idCategory}]" id="{$tableModuleNameCategory}_link[{$idCategory}]" value="{$idCategory}" onclick="javascript: Link({$idContent}, '{$tableModuleName}', '{$tableModuleNameCategory}', document.getElementById('{$tableModuleNameCategory}_link[{$idCategory}]').value, document.getElementById('{$tableModuleNameCategory}_action[{$idCategory}]').value);" />
<input type="hidden" name="{$tableModuleNameCategory}_action[{$idCategory}]" id="{$tableModuleNameCategory}_action[{$idCategory}]" {if $idCategory.checked == 'checked' } value="delete" {else} value="add"{/if} />
</td>
</tr>{/foreach}
</table>
</div>
<div class="panelWhiteContentBottom" id="CategoryListBottom"></div>
{/if}
</div>
<div class="panelPowiazaniaContentBottom"></div>
{/dropDownContainer}
{/if}
{/if*}
{*dropDownContainer title="Baner górny"}
<div id="photoDisplay">
{if $objElement->GetBanner()} <img src="{$objElement->GetBannerThWhitUrl()}" alt="test" style=" border:1px solid #000000; margin-right:5px; margin-bottom: 5px" /> {/if}<input type="hidden" name="photo" value="{$objElement->GetBanner()}" /> </div>
<div class="clearBoth"></div>
<div class="error" id="bannerError"></div>
<div class="clearBoth"></div>
{/dropDownContainer}
{dropDownContainer title="Dodaj baner górny"}
{assign var=idElement value=$objElement->GetId()}
<iframe name="PhotoUpload" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto" height="78" width="625" src="{url Structure='PhotoUpload' id=$idElement}">
<noscript>
Do wyświetlenia konieczne jest działanie ramek (iframe).
</noscript>
</iframe>
{/dropDownContainer*}
{*dropDownContainer title="Tabelki z danymi" isClose=true}
<table width="100%" class="datagrid" cellpadding="4" cellspacing="1">
<tr>
<th width="20">lp</th>
<th>nazwa</th>
<th>informacje<
<th width="20">lp<//th>
<th width="60"><a href="#"><img src="image/iconAdd.gif" alt="Dodaj" title="Dodaj" border="0"/></a></th>
</tr>
<tr>
<td align="center">1</td>
<td>nazwa 1</td>
<td>informacje 1</td>
<td align="center">
<a href="#"><img src="image/iconEdit.gif" alt="Edytuj" title="Edytuj" border="0"/></a> |
<a href="#"><img src="image/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
</td>
</tr>
<tr class="even">
<td align="center">2</td>
<td>nazwa 2</td>
<td>informacje 2</td>
<td align="center">
<a href="#"><img src="image/iconEdit.gif" alt="Edytuj" title="Edytuj" border="0"/></a> |
<a href="#"><img src="image/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
</td>
</tr>
<tr>
<td align="center">1</td>
<td>nazwa 1</td>
<td>informacje 1</td>
<td align="center">
<a href="#"><img src="image/iconEdit.gif" alt="Edytuj" title="Edytuj" border="0"/></a> |
<a href="#"><img src="image/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
</td>
</tr>
<tr class="even">
<td align="center">2</td>
<td>nazwa 2</td>
<td>informacje 2</td>
<td align="center">
<a href="#"><img src="image/iconEdit.gif" alt="Edytuj" title="Edytuj" border="0"/></a> |
<a href="#"><img src="image/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
</td>
</tr>
</table>
{/dropDownContainer*}
</div>
</div>
<div class="panelRightBottom">
<div class="panelButtons">
<input type="button" class="button buttonAnuluj" value="" name="" onclick="javascript:document.location.href='{url _value=$controller,index}'"/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{*<input type="submit" class="button buttonPodglad" value="" name=""/>*}
{*<input type="button" class="button buttonZapisz" value="" name="saveStructure"
{if $method != 'Index'} onmouseover="var descriptionEditor = FCKeditorAPI.GetInstance('description'); var descriptionHidden = document.getElementById('descriptionHidden'); descriptionHidden.value = descriptionEditor.GetXHTML(false);" {/if}
onclick="{if $method != 'Index'} GetFromFCK('description'); GetFromFCK('shortnote'); {/if} Dosia.Form('sendForm'); return false;" />*}
<input type="submit" class="button buttonZapisz" value=" " name="EditStructureForm"/>
</div>
</div>
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
</form>

View File

@@ -0,0 +1,45 @@
<div class="panelRightTop"></div>
<div class="panelRightBody">
<div class="paddedContent">
<div class="panelContentTop"><h2><a href="#" class="long">&nbsp;</a></h2></div>
<div class="panelContentBody">
<center>
{if !isset($deleteError)}
{if !$deleteAction}
Usunięto element.
<br />
<input type="button" value="OK" onclick="document.location='{url Structure=Index}'">
{else}
Nie można usunąć elementu. Proszę sprawdzić powiązania.<br />
<input type="button" value="OK" onclick="document.location='{url Structure=Index}'">
{/if}
{else}
Nie wybrano elementu.<br />
<input type="button" value="OK" onclick="document.location='{url Structure=Index}'">
{/if}
</center>
</div>
<div class="panelContentBottom"></div>
</div>
</div>
<div class="panelRightBottom">
<div class="panelButtons">
{*
<form method="post" action="">
<input type="submit" class="button buttonAnuluj" value="" name=""/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" class="button buttonPodglad" value="" name=""/>
<input type="submit" class="button buttonZapisz" value="" name=""/>
<input type="submit" class="button120 buttonZapiszIPublikuj" value="" name=""/>
</form>
*}
</div>
</div>

View File

@@ -0,0 +1,223 @@
<h1>Dodaj element</h1>
<form action="{url label=editStructure id=$objElement->GetId()}" id="sendForm" method="post" enctype="multipart/form-data" >
<div class="panelRightBody">
<div class="paddedContent">
<input type="hidden" name="id" value="{$objElement->GetId()}" />
<input type="hidden" name="idRouter" value="{$objElement->GetIdRouter()}" />
<input type="hidden" name="sort" value="{$objElement->GetSort()}" />
<input type="hidden" name="idParent" value="{$objElement->GetIdParent()}" />
<input type="hidden" name="idMain" value="{$objElement->GetIdMain()}" />
<input type="hidden" name="location" value="{$location}" />
<input type="hidden" name="type" value="1" />
{dropDownContainer title='Ogólne'}
<table class="commonTable" cellpadding="5" cellspacing="0" border="0" width="100%">
<tr>
<td>Nazwa elementu:</td>
<td class="left">{formField name='elementName' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objElement' func='GetElementName'}
{if isset($error.elementName)}<div style="color: red;" id="actionError" class="validate">{$error.elementName}</div>{/if}
</td>
</tr>
<tr>
<td>Tytuł strony:</td>
<td class="left">{formField name='title' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objElement' func='GetName'}
{if isset($error.title)}<div style="color: red;" id="actionError" class="validate">{$error.title}</div>{/if}</td>
</tr>
<tr>
<td>Subtytuł strony:</td>
<td class="left">{formField name='subname' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objElement' func='GetSubname'}
{if isset($error.subname)}<div style="color: red;" id="actionError" class="validate">{$error.subname}</div>{/if}
</td>
</tr>
{*<tr>
<td>Tytuł w przeglądarce:</td>
<td class="left"><input class="input420" type="text" name="browser_title" id="browser_title" value="{$objElement->GetName()|escape}" /></td>
</tr>
<tr>
<td>Data publikacji:</td>
<td class="left"><input type="text" /><a href="#"><img src="{$urlStatic}/image/Admin/iconCalendar.gif" border="0" title="Kalendarz" alt="iconCalendar.gif" /></a>&nbsp;&nbsp;&nbsp;<input type="text" /><a href="#"><img src="{$urlStatic}/image/Admin/iconCalendar.gif" border="0" title="Kalendarz" alt="iconCalendar.gif" /></a></td>
</tr>
<tr>
<td>Dostęp:</td>
<td class="left">
<select>
<option>
Wszyscy
</option>
<option>
Administratorzy
</option>
<option>
Redaktorzy
</option>
</select>
</td>
</tr>*}
<tr>
<td>Typ:</td>
<td class="left">
<input type="hidden" name="type" value="1" />
<select name="type">
<option value="1" {if $objElement->GetType() == '1'}selected{/if}>
Menu Top
</option>
{*<option value="3" {if $objElement->GetType() == '3'}selected{/if}>
Menu Left
</option>*}
<option value="2" {if $objElement->GetType() == '2'}selected{/if}>
Pozostałe
</option>
</select>
</td>
</tr>
{if $lang != 'pl'}
<tr>
<td>Odpowiednik w wersji polskiej:</td>
<td class="left">
<input type="hidden" name="type" value="1" />
<select name="idStructurePl">
<option value="0" >
</option>
{foreach from=$arrayStructurePl item=structureName key=idStructurePl}
<option value="{$idStructurePl}" {if $slectedLang == $idStructurePl} selected{/if} >
{$structureName}
</option>
{/foreach}
</select>
</td>
</tr>
{/if}
<tr>
<td style="width:30%">Publikuj:</td>
<td>
<input class="input" type="checkbox" name="publication" id="publication" value="1" {if $objElement->GetPublication()}checked{/if} />
</td>
</tr>
<tr>
<td style="width:30%">Publikuj w menu:</td>
<td>
<input class="input" type="checkbox" name="publication_menu" id="publication_menu" value="1" {if $objElement->GetPublicationMenu()}checked{/if} />
</td>
</tr>
</table>
{*<table class="adminTable" cellpadding="2" cellspacing="2" style="width:80%; height: 200px;" align="center">
<tr>
<td class="header" colspan="2">Element menu</td>
</tr>
<tr>
<td style="width:30%">Nazwa:</td>
<td>
<input class="input" type="text" name="name" id="name" size="60" value="{$objElement->GetName()}" />
</td>
</tr>
<tr>
<td style="width:30%">Publikuj:</td>
<td>
<input class="input" type="checkbox" name="publication" id="publication" value="1" {if $objElement->GetPublication()}checked{/if} />
</td>
</tr>
<tr>
<td style="width:30%">Url</td>
<td>
<input class="input" type="text" name="url" id="url" size="60" value="{$objElement->GetUrl()}" />
</td>
</tr>
</table>*}
{/dropDownContainer}
{dropDownContainer title='Właściwości (SEO)' isClose=true}
{assign var=metaTagDescriptionObj value=$objMetaTag->GetDescriptionObj()}
<table class="commonTable" cellpadding="5" cellspacing="0" border="0" width="100%">
<tr>
<td>Url</td>
<td>
{if $objModule->GetList() == 1}
{assign var=arrayModuleOptions value=$objModule->GetArrayOptions()}
{assign var=matchUri value=$arrayModuleOptions.defaultUrl}
<input class="input" type="text" name="url" id="url" size="60" value="{$matchUri}" disabled />
{else}
<input class="input" type="text" name="url" id="url" size="60" value="{$objElement->GetUrl()}" />
{/if}
</td>
</tr>
<tr>
<td>Tytuł w menu:<br /></td>
<td class="left"><input class="input420" type="text" name="menuName" value="{$objElement->GetMenuName()|escape}" /></td>
</tr>
<tr>
<td>META Description:<br /></td>
<td class="left"><textarea name="meta_description" cols="77">{$metaTagDescriptionObj->GetDescription()|escape}</textarea></td>
</tr>
<tr>
<td>META Keywords:<br /></td>
<td class="left"><input class="input420" type="text" name="meta_keywords" value="{$metaTagDescriptionObj->GetKeywords()|escape}" /></td>
</tr>
<tr>
<td>Skrypt statystyk*:<br /></td>
<td class="left"><textarea name="statistic" cols="77">{$metaTagDescriptionObj->GetStatistic()}</textarea> </td>
</tr>
<tr>
<td colspan="2"><span style="font-size: 9px;">* W polu statystyk może być tylko kod statystyk!</span></td>
</tr>
</table>
{/dropDownContainer}
{assign var=EditImgList value=true}
{assign var=TitleImgList value='Zdjecie na listy'}
{if $objModule->Getid() == 3 || $objModule->Getid() == 4}
{assign var=EditImgList value=false}
{assign var=TitleImgList value='Zdjecie na listy'}
{/if}
{dropDownContainer title=$TitleImgList isClose=false isHidden=$EditImgList}
{*<div class="floatLeft">
{if $objElement->GetPicture()}<img src="{$objElement->GetPictureUrl()}" />{/if}
</div>*}
<div class="floatLeft" style="margin-left: 10px;">
{if $objElement->GetPicture()}<img src="{$objElement->GetPictureUrl()}" />{/if}
</div>
<div class="clearBoth"></div>
<div class="articlePreviewRight">
<input type="file" name="filename" />
</div>
<div class="clearBoth"></div>
<div class="articlePreviewRight">
<input type="checkbox" name="deletePhoto" > Usuń obrazek
</div>
<div class="clearBoth"></div>
{/dropDownContainer}
{if $objModule->GetList() != 1}
{if isset($zoneContent)}
{$zoneContent}
{/if}
{/if}
{if isset($editStructureArticle)}
{$editStructureArticle}
{/if}
{if isset($editStructureProject)}
{$editStructureProject}
{/if}
{if isset($editStructure)}
{$editStructure}
{/if}
</div>
</div>
<div class="cb"></div>
<div class="panelButtons">
<input type="button" class="cancel" value="Anuluj" name="" onclick="javascript:document.location.href='{url label=current}'"/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" value="Zapisz" name="EditStructureForm"/>
</div>
</form>

View File

@@ -0,0 +1,319 @@
<div class="panelRightTop"></div>
<form action="{url label=editStructure id=$objElement->GetId()}" id="sendForm" method="post" enctype="multipart/form-data" >
<div class="panelRightBody">
<div class="paddedContent">
<input type="hidden" name="id" value="{$objElement->GetId()}" />
<input type="hidden" name="idRouter" value="{$objElement->GetIdRouter()}" />
<input type="hidden" name="sort" value="{$objElement->GetSort()}" />
<input type="hidden" name="idParent" value="{$objElement->GetIdParent()}" />
<input type="hidden" name="idMain" value="{$objElement->GetIdMain()}" />
<input type="hidden" name="service" value="{$service}" />
{dropDownContainer title='Ogólne'}
<table class="commonTable" cellpadding="5" cellspacing="0" border="0" width="100%">
<tr>
<td>Nazwa elementu:</td>
<td class="left">{formField name='elementName' class='inputWidth141 input100percent' errorClass='error' type='text' obj='objElement' func='GetElementName'}
{if isset($error.elementName)}<div style="color: red;" id="actionError">{$error.elementName}</div>{/if}
</td>
</tr>
<tr>
<td>Tytuł strony:</td>
<td class="left">{formField name='title' class='inputWidth141 input100percent' errorClass='error' type='text' obj='objElement' func='GetName'}
{if isset($error.title)}<div style="color: red;" id="actionError">{$error.title}</div>{/if}</td>
</tr>
<tr>
<td>Subtytuł strony:</td>
<td class="left">{formField name='subname' class='inputWidth141 input100percent' errorClass='error' type='text' obj='objElement' func='GetSubname'}
{if isset($error.subname)}<div style="color: red;" id="actionError">{$error.subname}</div>{/if}
</td>
</tr>
{*<tr>
<td>Tytuł w przeglądarce:</td>
<td class="left"><input class="input420" type="text" name="browser_title" id="browser_title" value="{$objElement->GetName()|escape}" /></td>
</tr>
<tr>
<td>Data publikacji:</td>
<td class="left"><input type="text" /><a href="#"><img src="{$urlStatic}/image/Admin/iconCalendar.gif" border="0" title="Kalendarz" alt="iconCalendar.gif" /></a>&nbsp;&nbsp;&nbsp;<input type="text" /><a href="#"><img src="{$urlStatic}/image/Admin/iconCalendar.gif" border="0" title="Kalendarz" alt="iconCalendar.gif" /></a></td>
</tr>
<tr>
<td>Dostęp:</td>
<td class="left">
<select>
<option>
Wszyscy
</option>
<option>
Administratorzy
</option>
<option>
Redaktorzy
</option>
</select>
</td>
</tr>*}
<tr>
<td>Typ:</td>
<td class="left">
<input type="hidden" name="type" value="1" />
<select name="type">
<option value="1" {if $objElement->GetType() == '1'}selected{/if}>
Menu Top
</option>
<option value="2" {if $objElement->GetType() == '2'}selected{/if}>
Menu Left
</option>
{*<option value="3" {if $objElement->GetType() == '3'}selected{/if}>
Pozostałe
</option>*}
</select>
</td>
</tr>
<tr>
<td style="width:30%">Publikuj:</td>
<td>
<input class="input" type="checkbox" name="publication" id="publication" value="1" {if $objElement->GetPublication()}checked{/if} />
</td>
</tr>
<tr>
<td style="width:30%">Publikuj w menu:</td>
<td>
<input class="input" type="checkbox" name="publication_menu" id="publication_menu" value="1" {if $objElement->GetPublicationMenu()}checked{/if} />
</td>
</tr>
</table>
{*<table class="adminTable" cellpadding="2" cellspacing="2" style="width:80%; height: 200px;" align="center">
<tr>
<td class="header" colspan="2">Element menu</td>
</tr>
<tr>
<td style="width:30%">Nazwa:</td>
<td>
<input class="input" type="text" name="name" id="name" size="60" value="{$objElement->GetName()}" />
</td>
</tr>
<tr>
<td style="width:30%">Publikuj:</td>
<td>
<input class="input" type="checkbox" name="publication" id="publication" value="1" {if $objElement->GetPublication()}checked{/if} />
</td>
</tr>
<tr>
<td style="width:30%">Url</td>
<td>
<input class="input" type="text" name="url" id="url" size="60" value="{$objElement->GetUrl()}" />
</td>
</tr>
</table>*}
{/dropDownContainer}
{dropDownContainer title='Właściwości (SEO)' isClose=true}
{assign var=metaTagDescriptionObj value=$objMetaTag->GetDescriptionObj()}
<table class="commonTable" cellpadding="5" cellspacing="0" border="0" width="100%">
<tr>
<td>Url</td>
<td>
{if $objModule->GetList() == 1}
{assign var=arrayModuleOptions value=$objModule->GetArrayOptions()}
{assign var=matchUri value=$arrayModuleOptions.defaultUrl}
<input class="input" type="text" name="url" id="url" size="60" value="{$matchUri}" disabled />
{else}
<input class="input" type="text" name="url" id="url" size="60" value="{$objElement->GetUrl()}" />
{/if}
</td>
</tr>
<tr>
<td>Tytuł w menu:<br /></td>
<td class="left"><input class="input420" type="text" name="menuName" value="{$objElement->GetMenuName()|escape}" /></td>
</tr>
<tr>
<td>META Description:<br /></td>
<td class="left"><textarea name="meta_description" cols="77">{$metaTagDescriptionObj->GetDescription()|escape}</textarea></td>
</tr>
<tr>
<td>META Keywords:<br /></td>
<td class="left"><input class="input420" type="text" name="meta_keywords" value="{$metaTagDescriptionObj->GetKeywords()|escape}" /></td>
</tr>
<tr>
<td>Skrypt statystyk*:<br /></td>
<td class="left"><textarea name="statistic" cols="77">{$metaTagDescriptionObj->GetStatistic()}</textarea> </td>
</tr>
<tr>
<td colspan="2"><span style="font-size: 9px;">* W polu statystyk może być tylko kod statystyk!</span></td>
</tr>
</table>
{/dropDownContainer}
{if $objModule->GetList() != 1}
{if isset($zoneContent)}
{$zoneContent}
{/if}
{/if}
{if isset($editStructureProject)}
{$editStructureProject}
{/if}
{if isset($editStructure)}
{$editStructure}
{/if}
{*if $method == 'Index'}
{dropDownContainer title="Powiązania"}
<div class="panelPowiazaniaContentTop">Szukaj: <input type="text"/> <input type="checkbox"" />wszystkie&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" />powiązane</div>
<div class="panelPowiazaniaContent">
{if $arrayCategory}
<div class="panelPowiazaniaContentTop"><a class="iconCatalogy paddingLeft20" href="#" onclick="LinkList('CategoryList'); return false; ">Kategorie</a></div>
<div class="panelWhiteContentTop" id="CategoryListTop">
<table cellpadding="0" cellspacing="0" border="0" class="tableContetntWhite">
<tr>
<th width="300">nazwa</th>
<th width="250">opis</th>
<th width="34">typ</th>
<th width="59">powiąż</th>
</tr>
</table>
</div>
<div class="panelWhiteContent" style="height: 100px; overflow: auto;" id="CategoryList">
<table cellpadding="0" cellspacing="0" border="0" class="tableContetntWhite">
<tr>
<td width="300"><a class="iconCatalogy iconProperties" href="#">Kategorie</a></td>
<td width="250">&nbsp;</td>
<td width="24" class="center"><img src="{$urlStatic}/image/Admin/iconType.gif" alt="iconType.gif" title="typ" /></td>
<td width="66" class="center">&nbsp;</td>
</tr>
{foreach from=$arrayCategory item=Category key=idCategory}
<tr id="{$tableModuleNameCategory}_list[{$idCategory}]">
<td width="300"><a class="iconCategoryUnder iconProperties" href="#">{$Category.name}</a></td>
<td width="250"><a href="#">{$Category.description}</a></td>
<td width="24" class="center"><img src="{$urlStatic}/image/Admin/iconType01.gif" alt="iconType.gif" title="typ" /></td>
<td width="66" class="center">
<input type="checkbox" {$Category.checked} {if $idCategoryChecked == $idCategory}checked{/if} name="{$tableModuleNameCategory}_link[{$idCategory}]" id="{$tableModuleNameCategory}_link[{$idCategory}]" value="{$idCategory}" onclick="javascript: Link({$idContent}, '{$tableModuleName}', '{$tableModuleNameCategory}', document.getElementById('{$tableModuleNameCategory}_link[{$idCategory}]').value, document.getElementById('{$tableModuleNameCategory}_action[{$idCategory}]').value);" />
<input type="hidden" name="{$tableModuleNameCategory}_action[{$idCategory}]" id="{$tableModuleNameCategory}_action[{$idCategory}]" {if $idCategory.checked == 'checked' } value="delete" {else} value="add"{/if} />
</td>
</tr>{/foreach}
</table>
</div>
<div class="panelWhiteContentBottom" id="CategoryListBottom"></div>
{/if}
</div>
<div class="panelPowiazaniaContentBottom"></div>
{/dropDownContainer}
{/if*}
{dropDownContainer title="Zdjecie na listy"}
{*<div class="floatLeft">
{if $objElement->GetPicture()}<img src="{$objElement->GetPictureUrl()}" />{/if}
</div>*}
<div class="floatLeft" style="margin-left: 10px;">
{if $objElement->GetPictureMini()}<img src="{$objElement->GetPictureMiniUrl()}" />{/if}
</div>
<div class="clearBoth"></div>
<div class="articlePreviewRight">
<input type="file" name="filename" />
</div>
<div class="clearBoth"></div>
<div class="articlePreviewRight">
<input type="checkbox" name="deletePhoto" > Usuń obrazek
</div>
<div class="clearBoth"></div>
{/dropDownContainer}
{*dropDownContainer title="Baner górny"}
<div id="photoDisplay">
{if $objElement->GetBanner()} <img src="{$objElement->GetBannerThWhitUrl()}" alt="test" style=" border:1px solid #000000; margin-right:5px; margin-bottom: 5px" /> {/if}<input type="hidden" name="photo" value="{$objElement->GetBanner()}" /> </div>
<div class="clearBoth"></div>
<div class="error" id="bannerError"></div>
<div class="clearBoth"></div>
{/dropDownContainer}
{dropDownContainer title="Dodaj baner górny"}
{assign var=idElement value=$objElement->GetId()}
<iframe name="PhotoUpload" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto" height="78" width="625" src="{url Structure='PhotoUpload' id=$idElement}">
<noscript>
Do wyświetlenia konieczne jest działanie ramek (iframe).
</noscript>
</iframe>
{/dropDownContainer*}
{*dropDownContainer title="Tabelki z danymi" isClose=true}
<table width="100%" class="datagrid" cellpadding="4" cellspacing="1">
<tr>
<th width="20">lp</th>
<th>nazwa</th>
<th>informacje<
<th width="20">lp<//th>
<th width="60"><a href="#"><img src="image/iconAdd.gif" alt="Dodaj" title="Dodaj" border="0"/></a></th>
</tr>
<tr>
<td align="center">1</td>
<td>nazwa 1</td>
<td>informacje 1</td>
<td align="center">
<a href="#"><img src="image/iconEdit.gif" alt="Edytuj" title="Edytuj" border="0"/></a> |
<a href="#"><img src="image/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
</td>
</tr>
<tr class="even">
<td align="center">2</td>
<td>nazwa 2</td>
<td>informacje 2</td>
<td align="center">
<a href="#"><img src="image/iconEdit.gif" alt="Edytuj" title="Edytuj" border="0"/></a> |
<a href="#"><img src="image/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
</td>
</tr>
<tr>
<td align="center">1</td>
<td>nazwa 1</td>
<td>informacje 1</td>
<td align="center">
<a href="#"><img src="image/iconEdit.gif" alt="Edytuj" title="Edytuj" border="0"/></a> |
<a href="#"><img src="image/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
</td>
</tr>
<tr class="even">
<td align="center">2</td>
<td>nazwa 2</td>
<td>informacje 2</td>
<td align="center">
<a href="#"><img src="image/iconEdit.gif" alt="Edytuj" title="Edytuj" border="0"/></a> |
<a href="#"><img src="image/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
</td>
</tr>
</table>
{/dropDownContainer*}
</div>
</div>
<div class="cb"></div>
<div class="panelButtons">
<input type="button" class="cancel" value="Anuluj" name="" onclick="javascript:document.location.href='{url _value=$controller,index}'"/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" value="Zapisz" name="EditStructureForm"/>
</div>
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
</form>

View File

@@ -0,0 +1,341 @@
<h1>Strefa</h1>
<form action="{url label=editStructure id=$objElement->GetId()}" id="sendForm" method="post" enctype="multipart/form-data" >
<div class="panelRightBody">
<div class="paddedContent">
<input type="hidden" name="id" value="{$objElement->GetId()}" />
<input type="hidden" name="idRouter" value="{$objElement->GetIdRouter()}" />
<input type="hidden" name="sort" value="{$objElement->GetSort()}" />
<input type="hidden" name="idParent" value="{$objElement->GetIdParent()}" />
<input type="hidden" name="idMain" value="{$objElement->GetIdMain()}" />
<input type="hidden" name="location" value="{$location}" />
<input type="hidden" name="type" value="1" />
{dropDownContainer title='Ogólne' isHidden=true}
<table class="commonTable" cellpadding="5" cellspacing="0" border="0" width="100%">
<tr>
<td>Nazwa elementu:</td>
<td class="left">{formField name='elementName' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objElement' func='GetElementName'}
{if isset($error.elementName)}<div style="color: red;" id="actionError" class="validate">{$error.elementName}</div>{/if}
</td>
</tr>
<tr style="display: none;">
<td>Tytuł strony:</td>
<td class="left">{formField name='title' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objElement' func='GetName'}
{if isset($error.title)}<div style="color: red;" id="actionError" class="validate">{$error.title}</div>{/if}</td>
</tr>
<tr style="display: none;">
<td>Subtytuł strony:</td>
<td class="left">{formField name='subname' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objElement' func='GetSubname'}
{if isset($error.subname)}<div style="color: red;" id="actionError" class="validate">{$error.subname}</div>{/if}
</td>
</tr>
{*<tr>
<td>Tytuł w przeglądarce:</td>
<td class="left"><input class="input420" type="text" name="browser_title" id="browser_title" value="{$objElement->GetName()|escape}" /></td>
</tr>
<tr>
<td>Data publikacji:</td>
<td class="left"><input type="text" /><a href="#"><img src="{$urlStatic}/image/Admin/iconCalendar.gif" border="0" title="Kalendarz" alt="iconCalendar.gif" /></a>&nbsp;&nbsp;&nbsp;<input type="text" /><a href="#"><img src="{$urlStatic}/image/Admin/iconCalendar.gif" border="0" title="Kalendarz" alt="iconCalendar.gif" /></a></td>
</tr>
<tr>
<td>Dostęp:</td>
<td class="left">
<select>
<option>
Wszyscy
</option>
<option>
Administratorzy
</option>
<option>
Redaktorzy
</option>
</select>
</td>
</tr>*}
{*
<tr>
<td>Typ:</td>
<td class="left">
<input type="hidden" name="type" value="1" />
<select name="type">
<option value="1" {if $objElement->GetType() == '1'}selected{/if}>
Menu Top
</option>
<option value="2" {if $objElement->GetType() == '2'}selected{/if}>
Menu Left
</option>
<option value="3" {if $objElement->GetType() == '3'}selected{/if}>
Pozostałe
</option>
</select>
</td>
</tr>
*}
{if $lang != 'pl'}
<tr>
<td>Odpowiednik w wersji polskiej:</td>
<td class="left">
<input type="hidden" name="type" value="1" />
<select name="idStructurePl">
<option value="0" >
</option>
{foreach from=$arrayStructurePl item=structureName key=idStructurePl}
<option value="{$idStructurePl}" {if $slectedLang == $idStructurePl} selected{/if} >
{$structureName}
</option>
{/foreach}
</select>
</td>
</tr>
{/if}
<tr>
<td style="width:30%">Publikuj:</td>
<td>
<input class="input" type="checkbox" name="publication" id="publication" value="1" {if $objElement->GetPublication()}checked{/if} />
</td>
</tr>
<tr>
<td style="width:30%">Publikuj w menu:</td>
<td>
<input class="input" type="checkbox" name="publication_menu" id="publication_menu" value="1" {if $objElement->GetPublicationMenu()}checked{/if} />
</td>
</tr>
</table>
{*<table class="adminTable" cellpadding="2" cellspacing="2" style="width:80%; height: 200px;" align="center">
<tr>
<td class="header" colspan="2">Element menu</td>
</tr>
<tr>
<td style="width:30%">Nazwa:</td>
<td>
<input class="input" type="text" name="name" id="name" size="60" value="{$objElement->GetName()}" />
</td>
</tr>
<tr>
<td style="width:30%">Publikuj:</td>
<td>
<input class="input" type="checkbox" name="publication" id="publication" value="1" {if $objElement->GetPublication()}checked{/if} />
</td>
</tr>
<tr>
<td style="width:30%">Url</td>
<td>
<input class="input" type="text" name="url" id="url" size="60" value="{$objElement->GetUrl()}" />
</td>
</tr>
</table>*}
{/dropDownContainer}
{dropDownContainer title='Właściwości (SEO)' isClose=true isHidden=true}
{assign var=metaTagDescriptionObj value=$objMetaTag->GetDescriptionObj()}
<table class="commonTable" cellpadding="5" cellspacing="0" border="0" width="100%">
<tr>
<td>Url</td>
<td>
{if $objModule->GetList() == 1}
{assign var=arrayModuleOptions value=$objModule->GetArrayOptions()}
{assign var=matchUri value=$arrayModuleOptions.defaultUrl}
<input class="input" type="text" name="url" id="url" size="60" value="{$matchUri}" disabled />
{else}
<input class="input" type="text" name="url" id="url" size="60" value="{$objElement->GetUrl()}" />
{/if}
</td>
</tr>
<tr>
<td>Tytuł w menu:<br /></td>
<td class="left"><input class="input420" type="text" name="menuName" value="{$objElement->GetMenuName()|escape}" /></td>
</tr>
<tr>
<td>META Description:<br /></td>
<td class="left"><textarea name="meta_description" cols="77">{$metaTagDescriptionObj->GetDescription()|escape}</textarea></td>
</tr>
<tr>
<td>META Keywords:<br /></td>
<td class="left"><input class="input420" type="text" name="meta_keywords" value="{$metaTagDescriptionObj->GetKeywords()|escape}" /></td>
</tr>
<tr>
<td>Skrypt statystyk*:<br /></td>
<td class="left"><textarea name="statistic" cols="77">{$metaTagDescriptionObj->GetStatistic()}</textarea> </td>
</tr>
<tr>
<td colspan="2"><span style="font-size: 9px;">* W polu statystyk może być tylko kod statystyk!</span></td>
</tr>
</table>
{/dropDownContainer}
{if $objModule->GetList() != 1}
{if isset($zoneContent)}
{$zoneContent}
{/if}
{/if}
{if isset($editStructureArticle)}
{$editStructureArticle}
{/if}
{if isset($editStructureProject)}
{$editStructureProject}
{/if}
{if isset($editStructure)}
{$editStructure}
{/if}
{*if $method == 'Index'}
{dropDownContainer title="Powiązania"}
<div class="panelPowiazaniaContentTop">Szukaj: <input type="text"/> <input type="checkbox"" />wszystkie&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" />powiązane</div>
<div class="panelPowiazaniaContent">
{if $arrayCategory}
<div class="panelPowiazaniaContentTop"><a class="iconCatalogy paddingLeft20" href="#" onclick="LinkList('CategoryList'); return false; ">Kategorie</a></div>
<div class="panelWhiteContentTop" id="CategoryListTop">
<table cellpadding="0" cellspacing="0" border="0" class="tableContetntWhite">
<tr>
<th width="300">nazwa</th>
<th width="250">opis</th>
<th width="34">typ</th>
<th width="59">powiąż</th>
</tr>
</table>
</div>
<div class="panelWhiteContent" style="height: 100px; overflow: auto;" id="CategoryList">
<table cellpadding="0" cellspacing="0" border="0" class="tableContetntWhite">
<tr>
<td width="300"><a class="iconCatalogy iconProperties" href="#">Kategorie</a></td>
<td width="250">&nbsp;</td>
<td width="24" class="center"><img src="{$urlStatic}/image/Admin/iconType.gif" alt="iconType.gif" title="typ" /></td>
<td width="66" class="center">&nbsp;</td>
</tr>
{foreach from=$arrayCategory item=Category key=idCategory}
<tr id="{$tableModuleNameCategory}_list[{$idCategory}]">
<td width="300"><a class="iconCategoryUnder iconProperties" href="#">{$Category.name}</a></td>
<td width="250"><a href="#">{$Category.description}</a></td>
<td width="24" class="center"><img src="{$urlStatic}/image/Admin/iconType01.gif" alt="iconType.gif" title="typ" /></td>
<td width="66" class="center">
<input type="checkbox" {$Category.checked} {if $idCategoryChecked == $idCategory}checked{/if} name="{$tableModuleNameCategory}_link[{$idCategory}]" id="{$tableModuleNameCategory}_link[{$idCategory}]" value="{$idCategory}" onclick="javascript: Link({$idContent}, '{$tableModuleName}', '{$tableModuleNameCategory}', document.getElementById('{$tableModuleNameCategory}_link[{$idCategory}]').value, document.getElementById('{$tableModuleNameCategory}_action[{$idCategory}]').value);" />
<input type="hidden" name="{$tableModuleNameCategory}_action[{$idCategory}]" id="{$tableModuleNameCategory}_action[{$idCategory}]" {if $idCategory.checked == 'checked' } value="delete" {else} value="add"{/if} />
</td>
</tr>{/foreach}
</table>
</div>
<div class="panelWhiteContentBottom" id="CategoryListBottom"></div>
{/if}
</div>
<div class="panelPowiazaniaContentBottom"></div>
{/dropDownContainer}
{/if*}
{*dropDownContainer title="Zdjecie na listy"}
<div class="floatLeft">
{if $objElement->GetPicture()}<img src="{$objElement->GetPictureUrl()}" />{/if}
</div>
<div class="floatLeft" style="margin-left: 10px;">
{if $objElement->GetPictureMini()}<img src="{$objElement->GetPictureMiniUrl()}" />{/if}
</div>
<div class="clearBoth"></div>
<div class="articlePreviewRight">
<input type="file" name="filename" />
</div>
<div class="clearBoth"></div>
<div class="articlePreviewRight">
<input type="checkbox" name="deletePhoto" > Usuń obrazek
</div>
<div class="clearBoth"></div>
{/dropDownContainer*}
{*dropDownContainer title="Baner górny"}
<div id="photoDisplay">
{if $objElement->GetBanner()} <img src="{$objElement->GetBannerThWhitUrl()}" alt="test" style=" border:1px solid #000000; margin-right:5px; margin-bottom: 5px" /> {/if}<input type="hidden" name="photo" value="{$objElement->GetBanner()}" /> </div>
<div class="clearBoth"></div>
<div class="error" id="bannerError"></div>
<div class="clearBoth"></div>
{/dropDownContainer}
{dropDownContainer title="Dodaj baner górny"}
{assign var=idElement value=$objElement->GetId()}
<iframe name="PhotoUpload" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto" height="78" width="625" src="{url Structure='PhotoUpload' id=$idElement}">
<noscript>
Do wyświetlenia konieczne jest działanie ramek (iframe).
</noscript>
</iframe>
{/dropDownContainer*}
{*dropDownContainer title="Tabelki z danymi" isClose=true}
<table width="100%" class="datagrid" cellpadding="4" cellspacing="1">
<tr>
<th width="20">lp</th>
<th>nazwa</th>
<th>informacje<
<th width="20">lp<//th>
<th width="60"><a href="#"><img src="image/iconAdd.gif" alt="Dodaj" title="Dodaj" border="0"/></a></th>
</tr>
<tr>
<td align="center">1</td>
<td>nazwa 1</td>
<td>informacje 1</td>
<td align="center">
<a href="#"><img src="image/iconEdit.gif" alt="Edytuj" title="Edytuj" border="0"/></a> |
<a href="#"><img src="image/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
</td>
</tr>
<tr class="even">
<td align="center">2</td>
<td>nazwa 2</td>
<td>informacje 2</td>
<td align="center">
<a href="#"><img src="image/iconEdit.gif" alt="Edytuj" title="Edytuj" border="0"/></a> |
<a href="#"><img src="image/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
</td>
</tr>
<tr>
<td align="center">1</td>
<td>nazwa 1</td>
<td>informacje 1</td>
<td align="center">
<a href="#"><img src="image/iconEdit.gif" alt="Edytuj" title="Edytuj" border="0"/></a> |
<a href="#"><img src="image/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
</td>
</tr>
<tr class="even">
<td align="center">2</td>
<td>nazwa 2</td>
<td>informacje 2</td>
<td align="center">
<a href="#"><img src="image/iconEdit.gif" alt="Edytuj" title="Edytuj" border="0"/></a> |
<a href="#"><img src="image/iconDelete.gif" alt="Usuń" title="Usuń" border="0"/></a>
</td>
</tr>
</table>
{/dropDownContainer*}
</div>
</div>
<div class="cb"></div>
<div class="panelButtons" style="display: none;">
<input type="button" class="cancel" value="Anuluj" name="" onclick="javascript:document.location.href='{url _value=$controller,index}'"/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" value="Zapisz" name="EditStructureForm"/>
</div>
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
</form>

View File

@@ -0,0 +1,13 @@
<div class="panelRightTop"></div>
<div class="panelRightBody">
<div class="paddedContent">
<form action="{url Structure=home}" name="form1" method="POST">
<p>Wybierz serwis:</p>
<select id="serwis" name="serwis" onchange="document.form1.submit();">
<option value="1" {if $serwis == '1'}selected{/if}>Magalie</option>
<option value="2" {if $serwis == '2'}selected{/if}>OBSŁUGA FIRM</option>
</select>
</form>
</div>
</div>
{$editStructure}

View File

@@ -0,0 +1,31 @@
<div class="panelRightTop"></div>
<div class="panelRightBody">
<div class="paddedContent">
<div class="panelContentTop"><h2><a href="#" class="long">Witamy w panelu administracyjnym</a></h2></div>
<div class="panelContentBody">
<img src="{$urlStatic}/image/Admin/AdminIntro.jpg " alt="Panel administracyjny" title="Panel administracyjny" /><br />
</div>
<div class="panelContentBottom"></div>
</div>
</div>
<div class="panelRightBottom">
<div class="panelButtons">
{*
<form method="post" action="">
<input type="submit" class="button buttonAnuluj" value="" name=""/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" class="button buttonPodglad" value="" name=""/>
<input type="submit" class="button buttonZapisz" value="" name=""/>
<input type="submit" class="button120 buttonZapiszIPublikuj" value="" name=""/>
</form>
*}
</div>
</div>

View File

@@ -0,0 +1,7 @@
<div class="panelRightBody">
<div class="paddedContent">
{if isset($editStructure)}
{$editStructure}
{/if}
</div>
</div>

View File

@@ -0,0 +1,5 @@
{if $arrayModuleCategory}
<div class="floatLeft frameLeftPopover">Wybierz kategorię: </div><select name="idCategory"><option value="0">Wybierz</option>{html_options options=$arrayModuleCategory}</select>
{/if}

View File

@@ -0,0 +1,44 @@
<h1>Dodaj element</h1>
<form action="{url Structure='Add'}" id="sendForm" method="post"
enctype="multipart/form-data">
{dropDownContainer title='Ogólne'}
<table class="commonTable" cellpadding="5" cellspacing="0" border="0"
width="100%">
<tr>
<td>Nazwa elementu:</td>
<td class="left"><input class="inputWidth141 input100percent"
type="text" name="elementName"
value="" /> {if
isset($error.elementName)}
<div style="color: red;" id="actionError" class="validate">{$error.elementName}</div>{/if}
</td>
</tr>
<tr>
<td>Wybierz rodzaj strony:</td>
<td class="left"><select name="idModule" id="idModule"
onchange="GetModuleCategory(document.getElementById('idModule').value, '{url structure='AjaxGetModuleCategory'}');">
<option value="0">Wybierz</option> {html_options
options=$arrayModuleName}
</select> <a href=""></a></td>
</tr>
<tr>
<td>Wybierz kategorię:</td>
<td class="left" id="categoryOptions"></td>
</tr>
</table>
{/dropDownContainer}
<div class="cb"></div>
<div class="panelButtons">
<input class="cancel" type="button" name="back" value="Anuluj" onclick="javascript:document.location.href='{url label=current}'" />
<input id="dalejPopover" type="submit" name="name" value="Dalej" style="display: none;" />
</div>
</form>

View File

@@ -0,0 +1 @@
{foreach from=$arrayPhoto item=file name=photo}<img src="{$urlStatic}/temp/{$file|replace:".jpg":"_th.jpg"}" alt="test" style="float:left; border:1px solid #000000; margin-right:5px; margin-bottom: 5px" /><input type="hidden" name="photo" value="{$file}" /> {/foreach}

View File

@@ -0,0 +1,49 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="{$urlStatic}/css/Admin/style.css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="pl" />
<script src="{$urlStatic}/script/prototype.js" type="text/javascript" charset="utf-8"></script>
<script src="{$urlStatic}/script/UploadFile.js" type="text/javascript" charset="utf-8"></script>
{if $ok}
<script language="javascript" type="text/javascript">
parent.document.getElementById('photoDisplay').innerHTML = '{$display}' ;
parent.document.getElementById('newPhoto').style.display = '' ;
parent.document.getElementById('bannerError').innerHTML = '' ;
</script>
{/if}
{if isset($bannerError)}
<script language="javascript" type="text/javascript">
parent.document.getElementById('bannerError').innerHTML = '{$bannerError}' ;
</script>
{/if}
</head>
<body style="background-color: #ffffff; margin-top: 0px; background-image: none;">
<div >
<form action="{url Structure=PhotoUpload}" method="post" enctype="multipart/form-data">
<div class="clearBoth"></div>
<div class="panelElement">Dodaj zdjęcie:</div>
<div class="panelEditElement">
<input class="input" type="file" name="file" id="file" onchange="CheckExt(document.getElementById('file').value, '{url Structure=AjaxCheckExt}');" />
</div>
<div class="clearBoth"></div>
<div class="panelElement"></div>
<div class="panelEditElement">
<input type="submit" class="button buttonZapisz" value="." name="savePhoto"/>
</div>
<div class="clearBoth"></div>
</form>
</div>
</body>
</html>

View File

@@ -0,0 +1,3 @@
dsdss
'{$zoneContent}'