_decodeProperties($_smarty_tpl, array (
'version' => '3.1.30',
'unifunc' => 'content_65932b5af173f5_47173057',
'has_nocache_code' => false,
'file_dependency' =>
array (
'4ae98fbacdbff93fe02a5bf88df81465d7a19b9e' =>
array (
0 => '/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/StructureModern.tpl',
1 => 1703168200,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_65932b5af173f5_47173057 (Smarty_Internal_Template $_smarty_tpl) {
if (!is_callable('smarty_function_url')) require_once '/home/14153/www/test.aem.pl/zurawik/core/plugins/Smarty/function.url.php';
?>
Menu top
smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['arrayObjStructure']->value, 'objElement', false, 'idElement');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['idElement']->value => $_smarty_tpl->tpl_vars['objElement']->value) {
?>
- tpl_vars['objElement']->value->GetElementName();?>
tpl_vars['objElement']->value->GetHaveChildren()) {?>
smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['objElement']->value->arrayChildren, 'objElementSub', false, 'idElementSub');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['idElementSub']->value => $_smarty_tpl->tpl_vars['objElementSub']->value) {
?>
_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
?>
- tpl_vars['objElementSub']->value->GetElementName();?>
tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['objElementSub']->value->arrayChildren, 'objElementSubSub', false, 'idElementSubSub');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['idElementSubSub']->value => $_smarty_tpl->tpl_vars['objElementSubSub']->value) {
?>
- tpl_vars['objElementSubSub']->value->GetElementName();?>
tpl_vars['objElementSubSub']->value->GetHaveChildren()) {?>
_assignInScope('arraySubSubSub', $_smarty_tpl->tpl_vars['objElementSubSub']->value->arrayChildren);
?>
smarty->ext->_foreach->restore($_smarty_tpl);
?>
smarty->ext->_foreach->restore($_smarty_tpl);
?>
smarty->ext->_foreach->restore($_smarty_tpl);
?>
Pozostałe
smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['arrayObjStructureBottom']->value, 'objElement', false, 'idElement');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['idElement']->value => $_smarty_tpl->tpl_vars['objElement']->value) {
?>
- tpl_vars['objElement']->value->GetElementName();?>
tpl_vars['objElement']->value->GetHaveChildren()) {?>
smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['objElement']->value->arrayChildren, 'objElementSub', false, 'idElementSub');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['idElementSub']->value => $_smarty_tpl->tpl_vars['objElementSub']->value) {
?>
_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
?>
- tpl_vars['objElementSub']->value->GetElementName();?>
tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['objElementSub']->value->arrayChildren, 'objElementSubSub', false, 'idElementSubSub');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['idElementSubSub']->value => $_smarty_tpl->tpl_vars['objElementSubSub']->value) {
?>
- tpl_vars['objElementSubSub']->value->GetElementName();?>
smarty->ext->_foreach->restore($_smarty_tpl);
?>
smarty->ext->_foreach->restore($_smarty_tpl);
?>
smarty->ext->_foreach->restore($_smarty_tpl);
?>
type="text/javascript">
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();
treeObj.imageFolder = 'tpl_vars['urlStatic']->value;?>
/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();
}
window.onload = initTree;
var updateTreeUrl = ''UpdateTree'),$_smarty_tpl);?>
';
>