_decodeProperties($_smarty_tpl, array ( 'version' => '3.1.30', 'unifunc' => 'content_65932b7ea1cc76_48064812', '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_65932b7ea1cc76_48064812 (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'; ?>
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);?> '; >