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

View File

@@ -0,0 +1,12 @@
<div>
<div class="arrowRight">&nbsp;</div><div style="margin-left: 40px; "><a class="panelEdit" href="{url _value=setup}">Setup - zmienne serwisu</a></div>
<div class="clearBoth"></div>
<div class="arrowRight">&nbsp;</div><div style="margin-left: 40px; "><a class="panelEdit" href="{url _value=user}">Zarządzanie użytownikami</a></div>
<div class="clearBoth"></div>
<div class="arrowRight">&nbsp;</div><div style="margin-left: 40px; "><a class="panelEdit" href="{url _value=user,add}">Dodaj Użytkownika</a></div>
<div class="clearBoth"></div>
</div>

View File

View File

@@ -0,0 +1,3 @@
{dropDownContainer title="Klienci"}
{html_checkboxes name='idCustomer' options=$arrayCustomer selected=$arrayCustomerLink separator='<br />'}
{/dropDownContainer}

View File

@@ -0,0 +1,5 @@
<div>
&nbsp;
</div>

View File

@@ -0,0 +1,8 @@
<div>
<div class="arrowRight">&nbsp;</div><div style="margin-left: 40px; "><a class="panelEdit" href="{url _value=login,logout}">wyloguj</a></div>
<div class="clearBoth"></div>
{*
<div style="margin-left: 40px; "><a class="panelEdit" href="{url _value=user,changePassword}">zmiana hasła</a>
*}
</div>

View File

@@ -0,0 +1,6 @@
<div>
<div class="arrowRight">&nbsp;</div><div style="margin-left: 40px; "><a class="panelEdit" href="{url _value=mailing}">Zarządzanie</a></div>
<div class="clearBoth"></div>
{*<div style="margin-left: 40px; "><a class="panelEdit" href="{url _value=page,edit}">nowy </a></div>*}
</div>

View File

@@ -0,0 +1,6 @@
<div>
<div class="arrowRight">&nbsp;</div><div style="margin-left: 40px; "><a class="panelEdit" href="{url _value=news}">Zarządzanie</a></div>
<div class="clearBoth"></div>
<div style="margin-left: 40px; "><a class="panelEdit" href="{url _value=news,edit}">Dodaj </a></div>
</div>

View File

@@ -0,0 +1,6 @@
<div>
<div class="arrowRight">&nbsp;</div><div style="margin-left: 40px; "><a class="panelEdit" href="{url _value=page}">Zarządzanie</a></div>
<div class="clearBoth"></div>
{*<div style="margin-left: 40px; "><a class="panelEdit" href="{url _value=page,edit}">Dodaj </a></div>*}
</div>

View File

@@ -0,0 +1,21 @@
<div style="width:100%;text-align:center;">
{if $PageCount < 2 }
&nbsp;
{else}
{if $CurrentPage > 1}
<a href="{$URLParam.0},{$CurrentPage-1},{$URLParam.1}.frmx">Poprzednia Strona</a>
{/if}
{section name=page loop=$PageCount}
{if ($CurrentPage == $smarty.section.page.rownum)}
<b>{$smarty.section.page.rownum}</b>
{else}
<a href="{$URLParam.0},{$smarty.section.page.rownum},{$URLParam.1}.frmx">{$smarty.section.page.rownum}</a>
{/if}
{/section}
{if $CurrentPage < $PageCount}
<a href="{$URLParam.0},{$CurrentPage+1},{$URLParam.1}.frmx">Nastêpna Strona</a>
{/if}
{/if}
</div>

View File

@@ -0,0 +1,269 @@
<div class="floatLeft mainFrameTree structureTree">
<ul id="dhtmlgoodies_tree2" class="dhtmlgoodies_tree">
{*<li id="node0" >
<a href="{url _value=home}" >Strona Główna</a>
<div class="floatRight iconNavigation">
<a class="_loadInMainFrame" href="#"><img src="{$urlStatic}/image/Admin/iconType03.gif" alt="" title="" /></a>
<a href="#"><img src="{$urlStatic}/image/Admin/iconType.gif" alt="" title="" /></a>
</div>
</li>*}
<div class="sideTitleGroup">Menu top</div>
{foreach from=$arrayObjStructure item=objElement key=idElement}
<li id="node{$objElement->GetId()}" ><a href="{url label=editStructure id=$objElement->GetId()}" class="{if !$objElement->GetPublication()}nonactive {/if}{if $idStucture == $objElement->GetId()}active{/if}" title="Edytuj" >{$objElement->GetElementName()}</a>
{if $objElement->GetHaveChildren()}
<ul>
{foreach from=$objElement->arrayChildren item=objElementSub key=idElementSub}
{assign var=idParentSub value=$objElementSub->GetId()}
<li id="node{$objElementSub->GetId()}" ><a href="{url label=editStructure id=$objElementSub->GetId()}" class="{if !$objElementSub->GetPublication()}nonactive {/if}{if $idStucture == $objElementSub->GetId()}active{/if}" title="Edytuj">{$objElementSub->GetElementName()}</a>
{if $objElementSub->GetHaveChildren()}
<ul>
{foreach from=$objElementSub->arrayChildren item=objElementSubSub key=idElementSubSub}
<li id="node{$objElementSubSub->GetId()}" ><a href="{url label=editStructure id=$objElementSubSub->GetId()}" class="{if !$objElementSubSub->GetPublication()}nonactive {/if}{if $idStucture == $objElementSubSub->GetId()}active{/if}" title="Edytuj">{$objElementSubSub->GetElementName()}</a>
{if $objElementSubSub->GetHaveChildren()}
{assign var=arraySubSubSub value=$objElementSubSub->arrayChildren}
<ul>
{section customer $arraySubSubSub}
<li id="node{$arraySubSubSub[customer]->GetId()}" ><a href="{url label=editStructure id=$arraySubSubSub[customer]->GetId()}" class="{if !$arraySubSubSub[customer]->GetPublication()}nonactive {/if}{if $idStucture == $arraySubSubSub[customer]->GetId()}active{/if}" title="Edytuj">{$arraySubSubSub[customer]->GetElementName()}</a>
</li>
{/section}
</ul>
{/if}
</li>
{/foreach}
</ul>
{/if}
</li>
{/foreach}
</ul>
{/if}
</li>
{/foreach}
<div class="sideTitleGroup">Pozostałe</div>
{foreach from=$arrayObjStructureBottom item=objElement key=idElement}
<li id="node{$objElement->GetId()}" ><a href="{url label=editStructure id=$objElement->GetId()}" class="{if !$objElement->GetPublication()}nonactive {/if}{if $idStucture == $objElement->GetId()}active{/if}">{$objElement->GetElementName()}</a>
{if $objElement->GetHaveChildren()}
<ul>
{foreach from=$objElement->arrayChildren item=objElementSub key=idElementSub}
{assign var=idParentSub value=$objElementSub->GetId()}
<li id="node{$objElementSub->GetId()}" ><a href="{url label=editStructure id=$objElementSub->GetId()}" class="{if !$objElementSub->GetPublication()}nonactive {/if}{if $idStucture == $objElementSub->GetId()}active{/if}">{$objElementSub->GetElementName()}</a>
{if $objElementSub->GetHaveChildren()}
<ul>
{foreach from=$objElementSub->arrayChildren item=objElementSubSub key=idElementSubSub}
<li id="node{$objElementSubSub->GetId()}" ><a href="{url label=editStructure id=$objElementSubSub->GetId()}" class="{if !$objElementSubSub->GetPublication()}nonactive {/if}{if $idStucture == $objElementSubSub->GetId()}active{/if}">{$objElementSubSub->GetElementName()}</a>
</li>
{/foreach}
</ul>
{/if}
</li>
{/foreach}
</ul>
{/if}
</li>
{/foreach}
{*
<hr style="border-top:1px dashed red;">
<div style="border: 1px">Pozostałe</div>
<hr style="border-top:1px dashed red;">
{foreach from=$arrayObjStructureOther item=objElement key=idElement}
<li id="node{$objElement->GetId()}" ><a href="{url label=editStructure id=$objElement->GetId()}" {if $idStucture == $objElement->GetId()}style="font-weight: bold; background-color: #333c8e; color: #ffffff;"{/if}>{$objElement->GetElementName()}</a>
{if $objElement->GetHaveChildren()}
<ul>
{foreach from=$objElement->arrayChildren item=objElementSub key=idElementSub}
{assign var=idParentSub value=$objElementSub->GetId()}
<li id="node{$objElementSub->GetId()}" ><a href="{url label=editStructure id=$objElementSub->GetId()}" {if $idStucture == $objElementSub->GetId()}style="font-weight: bold; background-color: #333c8e; color: #ffffff;"{/if}>{$objElementSub->GetElementName()}</a>
{if $objElementSub->GetHaveChildren()}
<ul>
{foreach from=$objElementSub->arrayChildren item=objElementSubSub key=idElementSubSub}
<li id="node{$objElementSubSub->GetId()}" ><a href="{url label=editStructure id=$objElementSubSub->GetId()}" {if $idStucture == $objElementSubSub->GetId()}style="font-weight: bold; background-color: #333c8e; color: #ffffff;"{/if}>{$objElementSubSub->GetElementName()}</a>
</li>
{/foreach}
</ul>
{/if}
</li>
{/foreach}
</ul>
{/if}
</li>
{/foreach}
*}
</ul>
{*
<div class="treeHeader">
<a class="longTree floatLeft _loadInMainFrame" onclick="return load(this);" href="{url SimpleArticle_Index='index'}">Strona główna </a>
<div class="floatRight iconNavigation">
<a class="_loadInMainFrame" onclick="return load(this);" href="{url SimpleArticle_Index='add'}"><img src="{$urlStatic}/image/Admin/iconType03.gif" alt="" title="" /></a>
<a href="#"><img src="{$urlStatic}/image/Admin/iconType.gif" alt="" title="" /></a>
</div>
</div>
<div class="treeHeader">
<a class="longTree floatLeft loadInMainFrame" onclick="return load(this);" href="{url Person_Index='index'}">Osoby </a>
<div class="floatRight iconNavigation">
<a href="#"><img src="{$urlStatic}/image/Admin/iconType03.gif" alt="" title="" /></a>
<a href="#"><img src="{$urlStatic}/image/Admin/iconType.gif" alt="" title="" /></a>
</div>
</div>
<div class="treeHeader">
<a class="longTree floatLeft loadInMainFrame" onclick="return load(this);" href="{url Spectacle_Index='index'}">Spektakle </a>
<div class="floatRight iconNavigation">
<a href="#"><img src="{$urlStatic}/image/Admin/iconType03.gif" alt="" title="" /></a>
<a href="#"><img src="{$urlStatic}/image/Admin/iconType.gif" alt="" title="" /></a>
</div>
</div>
<div class="treeHeader">
<a class="longTree floatLeft loadInMainFrame" onclick="return load(this);" href="{url Test_Index='index'}">Test </a>
<div class="floatRight iconNavigation">
<a href="#"><img src="{$urlStatic}/image/Admin/iconType03.gif" alt="" title="" /></a>
<a href="#"><img src="{$urlStatic}/image/Admin/iconType.gif" alt="" title="" /></a>
</div>
</div>
<div class="treeHeader">
<a class="longTree floatLeft loadInMainFrame" href="#">Struktura z bazy ponizej </a>
<div class="floatRight iconNavigation">
<a href="#"><img src="{$urlStatic}/image/Admin/iconType03.gif" alt="" title="" /></a>
<a href="#"><img src="{$urlStatic}/image/Admin/iconType.gif" alt="" title="" /></a>
</div>
</div>
<div class="treeContent">
{foreach from=$arrayObjStructure item=objElement key=idElement}
<div class="treeHeader">
<a class="iconCategoryUnder floatLeft loadInMainFrame" onclick="return load(this);" href="{url structure='edit' id=$objElement->GetId()}">{$objElement->GetName()}</a>
<div class="floatRight iconNavigation">
<a href="#"><img src="{$urlStatic}/image/Admin/iconType03.gif" alt="" title="" /></a>
<a href="#"><img src="{$urlStatic}/image/Admin/iconType.gif" alt="" title="" /></a>
</div>
</div>
<div class="treeContent">
{if $objElement->GetHaveChildren()}
<div class="treeHeader">
<a class="longTree floatLeft" href="#">Elementy - {$objElement->GetName()}</a>
<div class="floatRight iconNavigation">
<a href="#"><img src="{$urlStatic}/image/Admin/iconType03.gif" alt="" title="" /></a>
<a href="#"><img src="{$urlStatic}/image/Admin/iconType.gif" alt="" title="" /></a>
</div>
</div>
{/if}
{foreach from=$objElement->arrayChildren item=objElementSub key=idElementSub}
{assign var=idParentSub value=$objElementSub->GetId()}
<div class="treeHeader">
<a class="iconCategoryUnder floatLeft" onclick="return load(this);" href="{url structure='edit' id=$objElementSub->GetId()}">{$objElementSub->GetName()}</a>
<div class="floatRight iconNavigation">
<a href="#"><img src="{$urlStatic}/image/Admin/iconType03.gif" alt="" title="" /></a>
<a href="#"><img src="{$urlStatic}/image/Admin/iconType.gif" alt="" title="" /></a>
</div>
</div>
<div class="treeContent">
{if $objElementSub->GetHaveChildren()}
<div class="treeHeader">
<a class="longTree floatLeft" href="#">Elementy - {$objElementSub->GetName()}</a>
<div class="floatRight iconNavigation">
<a href="#"><img src="{$urlStatic}/image/Admin/iconType03.gif" alt="" title="" /></a>
<a href="#"><img src="{$urlStatic}/image/Admin/iconType.gif" alt="" title="" /></a>
</div>
</div>
{/if}
{foreach from=$objElementSub->arrayChildren item=objElementSubSub key=idElementSubSub}
<div class="treeHeader">
<a class="iconCategoryUnder floatLeft" onclick="return load(this);" href="{url structure='edit' id=$objElementSubSub->GetId()}">{$objElementSubSub->GetName()}</a>
<div class="floatRight iconNavigation">
<a href="#"><img src="{$urlStatic}/image/Admin/iconType03.gif" alt="" title="" /></a>
<a href="#"><img src="{$urlStatic}/image/Admin/iconType.gif" alt="" title="" /></a>
</div>
</div>
{/foreach}
</div>
{/foreach}
</div>
{/foreach}
</div>
*}
</div>
<div class="clearBoth"></div>
<script type="text/javascript">
{literal}
var ajaxObjects = new Array();
// Use something like this if you want to save data by Ajax.
function saveMyTree()
{
saveString = treeObj.getNodeOrders();
var ajaxIndex = ajaxObjects.length;
ajaxObjects[ajaxIndex] = new sack();
var url = 'saveNodes.php?saveString=' + saveString;
ajaxObjects[ajaxIndex].requestFile = url; // Specifying which file to get
ajaxObjects[ajaxIndex].onCompletion = function() { saveComplete(ajaxIndex); } ; // Specify function that will be executed after file has been found
ajaxObjects[ajaxIndex].runAJAX(); // Execute AJAX function
}
function saveComplete(index)
{
alert(ajaxObjects[index].response);
}
function initTree() {
treeObj = new JSDragDropTree();
{/literal}
treeObj.imageFolder = '{$urlStatic}/images/';
treeObj.setTreeId('dhtmlgoodies_tree2');
treeObj.setMaximumDepth(3);
treeObj.setMessageMaximumDepthReached('Próbujesz utowrzyc pozmiom menu poza zakresem'); // If you want to show a message when maximum depth is reached, i.e. on drop.
treeObj.initTree();
treeObj.expandAll();
{literal}
}
window.onload = initTree;
{/literal}
var updateTreeUrl = '{url Structure='UpdateTree'}';
</script>

View File

@@ -0,0 +1,266 @@
<div class="floatLeft mainFrameTree structureTree">
<ul id="dhtmlgoodies_tree2" class="dhtmlgoodies_tree">
{*<li id="node0" >
<a href="{url _value=home}" >Strona Główna</a>
<div class="floatRight iconNavigation">
<a class="_loadInMainFrame" href="#"><img src="{$urlStatic}/image/Admin/iconType03.gif" alt="" title="" /></a>
<a href="#"><img src="{$urlStatic}/image/Admin/iconType.gif" alt="" title="" /></a>
</div>
</li>*}
<div class="sideTitleGroup">Menu top</div>
{foreach from=$arrayObjStructure item=objElement key=idElement}
<li id="node{$objElement->GetId()}" ><a href="{url label=editStructure id=$objElement->GetId()}" class="{if !$objElement->GetPublication()}nonactive {/if}{if $idStucture == $objElement->GetId()}active{/if}" title="Edytuj" >{$objElement->GetElementName()}</a>
{if $objElement->GetHaveChildren()}
<ul>
{foreach from=$objElement->arrayChildren item=objElementSub key=idElementSub}
{assign var=idParentSub value=$objElementSub->GetId()}
<li id="node{$objElementSub->GetId()}" ><a href="{url label=editStructure id=$objElementSub->GetId()}" class="{if !$objElementSub->GetPublication()}nonactive {/if}{if $idStucture == $objElementSub->GetId()}active{/if}" title="Edytuj">{$objElementSub->GetElementName()}</a>
{if $objElementSub->GetHaveChildren()}
<ul>
{foreach from=$objElementSub->arrayChildren item=objElementSubSub key=idElementSubSub}
<li id="node{$objElementSubSub->GetId()}" ><a href="{url label=editStructure id=$objElementSubSub->GetId()}" class="{if !$objElementSubSub->GetPublication()}nonactive {/if}{if $idStucture == $objElementSubSub->GetId()}active{/if}" title="Edytuj">{$objElementSubSub->GetElementName()}</a>
{if $objElementSubSub->GetHaveChildren()}
{assign var=arraySubSubSub value=$objElementSubSub->arrayChildren}
<ul>
{section customer $arraySubSubSub}
<li id="node{$arraySubSubSub[customer]->GetId()}" ><a href="{url label=editStructure id=$arraySubSubSub[customer]->GetId()}" class="{if !$arraySubSubSub[customer]->GetPublication()}nonactive {/if}{if $idStucture == $arraySubSubSub[customer]->GetId()}active{/if}" title="Edytuj">{$arraySubSubSub[customer]->GetElementName()}</a>
</li>
{/section}
</ul>
{/if}
</li>
{/foreach}
</ul>
{/if}
</li>
{/foreach}
</ul>
{/if}
</li>
{/foreach}
<div class="sideTitleGroup">Pozostałe</div>
{foreach from=$arrayObjStructureBottom item=objElement key=idElement}
<li id="node{$objElement->GetId()}" ><a href="{url label=editStructure id=$objElement->GetId()}" class="{if !$objElement->GetPublication()}nonactive {/if}{if $idStucture == $objElement->GetId()}active{/if}">{$objElement->GetElementName()}</a>
{if $objElement->GetHaveChildren()}
<ul>
{foreach from=$objElement->arrayChildren item=objElementSub key=idElementSub}
{assign var=idParentSub value=$objElementSub->GetId()}
<li id="node{$objElementSub->GetId()}" ><a href="{url label=editStructure id=$objElementSub->GetId()}" class="{if !$objElementSub->GetPublication()}nonactive {/if}{if $idStucture == $objElementSub->GetId()}active{/if}">{$objElementSub->GetElementName()}</a>
{if $objElementSub->GetHaveChildren()}
<ul>
{foreach from=$objElementSub->arrayChildren item=objElementSubSub key=idElementSubSub}
<li id="node{$objElementSubSub->GetId()}" ><a href="{url label=editStructure id=$objElementSubSub->GetId()}" class="{if !$objElementSubSub->GetPublication()}nonactive {/if}{if $idStucture == $objElementSubSub->GetId()}active{/if}">{$objElementSubSub->GetElementName()}</a>
</li>
{/foreach}
</ul>
{/if}
</li>
{/foreach}
</ul>
{/if}
</li>
{/foreach}
{*
<hr style="border-top:1px dashed red;">
<div style="border: 1px">Pozostałe</div>
<hr style="border-top:1px dashed red;">
{foreach from=$arrayObjStructureOther item=objElement key=idElement}
<li id="node{$objElement->GetId()}" ><a href="{url label=editStructure id=$objElement->GetId()}" {if $idStucture == $objElement->GetId()}style="font-weight: bold; background-color: #333c8e; color: #ffffff;"{/if}>{$objElement->GetElementName()}</a>
{if $objElement->GetHaveChildren()}
<ul>
{foreach from=$objElement->arrayChildren item=objElementSub key=idElementSub}
{assign var=idParentSub value=$objElementSub->GetId()}
<li id="node{$objElementSub->GetId()}" ><a href="{url label=editStructure id=$objElementSub->GetId()}" {if $idStucture == $objElementSub->GetId()}style="font-weight: bold; background-color: #333c8e; color: #ffffff;"{/if}>{$objElementSub->GetElementName()}</a>
{if $objElementSub->GetHaveChildren()}
<ul>
{foreach from=$objElementSub->arrayChildren item=objElementSubSub key=idElementSubSub}
<li id="node{$objElementSubSub->GetId()}" ><a href="{url label=editStructure id=$objElementSubSub->GetId()}" {if $idStucture == $objElementSubSub->GetId()}style="font-weight: bold; background-color: #333c8e; color: #ffffff;"{/if}>{$objElementSubSub->GetElementName()}</a>
</li>
{/foreach}
</ul>
{/if}
</li>
{/foreach}
</ul>
{/if}
</li>
{/foreach}
*}
</ul>
{*
<div class="treeHeader">
<a class="longTree floatLeft _loadInMainFrame" onclick="return load(this);" href="{url SimpleArticle_Index='index'}">Strona główna </a>
<div class="floatRight iconNavigation">
<a class="_loadInMainFrame" onclick="return load(this);" href="{url SimpleArticle_Index='add'}"><img src="{$urlStatic}/image/Admin/iconType03.gif" alt="" title="" /></a>
<a href="#"><img src="{$urlStatic}/image/Admin/iconType.gif" alt="" title="" /></a>
</div>
</div>
<div class="treeHeader">
<a class="longTree floatLeft loadInMainFrame" onclick="return load(this);" href="{url Person_Index='index'}">Osoby </a>
<div class="floatRight iconNavigation">
<a href="#"><img src="{$urlStatic}/image/Admin/iconType03.gif" alt="" title="" /></a>
<a href="#"><img src="{$urlStatic}/image/Admin/iconType.gif" alt="" title="" /></a>
</div>
</div>
<div class="treeHeader">
<a class="longTree floatLeft loadInMainFrame" onclick="return load(this);" href="{url Spectacle_Index='index'}">Spektakle </a>
<div class="floatRight iconNavigation">
<a href="#"><img src="{$urlStatic}/image/Admin/iconType03.gif" alt="" title="" /></a>
<a href="#"><img src="{$urlStatic}/image/Admin/iconType.gif" alt="" title="" /></a>
</div>
</div>
<div class="treeHeader">
<a class="longTree floatLeft loadInMainFrame" onclick="return load(this);" href="{url Test_Index='index'}">Test </a>
<div class="floatRight iconNavigation">
<a href="#"><img src="{$urlStatic}/image/Admin/iconType03.gif" alt="" title="" /></a>
<a href="#"><img src="{$urlStatic}/image/Admin/iconType.gif" alt="" title="" /></a>
</div>
</div>
<div class="treeHeader">
<a class="longTree floatLeft loadInMainFrame" href="#">Struktura z bazy ponizej </a>
<div class="floatRight iconNavigation">
<a href="#"><img src="{$urlStatic}/image/Admin/iconType03.gif" alt="" title="" /></a>
<a href="#"><img src="{$urlStatic}/image/Admin/iconType.gif" alt="" title="" /></a>
</div>
</div>
<div class="treeContent">
{foreach from=$arrayObjStructure item=objElement key=idElement}
<div class="treeHeader">
<a class="iconCategoryUnder floatLeft loadInMainFrame" onclick="return load(this);" href="{url structure='edit' id=$objElement->GetId()}">{$objElement->GetName()}</a>
<div class="floatRight iconNavigation">
<a href="#"><img src="{$urlStatic}/image/Admin/iconType03.gif" alt="" title="" /></a>
<a href="#"><img src="{$urlStatic}/image/Admin/iconType.gif" alt="" title="" /></a>
</div>
</div>
<div class="treeContent">
{if $objElement->GetHaveChildren()}
<div class="treeHeader">
<a class="longTree floatLeft" href="#">Elementy - {$objElement->GetName()}</a>
<div class="floatRight iconNavigation">
<a href="#"><img src="{$urlStatic}/image/Admin/iconType03.gif" alt="" title="" /></a>
<a href="#"><img src="{$urlStatic}/image/Admin/iconType.gif" alt="" title="" /></a>
</div>
</div>
{/if}
{foreach from=$objElement->arrayChildren item=objElementSub key=idElementSub}
{assign var=idParentSub value=$objElementSub->GetId()}
<div class="treeHeader">
<a class="iconCategoryUnder floatLeft" onclick="return load(this);" href="{url structure='edit' id=$objElementSub->GetId()}">{$objElementSub->GetName()}</a>
<div class="floatRight iconNavigation">
<a href="#"><img src="{$urlStatic}/image/Admin/iconType03.gif" alt="" title="" /></a>
<a href="#"><img src="{$urlStatic}/image/Admin/iconType.gif" alt="" title="" /></a>
</div>
</div>
<div class="treeContent">
{if $objElementSub->GetHaveChildren()}
<div class="treeHeader">
<a class="longTree floatLeft" href="#">Elementy - {$objElementSub->GetName()}</a>
<div class="floatRight iconNavigation">
<a href="#"><img src="{$urlStatic}/image/Admin/iconType03.gif" alt="" title="" /></a>
<a href="#"><img src="{$urlStatic}/image/Admin/iconType.gif" alt="" title="" /></a>
</div>
</div>
{/if}
{foreach from=$objElementSub->arrayChildren item=objElementSubSub key=idElementSubSub}
<div class="treeHeader">
<a class="iconCategoryUnder floatLeft" onclick="return load(this);" href="{url structure='edit' id=$objElementSubSub->GetId()}">{$objElementSubSub->GetName()}</a>
<div class="floatRight iconNavigation">
<a href="#"><img src="{$urlStatic}/image/Admin/iconType03.gif" alt="" title="" /></a>
<a href="#"><img src="{$urlStatic}/image/Admin/iconType.gif" alt="" title="" /></a>
</div>
</div>
{/foreach}
</div>
{/foreach}
</div>
{/foreach}
</div>
*}
</div>
<div class="clearBoth"></div>
<script type="text/javascript">
{literal}
var ajaxObjects = new Array();
// Use something like this if you want to save data by Ajax.
function saveMyTree()
{
saveString = treeObj.getNodeOrders();
var ajaxIndex = ajaxObjects.length;
ajaxObjects[ajaxIndex] = new sack();
var url = 'saveNodes.php?saveString=' + saveString;
ajaxObjects[ajaxIndex].requestFile = url; // Specifying which file to get
ajaxObjects[ajaxIndex].onCompletion = function() { saveComplete(ajaxIndex); } ; // Specify function that will be executed after file has been found
ajaxObjects[ajaxIndex].runAJAX(); // Execute AJAX function
}
function saveComplete(index)
{
alert(ajaxObjects[index].response);
}
function initTree() {
treeObj = new JSDragDropTree();
{/literal}
treeObj.imageFolder = '{$urlStatic}/images/';
treeObj.setTreeId('dhtmlgoodies_tree2');
treeObj.setMaximumDepth(3);
treeObj.setMessageMaximumDepthReached('Próbujesz utowrzyc pozmiom menu poza zakresem'); // If you want to show a message when maximum depth is reached, i.e. on drop.
treeObj.initTree();
treeObj.expandAll();
{literal}
}
window.onload = initTree;
{/literal}
var updateTreeUrl = '{url Structure='UpdateTree'}';
</script>

View File

@@ -0,0 +1,2 @@
<span style="color: red; text-align: center;">{$info}</span>
<div style="clear: both;"></div>