update
This commit is contained in:
@@ -0,0 +1,103 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 22:36:24
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/SimpleArticle/Index/EditStructure.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65bebfe8291d18_21544061',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'd394b663fe74de44e47a79f99b701e84b6c24877' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/SimpleArticle/Index/EditStructure.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65bebfe8291d18_21544061 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_block_dropDownContainer')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/block.dropDownContainer.php';
|
||||
if (!is_callable('smarty_function_insertCkEditor')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.insertCkEditor.php';
|
||||
echo '<script'; ?>
|
||||
language="javascript" type="text/javascript">urlStatic='<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
';<?php echo '</script'; ?>
|
||||
>
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['obj']->value)) {?>
|
||||
|
||||
<input type="hidden" name="lang" value="<?php echo $_smarty_tpl->tpl_vars['lang']->value;?>
|
||||
" />
|
||||
<?php }?>
|
||||
<input type="hidden" name="SaveArt" value="true" />
|
||||
|
||||
|
||||
|
||||
<?php $_smarty_tpl->_assignInScope('additionalTitle', '');
|
||||
?>
|
||||
|
||||
<div <?php if ($_smarty_tpl->tpl_vars['objModule']->value->Getid() != 3) {?>style="display: none;"<?php }?>>
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>"Zajawka"));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Zajawka"), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
|
||||
<div class="articlePreviewRight">
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['obj']->value)) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('shortnote', $_smarty_tpl->tpl_vars['obj']->value->GetShortnote());
|
||||
?>
|
||||
<?php } else { ?>
|
||||
<?php $_smarty_tpl->_assignInScope('shortnote', '');
|
||||
?>
|
||||
<?php }?>
|
||||
<?php echo smarty_function_insertCkEditor(array('width'=>'399','height'=>'159','name'=>'shortnote','toolbar'=>'Basic','value'=>$_smarty_tpl->tpl_vars['shortnote']->value),$_smarty_tpl);?>
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['shortnote'])) {?><div style="color: red;" id="actionError"><?php echo $_smarty_tpl->tpl_vars['error']->value['shortnote'];?>
|
||||
</div><?php }?>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Zajawka"), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
</div>
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>"Treść"));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Treść"), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<div class="center">
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['obj']->value)) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('description', $_smarty_tpl->tpl_vars['obj']->value->GetDescription());
|
||||
?>
|
||||
<?php } else { ?>
|
||||
<?php $_smarty_tpl->_assignInScope('description', '');
|
||||
?>
|
||||
<?php }?>
|
||||
<?php echo smarty_function_insertCkEditor(array('width'=>'620','height'=>'380','name'=>'description','toolbar'=>'Formix','value'=>$_smarty_tpl->tpl_vars['description']->value),$_smarty_tpl);?>
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['description'])) {?><div style="color: red;" id="actionError"><?php echo $_smarty_tpl->tpl_vars['error']->value['description'];?>
|
||||
</div><?php }?>
|
||||
</div>
|
||||
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Treść"), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 22:36:15
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/StructureModern.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65bebfdfa7a9e9_49227186',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'90fa227e4e3779401bb59ecdd0a39738a69a500f' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/StructureModern.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65bebfdfa7a9e9_49227186 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.url.php';
|
||||
?>
|
||||
|
||||
|
||||
<div class="floatLeft mainFrameTree structureTree">
|
||||
|
||||
|
||||
<ul id="dhtmlgoodies_tree2" class="dhtmlgoodies_tree">
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Menu top</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>" title="Edytuj" ><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSubSub']->value->GetHaveChildren()) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('arraySubSubSub', $_smarty_tpl->tpl_vars['objElementSubSub']->value->arrayChildren);
|
||||
?>
|
||||
<ul>
|
||||
<?php
|
||||
$__section_customer_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_customer']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer'] : false;
|
||||
$__section_customer_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['arraySubSubSub']->value) ? count($_loop) : max(0, (int) $_loop));
|
||||
$__section_customer_0_total = $__section_customer_0_loop;
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = new Smarty_Variable(array());
|
||||
if ($__section_customer_0_total != 0) {
|
||||
for ($__section_customer_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] = 0; $__section_customer_0_iteration <= $__section_customer_0_total; $__section_customer_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']++){
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
if ($__section_customer_0_saved) {
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = $__section_customer_0_saved;
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Pozostałe</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
|
||||
<?php echo '<script'; ?>
|
||||
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 = '<?php echo $_smarty_tpl->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 = '<?php echo smarty_function_url(array('Structure'=>'UpdateTree'),$_smarty_tpl);?>
|
||||
';
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-01-02 10:33:00
|
||||
from "/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/StructureModern.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_6593d84c6fff68_95700883',
|
||||
'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_6593d84c6fff68_95700883 (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';
|
||||
?>
|
||||
|
||||
|
||||
<div class="floatLeft mainFrameTree structureTree">
|
||||
|
||||
|
||||
<ul id="dhtmlgoodies_tree2" class="dhtmlgoodies_tree">
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Menu top</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>" title="Edytuj" ><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSubSub']->value->GetHaveChildren()) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('arraySubSubSub', $_smarty_tpl->tpl_vars['objElementSubSub']->value->arrayChildren);
|
||||
?>
|
||||
<ul>
|
||||
<?php
|
||||
$__section_customer_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_customer']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer'] : false;
|
||||
$__section_customer_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['arraySubSubSub']->value) ? count($_loop) : max(0, (int) $_loop));
|
||||
$__section_customer_0_total = $__section_customer_0_loop;
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = new Smarty_Variable(array());
|
||||
if ($__section_customer_0_total != 0) {
|
||||
for ($__section_customer_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] = 0; $__section_customer_0_iteration <= $__section_customer_0_total; $__section_customer_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']++){
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
if ($__section_customer_0_saved) {
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = $__section_customer_0_saved;
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Pozostałe</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
|
||||
<?php echo '<script'; ?>
|
||||
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 = '<?php echo $_smarty_tpl->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 = '<?php echo smarty_function_url(array('Structure'=>'UpdateTree'),$_smarty_tpl);?>
|
||||
';
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 22:35:40
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/StructureModern.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65bebfbc1aeb49_29086193',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'90fa227e4e3779401bb59ecdd0a39738a69a500f' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/StructureModern.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65bebfbc1aeb49_29086193 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.url.php';
|
||||
?>
|
||||
|
||||
|
||||
<div class="floatLeft mainFrameTree structureTree">
|
||||
|
||||
|
||||
<ul id="dhtmlgoodies_tree2" class="dhtmlgoodies_tree">
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Menu top</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>" title="Edytuj" ><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSubSub']->value->GetHaveChildren()) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('arraySubSubSub', $_smarty_tpl->tpl_vars['objElementSubSub']->value->arrayChildren);
|
||||
?>
|
||||
<ul>
|
||||
<?php
|
||||
$__section_customer_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_customer']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer'] : false;
|
||||
$__section_customer_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['arraySubSubSub']->value) ? count($_loop) : max(0, (int) $_loop));
|
||||
$__section_customer_0_total = $__section_customer_0_loop;
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = new Smarty_Variable(array());
|
||||
if ($__section_customer_0_total != 0) {
|
||||
for ($__section_customer_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] = 0; $__section_customer_0_iteration <= $__section_customer_0_total; $__section_customer_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']++){
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
if ($__section_customer_0_saved) {
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = $__section_customer_0_saved;
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Pozostałe</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
|
||||
<?php echo '<script'; ?>
|
||||
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 = '<?php echo $_smarty_tpl->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 = '<?php echo smarty_function_url(array('Structure'=>'UpdateTree'),$_smarty_tpl);?>
|
||||
';
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-05 10:59:24
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/Auth.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65c0bf8c2557a8_22946223',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'242a2219ac616a3e6844e81b4d39c64bf145f0e6' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/Auth.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65c0bf8c2557a8_22946223 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-05 15:07:11
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/StructureModern.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65c0f99fdca877_07569352',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'90fa227e4e3779401bb59ecdd0a39738a69a500f' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/StructureModern.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65c0f99fdca877_07569352 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.url.php';
|
||||
?>
|
||||
|
||||
|
||||
<div class="floatLeft mainFrameTree structureTree">
|
||||
|
||||
|
||||
<ul id="dhtmlgoodies_tree2" class="dhtmlgoodies_tree">
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Menu top</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>" title="Edytuj" ><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSubSub']->value->GetHaveChildren()) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('arraySubSubSub', $_smarty_tpl->tpl_vars['objElementSubSub']->value->arrayChildren);
|
||||
?>
|
||||
<ul>
|
||||
<?php
|
||||
$__section_customer_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_customer']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer'] : false;
|
||||
$__section_customer_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['arraySubSubSub']->value) ? count($_loop) : max(0, (int) $_loop));
|
||||
$__section_customer_0_total = $__section_customer_0_loop;
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = new Smarty_Variable(array());
|
||||
if ($__section_customer_0_total != 0) {
|
||||
for ($__section_customer_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] = 0; $__section_customer_0_iteration <= $__section_customer_0_total; $__section_customer_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']++){
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
if ($__section_customer_0_saved) {
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = $__section_customer_0_saved;
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Pozostałe</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
|
||||
<?php echo '<script'; ?>
|
||||
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 = '<?php echo $_smarty_tpl->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 = '<?php echo smarty_function_url(array('Structure'=>'UpdateTree'),$_smarty_tpl);?>
|
||||
';
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-01-15 11:01:15
|
||||
from "/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Image/EditStructure.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65a5026b9986f4_68031183',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'16bca66d480fa8c0a99bd611402c046f92165c18' =>
|
||||
array (
|
||||
0 => '/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Image/EditStructure.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65a5026b9986f4_68031183 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_block_dropDownContainer')) require_once '/home/14153/www/test.aem.pl/zurawik/core/plugins/Smarty/block.dropDownContainer.php';
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/14153/www/test.aem.pl/zurawik/core/plugins/Smarty/function.url.php';
|
||||
?>
|
||||
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>(($tmp = @$_smarty_tpl->tpl_vars['moduleName']->value)===null||$tmp==='' ? "Lista" : $tmp),'icon'=>$_smarty_tpl->tpl_vars['moduleBoxConfg']->value['files'],'moduleBoxId'=>$_smarty_tpl->tpl_vars['moduleBoxId']->value,'publish'=>$_smarty_tpl->tpl_vars['param']->value['modulePublication']));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>(($tmp = @$_smarty_tpl->tpl_vars['moduleName']->value)===null||$tmp==='' ? "Lista" : $tmp),'icon'=>$_smarty_tpl->tpl_vars['moduleBoxConfg']->value['files'],'moduleBoxId'=>$_smarty_tpl->tpl_vars['moduleBoxId']->value,'publish'=>$_smarty_tpl->tpl_vars['param']->value['modulePublication']), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<iframe name="PhotoUpload" id="PhotoUpload" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" height="70" width="625" src="<?php echo smarty_function_url(array('Image'=>'Form'),$_smarty_tpl);?>
|
||||
">
|
||||
<noscript>
|
||||
Do wyświetlenia konieczne jest działanie ramek (iframe).
|
||||
</noscript>
|
||||
</iframe>
|
||||
|
||||
<br />
|
||||
<form action="<?php echo smarty_function_url(array('Image'=>'SortImage'),$_smarty_tpl);?>
|
||||
" method="post" enctype="multipart/form-data" >
|
||||
<div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['arrayImage']->value, 'image', false, 'key', 'photo', array (
|
||||
));
|
||||
if ($_from !== null) {
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['image']->value) {
|
||||
?>
|
||||
<div id="image_<?php echo $_smarty_tpl->tpl_vars['image']->value->GetId();?>
|
||||
" style="float:left; border:1px solid #000000; margin-right:5px; margin-bottom: 5px; position: relative;">
|
||||
<img src="<?php echo $_smarty_tpl->tpl_vars['image']->value->GetFullUrlMiniId($_smarty_tpl->tpl_vars['idArticleStructureMain']->value);?>
|
||||
" alt="test" style="margin-bottom: 5px" />
|
||||
<br />
|
||||
<div style="position: absolute;bottom: 10px ;right: 2px; background: rgba(72, 137, 174, .7);">Kolejność <input name="image_sort[<?php echo $_smarty_tpl->tpl_vars['image']->value->GetId();?>
|
||||
]" size="3" value="<?php echo $_smarty_tpl->tpl_vars['image']->value->getWeight();?>
|
||||
" style="width: 25px;" /></div>
|
||||
<div style="position: absolute;top: 0;right: 2px;"><a class="optionIcon iconDelete" onclick="DeletePhoto('<?php echo smarty_function_url(array('Image'=>'DeleteImage'),$_smarty_tpl);?>
|
||||
', '<?php echo $_smarty_tpl->tpl_vars['image']->value->GetId();?>
|
||||
'); return false;"> </a></div>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div name="PhotoDisplay" id="PhotoDisplay" class="PhotoDisplay">
|
||||
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>(($tmp = @$_smarty_tpl->tpl_vars['moduleName']->value)===null||$tmp==='' ? "Lista" : $tmp),'icon'=>$_smarty_tpl->tpl_vars['moduleBoxConfg']->value['files'],'moduleBoxId'=>$_smarty_tpl->tpl_vars['moduleBoxId']->value,'publish'=>$_smarty_tpl->tpl_vars['param']->value['modulePublication']), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-01-01 22:15:06
|
||||
from "/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/StructureModern.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_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';
|
||||
?>
|
||||
|
||||
|
||||
<div class="floatLeft mainFrameTree structureTree">
|
||||
|
||||
|
||||
<ul id="dhtmlgoodies_tree2" class="dhtmlgoodies_tree">
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Menu top</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>" title="Edytuj" ><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSubSub']->value->GetHaveChildren()) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('arraySubSubSub', $_smarty_tpl->tpl_vars['objElementSubSub']->value->arrayChildren);
|
||||
?>
|
||||
<ul>
|
||||
<?php
|
||||
$__section_customer_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_customer']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer'] : false;
|
||||
$__section_customer_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['arraySubSubSub']->value) ? count($_loop) : max(0, (int) $_loop));
|
||||
$__section_customer_0_total = $__section_customer_0_loop;
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = new Smarty_Variable(array());
|
||||
if ($__section_customer_0_total != 0) {
|
||||
for ($__section_customer_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] = 0; $__section_customer_0_iteration <= $__section_customer_0_total; $__section_customer_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']++){
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
if ($__section_customer_0_saved) {
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = $__section_customer_0_saved;
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Pozostałe</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
|
||||
<?php echo '<script'; ?>
|
||||
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 = '<?php echo $_smarty_tpl->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 = '<?php echo smarty_function_url(array('Structure'=>'UpdateTree'),$_smarty_tpl);?>
|
||||
';
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-01-01 23:08:32
|
||||
from "/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/StructureModern.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_659337e0e770f5_70441418',
|
||||
'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_659337e0e770f5_70441418 (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';
|
||||
?>
|
||||
|
||||
|
||||
<div class="floatLeft mainFrameTree structureTree">
|
||||
|
||||
|
||||
<ul id="dhtmlgoodies_tree2" class="dhtmlgoodies_tree">
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Menu top</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>" title="Edytuj" ><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSubSub']->value->GetHaveChildren()) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('arraySubSubSub', $_smarty_tpl->tpl_vars['objElementSubSub']->value->arrayChildren);
|
||||
?>
|
||||
<ul>
|
||||
<?php
|
||||
$__section_customer_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_customer']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer'] : false;
|
||||
$__section_customer_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['arraySubSubSub']->value) ? count($_loop) : max(0, (int) $_loop));
|
||||
$__section_customer_0_total = $__section_customer_0_loop;
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = new Smarty_Variable(array());
|
||||
if ($__section_customer_0_total != 0) {
|
||||
for ($__section_customer_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] = 0; $__section_customer_0_iteration <= $__section_customer_0_total; $__section_customer_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']++){
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
if ($__section_customer_0_saved) {
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = $__section_customer_0_saved;
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Pozostałe</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
|
||||
<?php echo '<script'; ?>
|
||||
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 = '<?php echo $_smarty_tpl->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 = '<?php echo smarty_function_url(array('Structure'=>'UpdateTree'),$_smarty_tpl);?>
|
||||
';
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-01-19 19:41:10
|
||||
from "/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65aac2467a3652_21970890',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'80fd949999c64e3e2e458a0fbe75cf6fcf3cb4d0' =>
|
||||
array (
|
||||
0 => '/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65aac2467a3652_21970890 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 22:38:39
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/StructureModern.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65bec06f0ff779_96414154',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'90fa227e4e3779401bb59ecdd0a39738a69a500f' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/StructureModern.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65bec06f0ff779_96414154 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.url.php';
|
||||
?>
|
||||
|
||||
|
||||
<div class="floatLeft mainFrameTree structureTree">
|
||||
|
||||
|
||||
<ul id="dhtmlgoodies_tree2" class="dhtmlgoodies_tree">
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Menu top</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>" title="Edytuj" ><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSubSub']->value->GetHaveChildren()) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('arraySubSubSub', $_smarty_tpl->tpl_vars['objElementSubSub']->value->arrayChildren);
|
||||
?>
|
||||
<ul>
|
||||
<?php
|
||||
$__section_customer_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_customer']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer'] : false;
|
||||
$__section_customer_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['arraySubSubSub']->value) ? count($_loop) : max(0, (int) $_loop));
|
||||
$__section_customer_0_total = $__section_customer_0_loop;
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = new Smarty_Variable(array());
|
||||
if ($__section_customer_0_total != 0) {
|
||||
for ($__section_customer_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] = 0; $__section_customer_0_iteration <= $__section_customer_0_total; $__section_customer_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']++){
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
if ($__section_customer_0_saved) {
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = $__section_customer_0_saved;
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Pozostałe</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
|
||||
<?php echo '<script'; ?>
|
||||
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 = '<?php echo $_smarty_tpl->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 = '<?php echo smarty_function_url(array('Structure'=>'UpdateTree'),$_smarty_tpl);?>
|
||||
';
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2023-06-28 18:10:31
|
||||
from "/home/www/polonia/Admin/template/partial/SimpleArticle/Index/EditStructure.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_649c5b77e18888_39320696',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'bdee6c40b6908298655f8abd798c897b87286cc6' =>
|
||||
array (
|
||||
0 => '/home/www/polonia/Admin/template/partial/SimpleArticle/Index/EditStructure.tpl',
|
||||
1 => 1661849425,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_649c5b77e18888_39320696 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_block_dropDownContainer')) require_once '/home/www/polonia/core/plugins/Smarty/block.dropDownContainer.php';
|
||||
if (!is_callable('smarty_function_insertCkEditor')) require_once '/home/www/polonia/core/plugins/Smarty/function.insertCkEditor.php';
|
||||
echo '<script'; ?>
|
||||
language="javascript" type="text/javascript">urlStatic='<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
';<?php echo '</script'; ?>
|
||||
>
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['obj']->value)) {?>
|
||||
|
||||
<input type="hidden" name="lang" value="<?php echo $_smarty_tpl->tpl_vars['lang']->value;?>
|
||||
" />
|
||||
<?php }?>
|
||||
<input type="hidden" name="SaveArt" value="true" />
|
||||
|
||||
|
||||
|
||||
<?php $_smarty_tpl->_assignInScope('additionalTitle', '');
|
||||
?>
|
||||
|
||||
<div <?php if ($_smarty_tpl->tpl_vars['objModule']->value->Getid() != 3) {?>style="display: none;"<?php }?>>
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>"Zajawka"));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Zajawka"), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
|
||||
<div class="articlePreviewRight">
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['obj']->value)) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('shortnote', $_smarty_tpl->tpl_vars['obj']->value->GetShortnote());
|
||||
?>
|
||||
<?php } else { ?>
|
||||
<?php $_smarty_tpl->_assignInScope('shortnote', '');
|
||||
?>
|
||||
<?php }?>
|
||||
<?php echo smarty_function_insertCkEditor(array('width'=>'399','height'=>'159','name'=>'shortnote','toolbar'=>'Basic','value'=>$_smarty_tpl->tpl_vars['shortnote']->value),$_smarty_tpl);?>
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['shortnote'])) {?><div style="color: red;" id="actionError"><?php echo $_smarty_tpl->tpl_vars['error']->value['shortnote'];?>
|
||||
</div><?php }?>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Zajawka"), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
</div>
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>"Treść"));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Treść"), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<div class="center">
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['obj']->value)) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('description', $_smarty_tpl->tpl_vars['obj']->value->GetDescription());
|
||||
?>
|
||||
<?php } else { ?>
|
||||
<?php $_smarty_tpl->_assignInScope('description', '');
|
||||
?>
|
||||
<?php }?>
|
||||
<?php echo smarty_function_insertCkEditor(array('width'=>'620','height'=>'380','name'=>'description','toolbar'=>'Formix','value'=>$_smarty_tpl->tpl_vars['description']->value),$_smarty_tpl);?>
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['description'])) {?><div style="color: red;" id="actionError"><?php echo $_smarty_tpl->tpl_vars['error']->value['description'];?>
|
||||
</div><?php }?>
|
||||
</div>
|
||||
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Treść"), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 22:36:29
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/SimpleArticle/Index/EditStructure.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65bebfedf15282_11486289',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'd394b663fe74de44e47a79f99b701e84b6c24877' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/SimpleArticle/Index/EditStructure.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65bebfedf15282_11486289 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_block_dropDownContainer')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/block.dropDownContainer.php';
|
||||
if (!is_callable('smarty_function_insertCkEditor')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.insertCkEditor.php';
|
||||
echo '<script'; ?>
|
||||
language="javascript" type="text/javascript">urlStatic='<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
';<?php echo '</script'; ?>
|
||||
>
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['obj']->value)) {?>
|
||||
|
||||
<input type="hidden" name="lang" value="<?php echo $_smarty_tpl->tpl_vars['lang']->value;?>
|
||||
" />
|
||||
<?php }?>
|
||||
<input type="hidden" name="SaveArt" value="true" />
|
||||
|
||||
|
||||
|
||||
<?php $_smarty_tpl->_assignInScope('additionalTitle', '');
|
||||
?>
|
||||
|
||||
<div <?php if ($_smarty_tpl->tpl_vars['objModule']->value->Getid() != 3) {?>style="display: none;"<?php }?>>
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>"Zajawka"));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Zajawka"), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
|
||||
<div class="articlePreviewRight">
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['obj']->value)) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('shortnote', $_smarty_tpl->tpl_vars['obj']->value->GetShortnote());
|
||||
?>
|
||||
<?php } else { ?>
|
||||
<?php $_smarty_tpl->_assignInScope('shortnote', '');
|
||||
?>
|
||||
<?php }?>
|
||||
<?php echo smarty_function_insertCkEditor(array('width'=>'399','height'=>'159','name'=>'shortnote','toolbar'=>'Basic','value'=>$_smarty_tpl->tpl_vars['shortnote']->value),$_smarty_tpl);?>
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['shortnote'])) {?><div style="color: red;" id="actionError"><?php echo $_smarty_tpl->tpl_vars['error']->value['shortnote'];?>
|
||||
</div><?php }?>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Zajawka"), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
</div>
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>"Treść"));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Treść"), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<div class="center">
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['obj']->value)) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('description', $_smarty_tpl->tpl_vars['obj']->value->GetDescription());
|
||||
?>
|
||||
<?php } else { ?>
|
||||
<?php $_smarty_tpl->_assignInScope('description', '');
|
||||
?>
|
||||
<?php }?>
|
||||
<?php echo smarty_function_insertCkEditor(array('width'=>'620','height'=>'380','name'=>'description','toolbar'=>'Formix','value'=>$_smarty_tpl->tpl_vars['description']->value),$_smarty_tpl);?>
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['description'])) {?><div style="color: red;" id="actionError"><?php echo $_smarty_tpl->tpl_vars['error']->value['description'];?>
|
||||
</div><?php }?>
|
||||
</div>
|
||||
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Treść"), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-05 10:59:43
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65c0bf9fdf1cd6_74147488',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'a35e3aeadb44a557082df37c03a55aff134009f8' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65c0bf9fdf1cd6_74147488 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 21:22:53
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Structure/Index.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65beaeadf13e19_76413548',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'1b02181aa6d5d82a42844ba39230f0650c665205' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Structure/Index.tpl',
|
||||
1 => 1703168201,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65beaeadf13e19_76413548 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<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">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="panelContentBottom"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panelRightBottom">
|
||||
<div class="panelButtons">
|
||||
|
||||
</div>
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-01-02 15:44:05
|
||||
from "/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Image/EditStructure.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65942135da1d62_31252668',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'16bca66d480fa8c0a99bd611402c046f92165c18' =>
|
||||
array (
|
||||
0 => '/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Image/EditStructure.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65942135da1d62_31252668 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_block_dropDownContainer')) require_once '/home/14153/www/test.aem.pl/zurawik/core/plugins/Smarty/block.dropDownContainer.php';
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/14153/www/test.aem.pl/zurawik/core/plugins/Smarty/function.url.php';
|
||||
?>
|
||||
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>(($tmp = @$_smarty_tpl->tpl_vars['moduleName']->value)===null||$tmp==='' ? "Lista" : $tmp),'icon'=>$_smarty_tpl->tpl_vars['moduleBoxConfg']->value['files'],'moduleBoxId'=>$_smarty_tpl->tpl_vars['moduleBoxId']->value,'publish'=>$_smarty_tpl->tpl_vars['param']->value['modulePublication']));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>(($tmp = @$_smarty_tpl->tpl_vars['moduleName']->value)===null||$tmp==='' ? "Lista" : $tmp),'icon'=>$_smarty_tpl->tpl_vars['moduleBoxConfg']->value['files'],'moduleBoxId'=>$_smarty_tpl->tpl_vars['moduleBoxId']->value,'publish'=>$_smarty_tpl->tpl_vars['param']->value['modulePublication']), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<iframe name="PhotoUpload" id="PhotoUpload" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" height="70" width="625" src="<?php echo smarty_function_url(array('Image'=>'Form'),$_smarty_tpl);?>
|
||||
">
|
||||
<noscript>
|
||||
Do wyświetlenia konieczne jest działanie ramek (iframe).
|
||||
</noscript>
|
||||
</iframe>
|
||||
|
||||
<br />
|
||||
<form action="<?php echo smarty_function_url(array('Image'=>'SortImage'),$_smarty_tpl);?>
|
||||
" method="post" enctype="multipart/form-data" >
|
||||
<div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['arrayImage']->value, 'image', false, 'key', 'photo', array (
|
||||
));
|
||||
if ($_from !== null) {
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['image']->value) {
|
||||
?>
|
||||
<div id="image_<?php echo $_smarty_tpl->tpl_vars['image']->value->GetId();?>
|
||||
" style="float:left; border:1px solid #000000; margin-right:5px; margin-bottom: 5px; position: relative;">
|
||||
<img src="<?php echo $_smarty_tpl->tpl_vars['image']->value->GetFullUrlMiniId($_smarty_tpl->tpl_vars['idArticleStructureMain']->value);?>
|
||||
" alt="test" style="margin-bottom: 5px" />
|
||||
<br />
|
||||
<div style="position: absolute;bottom: 10px ;right: 2px; background: rgba(72, 137, 174, .7);">Kolejność <input name="image_sort[<?php echo $_smarty_tpl->tpl_vars['image']->value->GetId();?>
|
||||
]" size="3" value="<?php echo $_smarty_tpl->tpl_vars['image']->value->getWeight();?>
|
||||
" style="width: 25px;" /></div>
|
||||
<div style="position: absolute;top: 0;right: 2px;"><a class="optionIcon iconDelete" onclick="DeletePhoto('<?php echo smarty_function_url(array('Image'=>'DeleteImage'),$_smarty_tpl);?>
|
||||
', '<?php echo $_smarty_tpl->tpl_vars['image']->value->GetId();?>
|
||||
'); return false;"> </a></div>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div name="PhotoDisplay" id="PhotoDisplay" class="PhotoDisplay">
|
||||
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>(($tmp = @$_smarty_tpl->tpl_vars['moduleName']->value)===null||$tmp==='' ? "Lista" : $tmp),'icon'=>$_smarty_tpl->tpl_vars['moduleBoxConfg']->value['files'],'moduleBoxId'=>$_smarty_tpl->tpl_vars['moduleBoxId']->value,'publish'=>$_smarty_tpl->tpl_vars['param']->value['modulePublication']), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-01-02 16:11:53
|
||||
from "/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_659427b9b7d530_59588898',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'80fd949999c64e3e2e458a0fbe75cf6fcf3cb4d0' =>
|
||||
array (
|
||||
0 => '/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_659427b9b7d530_59588898 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 21:24:35
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/StructureModern.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65beaf13e4d6e2_72523190',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'90fa227e4e3779401bb59ecdd0a39738a69a500f' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/StructureModern.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65beaf13e4d6e2_72523190 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.url.php';
|
||||
?>
|
||||
|
||||
|
||||
<div class="floatLeft mainFrameTree structureTree">
|
||||
|
||||
|
||||
<ul id="dhtmlgoodies_tree2" class="dhtmlgoodies_tree">
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Menu top</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>" title="Edytuj" ><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSubSub']->value->GetHaveChildren()) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('arraySubSubSub', $_smarty_tpl->tpl_vars['objElementSubSub']->value->arrayChildren);
|
||||
?>
|
||||
<ul>
|
||||
<?php
|
||||
$__section_customer_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_customer']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer'] : false;
|
||||
$__section_customer_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['arraySubSubSub']->value) ? count($_loop) : max(0, (int) $_loop));
|
||||
$__section_customer_0_total = $__section_customer_0_loop;
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = new Smarty_Variable(array());
|
||||
if ($__section_customer_0_total != 0) {
|
||||
for ($__section_customer_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] = 0; $__section_customer_0_iteration <= $__section_customer_0_total; $__section_customer_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']++){
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
if ($__section_customer_0_saved) {
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = $__section_customer_0_saved;
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Pozostałe</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
|
||||
<?php echo '<script'; ?>
|
||||
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 = '<?php echo $_smarty_tpl->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 = '<?php echo smarty_function_url(array('Structure'=>'UpdateTree'),$_smarty_tpl);?>
|
||||
';
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,146 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2022-11-23 08:10:43
|
||||
from "/home/www/hotel/Admin/template/partial/HomeSite/Index.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_637dc773aaec20_09573644',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'1e99d876deaebc207a93353861decf07806b468b' =>
|
||||
array (
|
||||
0 => '/home/www/hotel/Admin/template/partial/HomeSite/Index.tpl',
|
||||
1 => 1661849425,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_637dc773aaec20_09573644 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/www/hotel/core/plugins/Smarty/function.url.php';
|
||||
if (!is_callable('smarty_block_dropDownContainer')) require_once '/home/www/hotel/core/plugins/Smarty/block.dropDownContainer.php';
|
||||
if (!is_callable('smarty_function_insertCkEditor')) require_once '/home/www/hotel/core/plugins/Smarty/function.insertCkEditor.php';
|
||||
?>
|
||||
|
||||
<form action="<?php echo smarty_function_url(array('HomeSite'=>'Edit'),$_smarty_tpl);?>
|
||||
" id="sendForm" method="post" enctype="multipart/form-data" >
|
||||
|
||||
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>'Boxy'));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>'Boxy'), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<?php $_smarty_tpl->_assignInScope('x', 1);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['arrayToEdit']->value, 'objHomeElement', false, 'keyHome');
|
||||
if ($_from !== null) {
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['keyHome']->value => $_smarty_tpl->tpl_vars['objHomeElement']->value) {
|
||||
?>
|
||||
|
||||
<div class="articlePreviewLeft" style="width: 180px" >
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<div class="articlePreviewLeft" >
|
||||
<input class="inputWidth141 input100percent" type="hidden" name="elementId[<?php echo $_smarty_tpl->tpl_vars['keyHome']->value;?>
|
||||
]" value="<?php echo $_smarty_tpl->tpl_vars['objHomeElement']->value->GetId();?>
|
||||
" />
|
||||
<table class="frameTableForm tableContetntWhite" cellpadding="5" cellspacing="0" border="0" width="50%" >
|
||||
<tr>
|
||||
<td width="10%">Nazwa elementu:</td>
|
||||
<td class="left">
|
||||
|
||||
<input class="inputWidth141 input100percent" type="text" name="elementName[<?php echo $_smarty_tpl->tpl_vars['keyHome']->value;?>
|
||||
]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['objHomeElement']->value->GetName(), ENT_QUOTES, 'UTF-8', true);?>
|
||||
" />
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['elementName'])) {?><div style="color: red;" id="actionError"><?php echo $_smarty_tpl->tpl_vars['error']->value['elementName'];?>
|
||||
</div><?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10%">Tytuł:</td>
|
||||
<td class="left">
|
||||
<input class="inputWidth141 input100percent" type="text" name="elementTitle[<?php echo $_smarty_tpl->tpl_vars['keyHome']->value;?>
|
||||
]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['objHomeElement']->value->GetTitle(), ENT_QUOTES, 'UTF-8', true);?>
|
||||
" />
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Opis:</td>
|
||||
<td class="left" width="30%">
|
||||
|
||||
|
||||
|
||||
<?php $_smarty_tpl->_assignInScope('elementTextName', "elementText[".((string)$_smarty_tpl->tpl_vars['keyHome']->value)."]");
|
||||
?>
|
||||
|
||||
<?php echo smarty_function_insertCkEditor(array('width'=>'450','height'=>'220','name'=>$_smarty_tpl->tpl_vars['elementTextName']->value,'toolbar'=>'basic','value'=>$_smarty_tpl->tpl_vars['objHomeElement']->value->GetDescription()),$_smarty_tpl);?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Url:</td>
|
||||
<td class="left">
|
||||
<input class="inputWidth141 input100percent" type="text" name="elementUrl[<?php echo $_smarty_tpl->tpl_vars['keyHome']->value;?>
|
||||
]" value="<?php echo $_smarty_tpl->tpl_vars['objHomeElement']->value->GetSourceUrl();?>
|
||||
" /></br>
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['elementName'])) {?><div style="color: red;" id="actionError"><?php echo $_smarty_tpl->tpl_vars['error']->value['elementName'];?>
|
||||
</div><?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<?php $_smarty_tpl->_assignInScope('imageHome', $_smarty_tpl->tpl_vars['objHomeElement']->value->GetPhotoPath());
|
||||
?>
|
||||
<?php if ($_smarty_tpl->tpl_vars['objHomeElement']->value->GetPhotoPath()) {?>
|
||||
|
||||
<img src="<?php echo $_smarty_tpl->tpl_vars['objHomeElement']->value->GetPhotoUrl();?>
|
||||
" alt="" align="left"/>
|
||||
<?php }?>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<hr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>'Boxy'), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
|
||||
<div class="panelButtons">
|
||||
<input type="button" class="cancel" value="Anulij" name="" onclick="javascript:document.location.href = '<?php echo smarty_function_url(array('homesite'=>'index'),$_smarty_tpl);?>
|
||||
';"/>
|
||||
|
||||
<input type="submit" class="button buttonZapisz" value="Zapisz" name="AddHomesite"/>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-01-10 08:46:49
|
||||
from "/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_659e4b69095859_66307947',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'80fd949999c64e3e2e458a0fbe75cf6fcf3cb4d0' =>
|
||||
array (
|
||||
0 => '/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_659e4b69095859_66307947 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-05 14:51:50
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/infoFrame.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65c0f606736a95_94341702',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'9eaadf892a9bb31bcb53cd07066a57f74c31dea4' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/infoFrame.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65c0f606736a95_94341702 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<span style="color: red; text-align: center;"><?php echo $_smarty_tpl->tpl_vars['info']->value;?>
|
||||
</span>
|
||||
<div style="clear: both;"></div><?php }
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 22:36:27
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Image/EditStructure.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65bebfeb37cda2_70798055',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'b736d0d640a4aa84efd7e8f50c93e9738d995e24' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Image/EditStructure.tpl',
|
||||
1 => 1705956023,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65bebfeb37cda2_70798055 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_block_dropDownContainer')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/block.dropDownContainer.php';
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.url.php';
|
||||
?>
|
||||
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>(($tmp = @$_smarty_tpl->tpl_vars['moduleName']->value)===null||$tmp==='' ? "Lista" : $tmp),'icon'=>$_smarty_tpl->tpl_vars['moduleBoxConfg']->value['files'],'moduleBoxId'=>$_smarty_tpl->tpl_vars['moduleBoxId']->value,'publish'=>$_smarty_tpl->tpl_vars['param']->value['modulePublication']));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>(($tmp = @$_smarty_tpl->tpl_vars['moduleName']->value)===null||$tmp==='' ? "Lista" : $tmp),'icon'=>$_smarty_tpl->tpl_vars['moduleBoxConfg']->value['files'],'moduleBoxId'=>$_smarty_tpl->tpl_vars['moduleBoxId']->value,'publish'=>$_smarty_tpl->tpl_vars['param']->value['modulePublication']), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<iframe name="PhotoUpload" id="PhotoUpload" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" height="70" width="625" src="<?php echo smarty_function_url(array('Image'=>'Form'),$_smarty_tpl);?>
|
||||
">
|
||||
<noscript>
|
||||
Do wyświetlenia konieczne jest działanie ramek (iframe).
|
||||
</noscript>
|
||||
</iframe>
|
||||
|
||||
<br />
|
||||
<form action="<?php echo smarty_function_url(array('Image'=>'SortImage'),$_smarty_tpl);?>
|
||||
" method="post" enctype="multipart/form-data" >
|
||||
<div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['arrayImage']->value, 'image', false, 'key', 'photo', array (
|
||||
));
|
||||
if ($_from !== null) {
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['image']->value) {
|
||||
?>
|
||||
<div id="image_<?php echo $_smarty_tpl->tpl_vars['image']->value->GetId();?>
|
||||
" style="float:left; border:1px solid #000000; margin-right:5px; margin-bottom: 5px; position: relative; text-align: center;">
|
||||
<img src="<?php echo $_smarty_tpl->tpl_vars['image']->value->GetFullUrlMiniId($_smarty_tpl->tpl_vars['idArticleStructureMain']->value);?>
|
||||
" alt="test" style="margin-bottom: 5px" />
|
||||
<br />
|
||||
<div style="position: absolute; top: 52px ;right: 2px; background: rgba(72, 137, 174, .7);">Kolejność <input name="image_sort[<?php echo $_smarty_tpl->tpl_vars['image']->value->GetId();?>
|
||||
]" size="3" value="<?php echo $_smarty_tpl->tpl_vars['image']->value->getWeight();?>
|
||||
" style="width: 25px;" /></div>
|
||||
<div style="position: absolute;top: 0;right: 2px;"><a class="optionIcon iconDelete" onclick="DeletePhoto('<?php echo smarty_function_url(array('Image'=>'DeleteImage'),$_smarty_tpl);?>
|
||||
', '<?php echo $_smarty_tpl->tpl_vars['image']->value->GetId();?>
|
||||
'); return false;"> </a></div>
|
||||
<textarea name="image_description[<?php echo $_smarty_tpl->tpl_vars['image']->value->GetId();?>
|
||||
]" rows="1" cols="11"><?php echo $_smarty_tpl->tpl_vars['image']->value->GetDescription();?>
|
||||
</textarea>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div name="PhotoDisplay" id="PhotoDisplay" class="PhotoDisplay">
|
||||
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>(($tmp = @$_smarty_tpl->tpl_vars['moduleName']->value)===null||$tmp==='' ? "Lista" : $tmp),'icon'=>$_smarty_tpl->tpl_vars['moduleBoxConfg']->value['files'],'moduleBoxId'=>$_smarty_tpl->tpl_vars['moduleBoxId']->value,'publish'=>$_smarty_tpl->tpl_vars['param']->value['modulePublication']), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 21:22:45
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Login/Index.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65beaea5ce9d13_66607511',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'295f9c640019653a446f240b8408f378ed9388de' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Login/Index.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65beaea5ce9d13_66607511 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 22:36:24
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65bebfe81c9ba3_43422005',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'a35e3aeadb44a557082df37c03a55aff134009f8' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65bebfe81c9ba3_43422005 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 21:23:11
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65beaebf7ef209_50753231',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'a35e3aeadb44a557082df37c03a55aff134009f8' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65beaebf7ef209_50753231 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-01-09 12:22:57
|
||||
from "/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/infoFrame.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_659d2c91c5c1f0_79788233',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'b02f989c8d9263398130207cc2eba6e5e745679d' =>
|
||||
array (
|
||||
0 => '/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/infoFrame.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_659d2c91c5c1f0_79788233 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<span style="color: red; text-align: center;"><?php echo $_smarty_tpl->tpl_vars['info']->value;?>
|
||||
</span>
|
||||
<div style="clear: both;"></div><?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-05 10:58:54
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65c0bf6e2a8791_87096347',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'a35e3aeadb44a557082df37c03a55aff134009f8' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65c0bf6e2a8791_87096347 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 22:39:42
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/StructureModern.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65bec0ae807035_37424385',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'90fa227e4e3779401bb59ecdd0a39738a69a500f' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/StructureModern.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65bec0ae807035_37424385 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.url.php';
|
||||
?>
|
||||
|
||||
|
||||
<div class="floatLeft mainFrameTree structureTree">
|
||||
|
||||
|
||||
<ul id="dhtmlgoodies_tree2" class="dhtmlgoodies_tree">
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Menu top</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>" title="Edytuj" ><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSubSub']->value->GetHaveChildren()) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('arraySubSubSub', $_smarty_tpl->tpl_vars['objElementSubSub']->value->arrayChildren);
|
||||
?>
|
||||
<ul>
|
||||
<?php
|
||||
$__section_customer_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_customer']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer'] : false;
|
||||
$__section_customer_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['arraySubSubSub']->value) ? count($_loop) : max(0, (int) $_loop));
|
||||
$__section_customer_0_total = $__section_customer_0_loop;
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = new Smarty_Variable(array());
|
||||
if ($__section_customer_0_total != 0) {
|
||||
for ($__section_customer_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] = 0; $__section_customer_0_iteration <= $__section_customer_0_total; $__section_customer_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']++){
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
if ($__section_customer_0_saved) {
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = $__section_customer_0_saved;
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Pozostałe</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
|
||||
<?php echo '<script'; ?>
|
||||
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 = '<?php echo $_smarty_tpl->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 = '<?php echo smarty_function_url(array('Structure'=>'UpdateTree'),$_smarty_tpl);?>
|
||||
';
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-01-01 17:51:55
|
||||
from "/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_6592edab826f68_85118739',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'80fd949999c64e3e2e458a0fbe75cf6fcf3cb4d0' =>
|
||||
array (
|
||||
0 => '/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_6592edab826f68_85118739 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 22:36:08
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/infoFrame.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65bebfd8ea2fe5_25904622',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'9eaadf892a9bb31bcb53cd07066a57f74c31dea4' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/infoFrame.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65bebfd8ea2fe5_25904622 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<span style="color: red; text-align: center;"><?php echo $_smarty_tpl->tpl_vars['info']->value;?>
|
||||
</span>
|
||||
<div style="clear: both;"></div><?php }
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-05 10:59:43
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/Auth.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65c0bf9fdd2255_45694114',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'242a2219ac616a3e6844e81b4d39c64bf145f0e6' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/Auth.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65c0bf9fdd2255_45694114 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 22:36:29
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65bebfede5c170_38144323',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'a35e3aeadb44a557082df37c03a55aff134009f8' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65bebfede5c170_38144323 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 22:39:42
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65bec0ae78dea5_05315640',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'a35e3aeadb44a557082df37c03a55aff134009f8' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65bec0ae78dea5_05315640 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-05 15:07:06
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/StructureModern.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65c0f99a20bbc7_43561119',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'90fa227e4e3779401bb59ecdd0a39738a69a500f' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/StructureModern.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65c0f99a20bbc7_43561119 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.url.php';
|
||||
?>
|
||||
|
||||
|
||||
<div class="floatLeft mainFrameTree structureTree">
|
||||
|
||||
|
||||
<ul id="dhtmlgoodies_tree2" class="dhtmlgoodies_tree">
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Menu top</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>" title="Edytuj" ><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSubSub']->value->GetHaveChildren()) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('arraySubSubSub', $_smarty_tpl->tpl_vars['objElementSubSub']->value->arrayChildren);
|
||||
?>
|
||||
<ul>
|
||||
<?php
|
||||
$__section_customer_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_customer']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer'] : false;
|
||||
$__section_customer_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['arraySubSubSub']->value) ? count($_loop) : max(0, (int) $_loop));
|
||||
$__section_customer_0_total = $__section_customer_0_loop;
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = new Smarty_Variable(array());
|
||||
if ($__section_customer_0_total != 0) {
|
||||
for ($__section_customer_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] = 0; $__section_customer_0_iteration <= $__section_customer_0_total; $__section_customer_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']++){
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
if ($__section_customer_0_saved) {
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = $__section_customer_0_saved;
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Pozostałe</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
|
||||
<?php echo '<script'; ?>
|
||||
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 = '<?php echo $_smarty_tpl->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 = '<?php echo smarty_function_url(array('Structure'=>'UpdateTree'),$_smarty_tpl);?>
|
||||
';
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-01-01 22:15:42
|
||||
from "/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/StructureModern.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_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';
|
||||
?>
|
||||
|
||||
|
||||
<div class="floatLeft mainFrameTree structureTree">
|
||||
|
||||
|
||||
<ul id="dhtmlgoodies_tree2" class="dhtmlgoodies_tree">
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Menu top</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>" title="Edytuj" ><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSubSub']->value->GetHaveChildren()) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('arraySubSubSub', $_smarty_tpl->tpl_vars['objElementSubSub']->value->arrayChildren);
|
||||
?>
|
||||
<ul>
|
||||
<?php
|
||||
$__section_customer_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_customer']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer'] : false;
|
||||
$__section_customer_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['arraySubSubSub']->value) ? count($_loop) : max(0, (int) $_loop));
|
||||
$__section_customer_0_total = $__section_customer_0_loop;
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = new Smarty_Variable(array());
|
||||
if ($__section_customer_0_total != 0) {
|
||||
for ($__section_customer_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] = 0; $__section_customer_0_iteration <= $__section_customer_0_total; $__section_customer_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']++){
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
if ($__section_customer_0_saved) {
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = $__section_customer_0_saved;
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Pozostałe</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
|
||||
<?php echo '<script'; ?>
|
||||
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 = '<?php echo $_smarty_tpl->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 = '<?php echo smarty_function_url(array('Structure'=>'UpdateTree'),$_smarty_tpl);?>
|
||||
';
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 21:23:07
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65beaebb1e8971_40424349',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'a35e3aeadb44a557082df37c03a55aff134009f8' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65beaebb1e8971_40424349 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 22:36:20
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/SimpleArticle/Index/EditStructure.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65bebfe4a4f216_71927346',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'd394b663fe74de44e47a79f99b701e84b6c24877' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/SimpleArticle/Index/EditStructure.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65bebfe4a4f216_71927346 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_block_dropDownContainer')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/block.dropDownContainer.php';
|
||||
if (!is_callable('smarty_function_insertCkEditor')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.insertCkEditor.php';
|
||||
echo '<script'; ?>
|
||||
language="javascript" type="text/javascript">urlStatic='<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
';<?php echo '</script'; ?>
|
||||
>
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['obj']->value)) {?>
|
||||
|
||||
<input type="hidden" name="lang" value="<?php echo $_smarty_tpl->tpl_vars['lang']->value;?>
|
||||
" />
|
||||
<?php }?>
|
||||
<input type="hidden" name="SaveArt" value="true" />
|
||||
|
||||
|
||||
|
||||
<?php $_smarty_tpl->_assignInScope('additionalTitle', '');
|
||||
?>
|
||||
|
||||
<div <?php if ($_smarty_tpl->tpl_vars['objModule']->value->Getid() != 3) {?>style="display: none;"<?php }?>>
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>"Zajawka"));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Zajawka"), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
|
||||
<div class="articlePreviewRight">
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['obj']->value)) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('shortnote', $_smarty_tpl->tpl_vars['obj']->value->GetShortnote());
|
||||
?>
|
||||
<?php } else { ?>
|
||||
<?php $_smarty_tpl->_assignInScope('shortnote', '');
|
||||
?>
|
||||
<?php }?>
|
||||
<?php echo smarty_function_insertCkEditor(array('width'=>'399','height'=>'159','name'=>'shortnote','toolbar'=>'Basic','value'=>$_smarty_tpl->tpl_vars['shortnote']->value),$_smarty_tpl);?>
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['shortnote'])) {?><div style="color: red;" id="actionError"><?php echo $_smarty_tpl->tpl_vars['error']->value['shortnote'];?>
|
||||
</div><?php }?>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Zajawka"), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
</div>
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>"Treść"));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Treść"), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<div class="center">
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['obj']->value)) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('description', $_smarty_tpl->tpl_vars['obj']->value->GetDescription());
|
||||
?>
|
||||
<?php } else { ?>
|
||||
<?php $_smarty_tpl->_assignInScope('description', '');
|
||||
?>
|
||||
<?php }?>
|
||||
<?php echo smarty_function_insertCkEditor(array('width'=>'620','height'=>'380','name'=>'description','toolbar'=>'Formix','value'=>$_smarty_tpl->tpl_vars['description']->value),$_smarty_tpl);?>
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['description'])) {?><div style="color: red;" id="actionError"><?php echo $_smarty_tpl->tpl_vars['error']->value['description'];?>
|
||||
</div><?php }?>
|
||||
</div>
|
||||
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Treść"), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-05 11:00:04
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65c0bfb4a96684_87898968',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'a35e3aeadb44a557082df37c03a55aff134009f8' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65c0bfb4a96684_87898968 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 21:22:53
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Login/Auth.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65beaeadcf01b6_48029943',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'49a991a11aa25b52c38046dee4d7e87f4f240379' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Login/Auth.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65beaeadcf01b6_48029943 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-05 10:58:59
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65c0bf73d4a442_06932255',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'a35e3aeadb44a557082df37c03a55aff134009f8' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65c0bf73d4a442_06932255 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,150 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-01-09 12:12:19
|
||||
from "/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Dictionary/Index.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_659d2a13646ba3_30335950',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'52b0940babdb10e015831f38cd363cda0f67219b' =>
|
||||
array (
|
||||
0 => '/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Dictionary/Index.tpl',
|
||||
1 => 1704798240,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_659d2a13646ba3_30335950 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_block_dropDownContainer')) require_once '/home/14153/www/test.aem.pl/zurawik/core/plugins/Smarty/block.dropDownContainer.php';
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/14153/www/test.aem.pl/zurawik/core/plugins/Smarty/function.url.php';
|
||||
if (!is_callable('smarty_function_insertPagination')) require_once '/home/14153/www/test.aem.pl/zurawik/core/plugins/Smarty/function.insertPagination.php';
|
||||
?>
|
||||
<div class="panelRightTop"></div>
|
||||
<div class="panelRightBody">
|
||||
<div class="paddedContent">
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('isClose'=>false,'isHidden'=>false,'title'=>"Wyszukiwarka"));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('isClose'=>false,'isHidden'=>false,'title'=>"Wyszukiwarka"), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<form method="post" action="">
|
||||
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="frameTableForm tableContetntWhite">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Szukana Fraza:</td>
|
||||
<td class="left"><input name="search" id="search" onkeyup="GetTableContent('<?php echo smarty_function_url(array('Dictionary'=>'AjaxIndex'),$_smarty_tpl);?>
|
||||
', '#dictionaryTableContent', $('#search').val(), '#roleList');" /></td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('isClose'=>false,'isHidden'=>false,'title'=>"Wyszukiwarka"), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>"Słownik",'id'=>"dictionaryTableContent"));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Słownik",'id'=>"dictionaryTableContent"), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
|
||||
<table width="100%" class="datagrid" cellpadding="4" cellspacing="1">
|
||||
<tr>
|
||||
<th>klucz</th>
|
||||
<th>Wersja PL</th>
|
||||
<th>Wersja EN</th>
|
||||
|
||||
|
||||
|
||||
|
||||
<th width="60">
|
||||
|
||||
|
||||
</th>
|
||||
</tr>
|
||||
|
||||
<?php $_smarty_tpl->_assignInScope('x', 1);
|
||||
?>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['arrayObjDict']->value, 'objWord', false, NULL, 'word', array (
|
||||
'last' => true,
|
||||
'iteration' => true,
|
||||
'total' => true,
|
||||
));
|
||||
if ($_from !== null) {
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['objWord']->value) {
|
||||
$_smarty_tpl->tpl_vars['__smarty_foreach_word']->value['iteration']++;
|
||||
$_smarty_tpl->tpl_vars['__smarty_foreach_word']->value['last'] = $_smarty_tpl->tpl_vars['__smarty_foreach_word']->value['iteration'] == $_smarty_tpl->tpl_vars['__smarty_foreach_word']->value['total'];
|
||||
?>
|
||||
<tr <?php if ($_smarty_tpl->tpl_vars['x']->value == 1) {
|
||||
$_smarty_tpl->_assignInScope('x', 0);
|
||||
} else {
|
||||
$_smarty_tpl->_assignInScope('x', 1);
|
||||
?>class="even"<?php }?>>
|
||||
<td><?php echo $_smarty_tpl->tpl_vars['objWord']->value->GetKeyword();?>
|
||||
</td>
|
||||
<td><?php echo $_smarty_tpl->tpl_vars['objWord']->value->GetReplacement();?>
|
||||
</td>
|
||||
<td><?php echo $_smarty_tpl->tpl_vars['objWord']->value->GetReplacementEn();?>
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
<td style="text-align: center;">
|
||||
<a class="editItemTable" href="<?php echo smarty_function_url(array('Dictionary'=>'Edit','id'=>$_smarty_tpl->tpl_vars['objWord']->value->GetId()),$_smarty_tpl);?>
|
||||
" title="Edytuj" >Edytuj</a>
|
||||
<a class="deleteItemTable" href="<?php echo smarty_function_url(array('Dictionary'=>'Delete','id'=>$_smarty_tpl->tpl_vars['objWord']->value->GetId()),$_smarty_tpl);?>
|
||||
" title="Usuń" >Usuń</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php if ((isset($_smarty_tpl->tpl_vars['__smarty_foreach_word']->value['last']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_word']->value['last'] : null)) {?>
|
||||
<tr>
|
||||
<td colspan="10" align="center" >
|
||||
<div class="paging">
|
||||
<?php echo smarty_function_insertPagination(array(),$_smarty_tpl);?>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php
|
||||
}
|
||||
} else {
|
||||
?>
|
||||
|
||||
<?php if (!isset($_smarty_tpl->tpl_vars['searchString']->value) || $_smarty_tpl->tpl_vars['searchString']->value == '') {?>
|
||||
<tr>
|
||||
<td colspan="5" style="text-align: center;">Brak elementów</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</table>
|
||||
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Słownik",'id'=>"dictionaryTableContent"), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
</div><!-- /paddedContent -->
|
||||
</div><!-- /panelRightBody -->
|
||||
<div class="panelRightBottom"></div><?php }
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 22:36:20
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Image/EditStructure.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65bebfe4a6a772_61149115',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'b736d0d640a4aa84efd7e8f50c93e9738d995e24' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Image/EditStructure.tpl',
|
||||
1 => 1705956023,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65bebfe4a6a772_61149115 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_block_dropDownContainer')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/block.dropDownContainer.php';
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.url.php';
|
||||
?>
|
||||
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>(($tmp = @$_smarty_tpl->tpl_vars['moduleName']->value)===null||$tmp==='' ? "Lista" : $tmp),'icon'=>$_smarty_tpl->tpl_vars['moduleBoxConfg']->value['files'],'moduleBoxId'=>$_smarty_tpl->tpl_vars['moduleBoxId']->value,'publish'=>$_smarty_tpl->tpl_vars['param']->value['modulePublication']));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>(($tmp = @$_smarty_tpl->tpl_vars['moduleName']->value)===null||$tmp==='' ? "Lista" : $tmp),'icon'=>$_smarty_tpl->tpl_vars['moduleBoxConfg']->value['files'],'moduleBoxId'=>$_smarty_tpl->tpl_vars['moduleBoxId']->value,'publish'=>$_smarty_tpl->tpl_vars['param']->value['modulePublication']), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<iframe name="PhotoUpload" id="PhotoUpload" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" height="70" width="625" src="<?php echo smarty_function_url(array('Image'=>'Form'),$_smarty_tpl);?>
|
||||
">
|
||||
<noscript>
|
||||
Do wyświetlenia konieczne jest działanie ramek (iframe).
|
||||
</noscript>
|
||||
</iframe>
|
||||
|
||||
<br />
|
||||
<form action="<?php echo smarty_function_url(array('Image'=>'SortImage'),$_smarty_tpl);?>
|
||||
" method="post" enctype="multipart/form-data" >
|
||||
<div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['arrayImage']->value, 'image', false, 'key', 'photo', array (
|
||||
));
|
||||
if ($_from !== null) {
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['image']->value) {
|
||||
?>
|
||||
<div id="image_<?php echo $_smarty_tpl->tpl_vars['image']->value->GetId();?>
|
||||
" style="float:left; border:1px solid #000000; margin-right:5px; margin-bottom: 5px; position: relative; text-align: center;">
|
||||
<img src="<?php echo $_smarty_tpl->tpl_vars['image']->value->GetFullUrlMiniId($_smarty_tpl->tpl_vars['idArticleStructureMain']->value);?>
|
||||
" alt="test" style="margin-bottom: 5px" />
|
||||
<br />
|
||||
<div style="position: absolute; top: 52px ;right: 2px; background: rgba(72, 137, 174, .7);">Kolejność <input name="image_sort[<?php echo $_smarty_tpl->tpl_vars['image']->value->GetId();?>
|
||||
]" size="3" value="<?php echo $_smarty_tpl->tpl_vars['image']->value->getWeight();?>
|
||||
" style="width: 25px;" /></div>
|
||||
<div style="position: absolute;top: 0;right: 2px;"><a class="optionIcon iconDelete" onclick="DeletePhoto('<?php echo smarty_function_url(array('Image'=>'DeleteImage'),$_smarty_tpl);?>
|
||||
', '<?php echo $_smarty_tpl->tpl_vars['image']->value->GetId();?>
|
||||
'); return false;"> </a></div>
|
||||
<textarea name="image_description[<?php echo $_smarty_tpl->tpl_vars['image']->value->GetId();?>
|
||||
]" rows="1" cols="11"><?php echo $_smarty_tpl->tpl_vars['image']->value->GetDescription();?>
|
||||
</textarea>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div name="PhotoDisplay" id="PhotoDisplay" class="PhotoDisplay">
|
||||
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>(($tmp = @$_smarty_tpl->tpl_vars['moduleName']->value)===null||$tmp==='' ? "Lista" : $tmp),'icon'=>$_smarty_tpl->tpl_vars['moduleBoxConfg']->value['files'],'moduleBoxId'=>$_smarty_tpl->tpl_vars['moduleBoxId']->value,'publish'=>$_smarty_tpl->tpl_vars['param']->value['modulePublication']), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2022-11-23 08:20:59
|
||||
from "/home/www/polonia/Admin/template/partial/Shared/StructureModern.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_637dc9dbebb418_88285000',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'9be830a35d1f4d1799b28c55d4b44808f5661f3a' =>
|
||||
array (
|
||||
0 => '/home/www/polonia/Admin/template/partial/Shared/StructureModern.tpl',
|
||||
1 => 1661849425,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_637dc9dbebb418_88285000 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/www/polonia/core/plugins/Smarty/function.url.php';
|
||||
?>
|
||||
|
||||
|
||||
<div class="floatLeft mainFrameTree structureTree">
|
||||
|
||||
|
||||
<ul id="dhtmlgoodies_tree2" class="dhtmlgoodies_tree">
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Menu top</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>" title="Edytuj" ><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSubSub']->value->GetHaveChildren()) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('arraySubSubSub', $_smarty_tpl->tpl_vars['objElementSubSub']->value->arrayChildren);
|
||||
?>
|
||||
<ul>
|
||||
<?php
|
||||
$__section_customer_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_customer']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer'] : false;
|
||||
$__section_customer_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['arraySubSubSub']->value) ? count($_loop) : max(0, (int) $_loop));
|
||||
$__section_customer_0_total = $__section_customer_0_loop;
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = new Smarty_Variable(array());
|
||||
if ($__section_customer_0_total != 0) {
|
||||
for ($__section_customer_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] = 0; $__section_customer_0_iteration <= $__section_customer_0_total; $__section_customer_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']++){
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
if ($__section_customer_0_saved) {
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = $__section_customer_0_saved;
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Pozostałe</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
|
||||
<?php echo '<script'; ?>
|
||||
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 = '<?php echo $_smarty_tpl->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 = '<?php echo smarty_function_url(array('Structure'=>'UpdateTree'),$_smarty_tpl);?>
|
||||
';
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 22:35:40
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/SimpleArticle/Index/EditStructure.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65bebfbc1f2536_09685078',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'd394b663fe74de44e47a79f99b701e84b6c24877' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/SimpleArticle/Index/EditStructure.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65bebfbc1f2536_09685078 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_block_dropDownContainer')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/block.dropDownContainer.php';
|
||||
if (!is_callable('smarty_function_insertCkEditor')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.insertCkEditor.php';
|
||||
echo '<script'; ?>
|
||||
language="javascript" type="text/javascript">urlStatic='<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
';<?php echo '</script'; ?>
|
||||
>
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['obj']->value)) {?>
|
||||
|
||||
<input type="hidden" name="lang" value="<?php echo $_smarty_tpl->tpl_vars['lang']->value;?>
|
||||
" />
|
||||
<?php }?>
|
||||
<input type="hidden" name="SaveArt" value="true" />
|
||||
|
||||
|
||||
|
||||
<?php $_smarty_tpl->_assignInScope('additionalTitle', '');
|
||||
?>
|
||||
|
||||
<div <?php if ($_smarty_tpl->tpl_vars['objModule']->value->Getid() != 3) {?>style="display: none;"<?php }?>>
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>"Zajawka"));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Zajawka"), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
|
||||
<div class="articlePreviewRight">
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['obj']->value)) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('shortnote', $_smarty_tpl->tpl_vars['obj']->value->GetShortnote());
|
||||
?>
|
||||
<?php } else { ?>
|
||||
<?php $_smarty_tpl->_assignInScope('shortnote', '');
|
||||
?>
|
||||
<?php }?>
|
||||
<?php echo smarty_function_insertCkEditor(array('width'=>'399','height'=>'159','name'=>'shortnote','toolbar'=>'Basic','value'=>$_smarty_tpl->tpl_vars['shortnote']->value),$_smarty_tpl);?>
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['shortnote'])) {?><div style="color: red;" id="actionError"><?php echo $_smarty_tpl->tpl_vars['error']->value['shortnote'];?>
|
||||
</div><?php }?>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Zajawka"), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
</div>
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>"Treść"));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Treść"), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<div class="center">
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['obj']->value)) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('description', $_smarty_tpl->tpl_vars['obj']->value->GetDescription());
|
||||
?>
|
||||
<?php } else { ?>
|
||||
<?php $_smarty_tpl->_assignInScope('description', '');
|
||||
?>
|
||||
<?php }?>
|
||||
<?php echo smarty_function_insertCkEditor(array('width'=>'620','height'=>'380','name'=>'description','toolbar'=>'Formix','value'=>$_smarty_tpl->tpl_vars['description']->value),$_smarty_tpl);?>
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['description'])) {?><div style="color: red;" id="actionError"><?php echo $_smarty_tpl->tpl_vars['error']->value['description'];?>
|
||||
</div><?php }?>
|
||||
</div>
|
||||
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Treść"), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2022-11-23 08:22:01
|
||||
from "/home/www/polonia/Admin/template/partial/Shared/StructureModern.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_637dca191525f7_25133613',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'9be830a35d1f4d1799b28c55d4b44808f5661f3a' =>
|
||||
array (
|
||||
0 => '/home/www/polonia/Admin/template/partial/Shared/StructureModern.tpl',
|
||||
1 => 1661849425,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_637dca191525f7_25133613 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/www/polonia/core/plugins/Smarty/function.url.php';
|
||||
?>
|
||||
|
||||
|
||||
<div class="floatLeft mainFrameTree structureTree">
|
||||
|
||||
|
||||
<ul id="dhtmlgoodies_tree2" class="dhtmlgoodies_tree">
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Menu top</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>" title="Edytuj" ><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSubSub']->value->GetHaveChildren()) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('arraySubSubSub', $_smarty_tpl->tpl_vars['objElementSubSub']->value->arrayChildren);
|
||||
?>
|
||||
<ul>
|
||||
<?php
|
||||
$__section_customer_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_customer']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer'] : false;
|
||||
$__section_customer_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['arraySubSubSub']->value) ? count($_loop) : max(0, (int) $_loop));
|
||||
$__section_customer_0_total = $__section_customer_0_loop;
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = new Smarty_Variable(array());
|
||||
if ($__section_customer_0_total != 0) {
|
||||
for ($__section_customer_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] = 0; $__section_customer_0_iteration <= $__section_customer_0_total; $__section_customer_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']++){
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
if ($__section_customer_0_saved) {
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = $__section_customer_0_saved;
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Pozostałe</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
|
||||
<?php echo '<script'; ?>
|
||||
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 = '<?php echo $_smarty_tpl->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 = '<?php echo smarty_function_url(array('Structure'=>'UpdateTree'),$_smarty_tpl);?>
|
||||
';
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-01-01 22:16:27
|
||||
from "/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Image/Upload.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65932babd282f2_03876864',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'54c95aaa3bee1d32e317994013f7c036abdddad3' =>
|
||||
array (
|
||||
0 => '/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Image/Upload.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65932babd282f2_03876864 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['arrayPhoto']->value, 'file', false, 'key', 'photo', array (
|
||||
));
|
||||
if ($_from !== null) {
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['file']->value) {
|
||||
?><div style="float:left; text-align: center; border:1px solid #000000; margin-right:5px; margin-bottom: 5px"><img src="<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
/temp/<?php echo $_smarty_tpl->tpl_vars['file']->value['th'];?>
|
||||
" alt="test" /></div> <?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 21:24:03
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/Auth.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65beaef3c8c0e7_22980320',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'242a2219ac616a3e6844e81b4d39c64bf145f0e6' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/Auth.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65beaef3c8c0e7_22980320 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-05 15:07:06
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/SimpleArticle/Index/EditStructure.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65c0f99a247847_13353576',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'd394b663fe74de44e47a79f99b701e84b6c24877' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/SimpleArticle/Index/EditStructure.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65c0f99a247847_13353576 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_block_dropDownContainer')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/block.dropDownContainer.php';
|
||||
if (!is_callable('smarty_function_insertCkEditor')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.insertCkEditor.php';
|
||||
echo '<script'; ?>
|
||||
language="javascript" type="text/javascript">urlStatic='<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
';<?php echo '</script'; ?>
|
||||
>
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['obj']->value)) {?>
|
||||
|
||||
<input type="hidden" name="lang" value="<?php echo $_smarty_tpl->tpl_vars['lang']->value;?>
|
||||
" />
|
||||
<?php }?>
|
||||
<input type="hidden" name="SaveArt" value="true" />
|
||||
|
||||
|
||||
|
||||
<?php $_smarty_tpl->_assignInScope('additionalTitle', '');
|
||||
?>
|
||||
|
||||
<div <?php if ($_smarty_tpl->tpl_vars['objModule']->value->Getid() != 3) {?>style="display: none;"<?php }?>>
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>"Zajawka"));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Zajawka"), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
|
||||
<div class="articlePreviewRight">
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['obj']->value)) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('shortnote', $_smarty_tpl->tpl_vars['obj']->value->GetShortnote());
|
||||
?>
|
||||
<?php } else { ?>
|
||||
<?php $_smarty_tpl->_assignInScope('shortnote', '');
|
||||
?>
|
||||
<?php }?>
|
||||
<?php echo smarty_function_insertCkEditor(array('width'=>'399','height'=>'159','name'=>'shortnote','toolbar'=>'Basic','value'=>$_smarty_tpl->tpl_vars['shortnote']->value),$_smarty_tpl);?>
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['shortnote'])) {?><div style="color: red;" id="actionError"><?php echo $_smarty_tpl->tpl_vars['error']->value['shortnote'];?>
|
||||
</div><?php }?>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Zajawka"), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
</div>
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>"Treść"));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Treść"), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<div class="center">
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['obj']->value)) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('description', $_smarty_tpl->tpl_vars['obj']->value->GetDescription());
|
||||
?>
|
||||
<?php } else { ?>
|
||||
<?php $_smarty_tpl->_assignInScope('description', '');
|
||||
?>
|
||||
<?php }?>
|
||||
<?php echo smarty_function_insertCkEditor(array('width'=>'620','height'=>'380','name'=>'description','toolbar'=>'Formix','value'=>$_smarty_tpl->tpl_vars['description']->value),$_smarty_tpl);?>
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['description'])) {?><div style="color: red;" id="actionError"><?php echo $_smarty_tpl->tpl_vars['error']->value['description'];?>
|
||||
</div><?php }?>
|
||||
</div>
|
||||
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Treść"), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,113 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 22:32:59
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/HomeSite/ArticleBox.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65bebf1bc4ad04_98293590',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'57a5c2f194518629184ea1db04432886789382b3' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/HomeSite/ArticleBox.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65bebf1bc4ad04_98293590 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_block_dropDownContainer')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/block.dropDownContainer.php';
|
||||
if (!is_callable('smarty_modifier_translateAdmin')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/modifier.translateAdmin.php';
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.url.php';
|
||||
?>
|
||||
|
||||
<?php echo '<script'; ?>
|
||||
language="javascript" type="text/javascript">
|
||||
urlStatic = '<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
';
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>"Treść strona główna"));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Treść strona główna"), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<table width="100%" class="datagrid" cellpadding="4" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<th>id</th>
|
||||
<th>nazwa</th>
|
||||
<th>Kolejność</th>
|
||||
<th>Publikacja</th>
|
||||
|
||||
<th style="width: 40px; text-align: center;" >
|
||||
<a class="optionIcon iconAdd" title="<?php echo smarty_modifier_translateAdmin('Add');?>
|
||||
" href="<?php echo smarty_function_url(array('HomeSite'=>'EditArticle'),$_smarty_tpl);?>
|
||||
"> </a>
|
||||
|
||||
|
||||
</th>
|
||||
</tr>
|
||||
|
||||
<?php $_smarty_tpl->_assignInScope('x', 1);
|
||||
?>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['arrayObj']->value, 'obj', false, NULL, 'obj', array (
|
||||
));
|
||||
if ($_from !== null) {
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['obj']->value) {
|
||||
?>
|
||||
<tr <?php if ($_smarty_tpl->tpl_vars['x']->value == 1) {
|
||||
$_smarty_tpl->_assignInScope('x', 0);
|
||||
} else {
|
||||
$_smarty_tpl->_assignInScope('x', 1);
|
||||
?>class="even"<?php }?>>
|
||||
<td><?php echo $_smarty_tpl->tpl_vars['obj']->value->GetId();?>
|
||||
</td>
|
||||
<td><?php echo $_smarty_tpl->tpl_vars['obj']->value->GetName();?>
|
||||
</td>
|
||||
<td><?php echo $_smarty_tpl->tpl_vars['obj']->value->GetWeight();?>
|
||||
</td>
|
||||
<td><a id="publicationIcon_homeArt_<?php echo $_smarty_tpl->tpl_vars['obj']->value->GetId();?>
|
||||
" class="optionIcon <?php if ($_smarty_tpl->tpl_vars['obj']->value->GetPublication() == 1) {?>iconPublishOn<?php } else { ?>iconPublishOff<?php }?>" title="<?php if ($_smarty_tpl->tpl_vars['obj']->value->GetPublication() == 1) {?>Niepublikuj<?php } else { ?>Publikuj<?php }?>" href="#" onclick="PublishItem('<?php echo smarty_function_url(array('HomeSite'=>'AjaxPublishArticleBox'),$_smarty_tpl);?>
|
||||
',<?php echo $_smarty_tpl->tpl_vars['obj']->value->GetId();?>
|
||||
,'publicationIcon_homeArt_<?php echo $_smarty_tpl->tpl_vars['obj']->value->GetId();?>
|
||||
'); return false;"> </a></td>
|
||||
|
||||
<td style="text-align: center;">
|
||||
<a class="optionIcon iconEdit" title="Edytuj" href="<?php echo smarty_function_url(array('HomeSite'=>'EditArticle','id'=>$_smarty_tpl->tpl_vars['obj']->value->GetId()),$_smarty_tpl);?>
|
||||
"> </a>
|
||||
<?php if ($_smarty_tpl->tpl_vars['admin']->value->GetRole() != 'moderator') {?>
|
||||
<a class="optionIcon iconDelete" title="Usuń" href="<?php echo smarty_function_url(array('HomeSite'=>'DeleteArticleBox','id'=>$_smarty_tpl->tpl_vars['obj']->value->GetId()),$_smarty_tpl);?>
|
||||
" onclick="if (ConfirmAction('Czy napewno usunęć ten element?', '<?php echo smarty_function_url(array('HomeSite'=>'DeleteArticleBox','id'=>$_smarty_tpl->tpl_vars['obj']->value->GetId()),$_smarty_tpl);?>
|
||||
')) { } else {return false;}"> </a>
|
||||
<?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Treść strona główna"), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-01-01 23:01:47
|
||||
from "/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_6593364b566707_62377431',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'80fd949999c64e3e2e458a0fbe75cf6fcf3cb4d0' =>
|
||||
array (
|
||||
0 => '/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_6593364b566707_62377431 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 22:38:39
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65bec06f09bb25_55852884',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'a35e3aeadb44a557082df37c03a55aff134009f8' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65bec06f09bb25_55852884 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2023-06-29 09:39:25
|
||||
from "/home/www/polonia/Admin/template/partial/Shared/StructureModern.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_649d352dceced2_59188815',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'9be830a35d1f4d1799b28c55d4b44808f5661f3a' =>
|
||||
array (
|
||||
0 => '/home/www/polonia/Admin/template/partial/Shared/StructureModern.tpl',
|
||||
1 => 1661849425,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_649d352dceced2_59188815 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/www/polonia/core/plugins/Smarty/function.url.php';
|
||||
?>
|
||||
|
||||
|
||||
<div class="floatLeft mainFrameTree structureTree">
|
||||
|
||||
|
||||
<ul id="dhtmlgoodies_tree2" class="dhtmlgoodies_tree">
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Menu top</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>" title="Edytuj" ><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSubSub']->value->GetHaveChildren()) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('arraySubSubSub', $_smarty_tpl->tpl_vars['objElementSubSub']->value->arrayChildren);
|
||||
?>
|
||||
<ul>
|
||||
<?php
|
||||
$__section_customer_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_customer']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer'] : false;
|
||||
$__section_customer_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['arraySubSubSub']->value) ? count($_loop) : max(0, (int) $_loop));
|
||||
$__section_customer_0_total = $__section_customer_0_loop;
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = new Smarty_Variable(array());
|
||||
if ($__section_customer_0_total != 0) {
|
||||
for ($__section_customer_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] = 0; $__section_customer_0_iteration <= $__section_customer_0_total; $__section_customer_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']++){
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
if ($__section_customer_0_saved) {
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = $__section_customer_0_saved;
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Pozostałe</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
|
||||
<?php echo '<script'; ?>
|
||||
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 = '<?php echo $_smarty_tpl->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 = '<?php echo smarty_function_url(array('Structure'=>'UpdateTree'),$_smarty_tpl);?>
|
||||
';
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 22:36:16
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/clean.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65bebfe036aa57_34263546',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'5a76496b039735c2442b8d6b65faf9eb8188984a' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/clean.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65bebfe036aa57_34263546 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
echo $_smarty_tpl->tpl_vars['content']->value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2023-06-28 18:18:07
|
||||
from "/home/www/polonia/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_649c5d3f1bfb34_39530406',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'2f2e65f2a04aa40bd3f207dd4e292d90634463fb' =>
|
||||
array (
|
||||
0 => '/home/www/polonia/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1661849425,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_649c5d3f1bfb34_39530406 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-05 10:59:24
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65c0bf8c26f236_47480442',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'a35e3aeadb44a557082df37c03a55aff134009f8' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65c0bf8c26f236_47480442 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 21:22:53
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65beaeade14eb2_61817180',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'a35e3aeadb44a557082df37c03a55aff134009f8' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65beaeade14eb2_61817180 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-05 15:07:11
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65c0f99fd21080_95972328',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'a35e3aeadb44a557082df37c03a55aff134009f8' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65c0f99fd21080_95972328 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2023-06-28 18:10:10
|
||||
from "/home/www/polonia/Admin/template/partial/Image/EditStructure.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_649c5b62ed46b5_25455519',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'1261587ff73baa23cc07285019e0bed579b6ff32' =>
|
||||
array (
|
||||
0 => '/home/www/polonia/Admin/template/partial/Image/EditStructure.tpl',
|
||||
1 => 1664820901,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_649c5b62ed46b5_25455519 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_block_dropDownContainer')) require_once '/home/www/polonia/core/plugins/Smarty/block.dropDownContainer.php';
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/www/polonia/core/plugins/Smarty/function.url.php';
|
||||
?>
|
||||
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>(($tmp = @$_smarty_tpl->tpl_vars['moduleName']->value)===null||$tmp==='' ? "Lista" : $tmp),'icon'=>$_smarty_tpl->tpl_vars['moduleBoxConfg']->value['files'],'moduleBoxId'=>$_smarty_tpl->tpl_vars['moduleBoxId']->value,'publish'=>$_smarty_tpl->tpl_vars['param']->value['modulePublication']));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>(($tmp = @$_smarty_tpl->tpl_vars['moduleName']->value)===null||$tmp==='' ? "Lista" : $tmp),'icon'=>$_smarty_tpl->tpl_vars['moduleBoxConfg']->value['files'],'moduleBoxId'=>$_smarty_tpl->tpl_vars['moduleBoxId']->value,'publish'=>$_smarty_tpl->tpl_vars['param']->value['modulePublication']), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<iframe name="PhotoUpload" id="PhotoUpload" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" height="70" width="625" src="<?php echo smarty_function_url(array('Image'=>'Form'),$_smarty_tpl);?>
|
||||
">
|
||||
<noscript>
|
||||
Do wyświetlenia konieczne jest działanie ramek (iframe).
|
||||
</noscript>
|
||||
</iframe>
|
||||
|
||||
<br />
|
||||
<form action="<?php echo smarty_function_url(array('Image'=>'SortImage'),$_smarty_tpl);?>
|
||||
" method="post" enctype="multipart/form-data" >
|
||||
<div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['arrayImage']->value, 'image', false, 'key', 'photo', array (
|
||||
));
|
||||
if ($_from !== null) {
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['image']->value) {
|
||||
?>
|
||||
<div id="image_<?php echo $_smarty_tpl->tpl_vars['image']->value->GetId();?>
|
||||
" style="float:left; border:1px solid #000000; margin-right:5px; margin-bottom: 5px; position: relative;">
|
||||
<img src="<?php echo $_smarty_tpl->tpl_vars['image']->value->GetFullUrlMiniId($_smarty_tpl->tpl_vars['idArticleStructureMain']->value);?>
|
||||
" alt="test" style="margin-bottom: 5px" />
|
||||
<br />
|
||||
<div style="position: absolute;bottom: 10px ;right: 2px; background: rgba(72, 137, 174, .7);">Kolejność <input name="image_sort[<?php echo $_smarty_tpl->tpl_vars['image']->value->GetId();?>
|
||||
]" size="3" value="<?php echo $_smarty_tpl->tpl_vars['image']->value->getWeight();?>
|
||||
" style="width: 25px;" /></div>
|
||||
<div style="position: absolute;top: 0;right: 2px;"><a class="optionIcon iconDelete" onclick="DeletePhoto('<?php echo smarty_function_url(array('Image'=>'DeleteImage'),$_smarty_tpl);?>
|
||||
', '<?php echo $_smarty_tpl->tpl_vars['image']->value->GetId();?>
|
||||
'); return false;"> </a></div>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div name="PhotoDisplay" id="PhotoDisplay" class="PhotoDisplay">
|
||||
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>(($tmp = @$_smarty_tpl->tpl_vars['moduleName']->value)===null||$tmp==='' ? "Lista" : $tmp),'icon'=>$_smarty_tpl->tpl_vars['moduleBoxConfg']->value['files'],'moduleBoxId'=>$_smarty_tpl->tpl_vars['moduleBoxId']->value,'publish'=>$_smarty_tpl->tpl_vars['param']->value['modulePublication']), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,150 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-05 10:58:54
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Dictionary/Index.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65c0bf6e2f1c24_11736637',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'66cd4ecbbab3b67057dff5b901754817e68867b7' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Dictionary/Index.tpl',
|
||||
1 => 1704798240,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65c0bf6e2f1c24_11736637 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_block_dropDownContainer')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/block.dropDownContainer.php';
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.url.php';
|
||||
if (!is_callable('smarty_function_insertPagination')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.insertPagination.php';
|
||||
?>
|
||||
<div class="panelRightTop"></div>
|
||||
<div class="panelRightBody">
|
||||
<div class="paddedContent">
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('isClose'=>false,'isHidden'=>false,'title'=>"Wyszukiwarka"));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('isClose'=>false,'isHidden'=>false,'title'=>"Wyszukiwarka"), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<form method="post" action="">
|
||||
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="frameTableForm tableContetntWhite">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Szukana Fraza:</td>
|
||||
<td class="left"><input name="search" id="search" onkeyup="GetTableContent('<?php echo smarty_function_url(array('Dictionary'=>'AjaxIndex'),$_smarty_tpl);?>
|
||||
', '#dictionaryTableContent', $('#search').val(), '#roleList');" /></td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('isClose'=>false,'isHidden'=>false,'title'=>"Wyszukiwarka"), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>"Słownik",'id'=>"dictionaryTableContent"));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Słownik",'id'=>"dictionaryTableContent"), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
|
||||
<table width="100%" class="datagrid" cellpadding="4" cellspacing="1">
|
||||
<tr>
|
||||
<th>klucz</th>
|
||||
<th>Wersja PL</th>
|
||||
<th>Wersja EN</th>
|
||||
|
||||
|
||||
|
||||
|
||||
<th width="60">
|
||||
|
||||
|
||||
</th>
|
||||
</tr>
|
||||
|
||||
<?php $_smarty_tpl->_assignInScope('x', 1);
|
||||
?>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['arrayObjDict']->value, 'objWord', false, NULL, 'word', array (
|
||||
'last' => true,
|
||||
'iteration' => true,
|
||||
'total' => true,
|
||||
));
|
||||
if ($_from !== null) {
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['objWord']->value) {
|
||||
$_smarty_tpl->tpl_vars['__smarty_foreach_word']->value['iteration']++;
|
||||
$_smarty_tpl->tpl_vars['__smarty_foreach_word']->value['last'] = $_smarty_tpl->tpl_vars['__smarty_foreach_word']->value['iteration'] == $_smarty_tpl->tpl_vars['__smarty_foreach_word']->value['total'];
|
||||
?>
|
||||
<tr <?php if ($_smarty_tpl->tpl_vars['x']->value == 1) {
|
||||
$_smarty_tpl->_assignInScope('x', 0);
|
||||
} else {
|
||||
$_smarty_tpl->_assignInScope('x', 1);
|
||||
?>class="even"<?php }?>>
|
||||
<td><?php echo $_smarty_tpl->tpl_vars['objWord']->value->GetKeyword();?>
|
||||
</td>
|
||||
<td><?php echo $_smarty_tpl->tpl_vars['objWord']->value->GetReplacement();?>
|
||||
</td>
|
||||
<td><?php echo $_smarty_tpl->tpl_vars['objWord']->value->GetReplacementEn();?>
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
<td style="text-align: center;">
|
||||
<a class="editItemTable" href="<?php echo smarty_function_url(array('Dictionary'=>'Edit','id'=>$_smarty_tpl->tpl_vars['objWord']->value->GetId()),$_smarty_tpl);?>
|
||||
" title="Edytuj" >Edytuj</a>
|
||||
<a class="deleteItemTable" href="<?php echo smarty_function_url(array('Dictionary'=>'Delete','id'=>$_smarty_tpl->tpl_vars['objWord']->value->GetId()),$_smarty_tpl);?>
|
||||
" title="Usuń" >Usuń</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php if ((isset($_smarty_tpl->tpl_vars['__smarty_foreach_word']->value['last']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_word']->value['last'] : null)) {?>
|
||||
<tr>
|
||||
<td colspan="10" align="center" >
|
||||
<div class="paging">
|
||||
<?php echo smarty_function_insertPagination(array(),$_smarty_tpl);?>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php
|
||||
}
|
||||
} else {
|
||||
?>
|
||||
|
||||
<?php if (!isset($_smarty_tpl->tpl_vars['searchString']->value) || $_smarty_tpl->tpl_vars['searchString']->value == '') {?>
|
||||
<tr>
|
||||
<td colspan="5" style="text-align: center;">Brak elementów</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</table>
|
||||
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Słownik",'id'=>"dictionaryTableContent"), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
</div><!-- /paddedContent -->
|
||||
</div><!-- /panelRightBody -->
|
||||
<div class="panelRightBottom"></div><?php }
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2022-11-23 08:24:10
|
||||
from "/home/www/polonia/Admin/template/partial/Shared/CustomerLink.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_637dca9a34f3d5_12393469',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'158001437e3e3d47154786e11bd1fe343e40551a' =>
|
||||
array (
|
||||
0 => '/home/www/polonia/Admin/template/partial/Shared/CustomerLink.tpl',
|
||||
1 => 1661849425,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_637dca9a34f3d5_12393469 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_block_dropDownContainer')) require_once '/home/www/polonia/core/plugins/Smarty/block.dropDownContainer.php';
|
||||
if (!is_callable('smarty_function_html_checkboxes')) require_once '/home/www/polonia/core/lib/Smarty3/plugins/function.html_checkboxes.php';
|
||||
$_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>"Klienci"));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Klienci"), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<?php echo smarty_function_html_checkboxes(array('name'=>'idCustomer','options'=>$_smarty_tpl->tpl_vars['arrayCustomer']->value,'selected'=>$_smarty_tpl->tpl_vars['arrayCustomerLink']->value,'separator'=>'<br />'),$_smarty_tpl);?>
|
||||
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Klienci"), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2023-06-29 11:48:22
|
||||
from "/home/www/polonia/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_649d53667c9667_47852521',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'2f2e65f2a04aa40bd3f207dd4e292d90634463fb' =>
|
||||
array (
|
||||
0 => '/home/www/polonia/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1661849425,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_649d53667c9667_47852521 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 21:23:07
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/Auth.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65beaebb1d2873_74514729',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'242a2219ac616a3e6844e81b4d39c64bf145f0e6' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/Auth.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65beaebb1d2873_74514729 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2022-11-23 08:24:10
|
||||
from "/home/www/polonia/Admin/template/partial/Shared/StructureModern.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_637dca9a140da1_16445081',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'9be830a35d1f4d1799b28c55d4b44808f5661f3a' =>
|
||||
array (
|
||||
0 => '/home/www/polonia/Admin/template/partial/Shared/StructureModern.tpl',
|
||||
1 => 1661849425,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_637dca9a140da1_16445081 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/www/polonia/core/plugins/Smarty/function.url.php';
|
||||
?>
|
||||
|
||||
|
||||
<div class="floatLeft mainFrameTree structureTree">
|
||||
|
||||
|
||||
<ul id="dhtmlgoodies_tree2" class="dhtmlgoodies_tree">
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Menu top</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>" title="Edytuj" ><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSubSub']->value->GetHaveChildren()) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('arraySubSubSub', $_smarty_tpl->tpl_vars['objElementSubSub']->value->arrayChildren);
|
||||
?>
|
||||
<ul>
|
||||
<?php
|
||||
$__section_customer_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_customer']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer'] : false;
|
||||
$__section_customer_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['arraySubSubSub']->value) ? count($_loop) : max(0, (int) $_loop));
|
||||
$__section_customer_0_total = $__section_customer_0_loop;
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = new Smarty_Variable(array());
|
||||
if ($__section_customer_0_total != 0) {
|
||||
for ($__section_customer_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] = 0; $__section_customer_0_iteration <= $__section_customer_0_total; $__section_customer_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']++){
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
if ($__section_customer_0_saved) {
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = $__section_customer_0_saved;
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Pozostałe</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
|
||||
<?php echo '<script'; ?>
|
||||
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 = '<?php echo $_smarty_tpl->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 = '<?php echo smarty_function_url(array('Structure'=>'UpdateTree'),$_smarty_tpl);?>
|
||||
';
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2022-11-23 08:18:20
|
||||
from "/home/www/polonia/Admin/template/partial/Image/EditStructure.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_637dc93cf10235_27610789',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'1261587ff73baa23cc07285019e0bed579b6ff32' =>
|
||||
array (
|
||||
0 => '/home/www/polonia/Admin/template/partial/Image/EditStructure.tpl',
|
||||
1 => 1664820901,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_637dc93cf10235_27610789 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_block_dropDownContainer')) require_once '/home/www/polonia/core/plugins/Smarty/block.dropDownContainer.php';
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/www/polonia/core/plugins/Smarty/function.url.php';
|
||||
?>
|
||||
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>(($tmp = @$_smarty_tpl->tpl_vars['moduleName']->value)===null||$tmp==='' ? "Lista" : $tmp),'icon'=>$_smarty_tpl->tpl_vars['moduleBoxConfg']->value['files'],'moduleBoxId'=>$_smarty_tpl->tpl_vars['moduleBoxId']->value,'publish'=>$_smarty_tpl->tpl_vars['param']->value['modulePublication']));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>(($tmp = @$_smarty_tpl->tpl_vars['moduleName']->value)===null||$tmp==='' ? "Lista" : $tmp),'icon'=>$_smarty_tpl->tpl_vars['moduleBoxConfg']->value['files'],'moduleBoxId'=>$_smarty_tpl->tpl_vars['moduleBoxId']->value,'publish'=>$_smarty_tpl->tpl_vars['param']->value['modulePublication']), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<iframe name="PhotoUpload" id="PhotoUpload" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" height="70" width="625" src="<?php echo smarty_function_url(array('Image'=>'Form'),$_smarty_tpl);?>
|
||||
">
|
||||
<noscript>
|
||||
Do wyświetlenia konieczne jest działanie ramek (iframe).
|
||||
</noscript>
|
||||
</iframe>
|
||||
|
||||
<br />
|
||||
<form action="<?php echo smarty_function_url(array('Image'=>'SortImage'),$_smarty_tpl);?>
|
||||
" method="post" enctype="multipart/form-data" >
|
||||
<div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['arrayImage']->value, 'image', false, 'key', 'photo', array (
|
||||
));
|
||||
if ($_from !== null) {
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['image']->value) {
|
||||
?>
|
||||
<div id="image_<?php echo $_smarty_tpl->tpl_vars['image']->value->GetId();?>
|
||||
" style="float:left; border:1px solid #000000; margin-right:5px; margin-bottom: 5px; position: relative;">
|
||||
<img src="<?php echo $_smarty_tpl->tpl_vars['image']->value->GetFullUrlMiniId($_smarty_tpl->tpl_vars['idArticleStructureMain']->value);?>
|
||||
" alt="test" style="margin-bottom: 5px" />
|
||||
<br />
|
||||
<div style="position: absolute;bottom: 10px ;right: 2px; background: rgba(72, 137, 174, .7);">Kolejność <input name="image_sort[<?php echo $_smarty_tpl->tpl_vars['image']->value->GetId();?>
|
||||
]" size="3" value="<?php echo $_smarty_tpl->tpl_vars['image']->value->getWeight();?>
|
||||
" style="width: 25px;" /></div>
|
||||
<div style="position: absolute;top: 0;right: 2px;"><a class="optionIcon iconDelete" onclick="DeletePhoto('<?php echo smarty_function_url(array('Image'=>'DeleteImage'),$_smarty_tpl);?>
|
||||
', '<?php echo $_smarty_tpl->tpl_vars['image']->value->GetId();?>
|
||||
'); return false;"> </a></div>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div name="PhotoDisplay" id="PhotoDisplay" class="PhotoDisplay">
|
||||
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>(($tmp = @$_smarty_tpl->tpl_vars['moduleName']->value)===null||$tmp==='' ? "Lista" : $tmp),'icon'=>$_smarty_tpl->tpl_vars['moduleBoxConfg']->value['files'],'moduleBoxId'=>$_smarty_tpl->tpl_vars['moduleBoxId']->value,'publish'=>$_smarty_tpl->tpl_vars['param']->value['modulePublication']), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 22:38:38
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65bec06ede0d25_58139927',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'a35e3aeadb44a557082df37c03a55aff134009f8' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65bec06ede0d25_58139927 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 21:24:33
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/StructureModern.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65beaf11e12dd2_40030339',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'90fa227e4e3779401bb59ecdd0a39738a69a500f' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/StructureModern.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65beaf11e12dd2_40030339 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.url.php';
|
||||
?>
|
||||
|
||||
|
||||
<div class="floatLeft mainFrameTree structureTree">
|
||||
|
||||
|
||||
<ul id="dhtmlgoodies_tree2" class="dhtmlgoodies_tree">
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Menu top</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>" title="Edytuj" ><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSubSub']->value->GetHaveChildren()) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('arraySubSubSub', $_smarty_tpl->tpl_vars['objElementSubSub']->value->arrayChildren);
|
||||
?>
|
||||
<ul>
|
||||
<?php
|
||||
$__section_customer_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_customer']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer'] : false;
|
||||
$__section_customer_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['arraySubSubSub']->value) ? count($_loop) : max(0, (int) $_loop));
|
||||
$__section_customer_0_total = $__section_customer_0_loop;
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = new Smarty_Variable(array());
|
||||
if ($__section_customer_0_total != 0) {
|
||||
for ($__section_customer_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] = 0; $__section_customer_0_iteration <= $__section_customer_0_total; $__section_customer_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']++){
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
if ($__section_customer_0_saved) {
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = $__section_customer_0_saved;
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Pozostałe</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
|
||||
<?php echo '<script'; ?>
|
||||
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 = '<?php echo $_smarty_tpl->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 = '<?php echo smarty_function_url(array('Structure'=>'UpdateTree'),$_smarty_tpl);?>
|
||||
';
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,160 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 22:36:16
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Image/Form.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65bebfe0366c80_72502836',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'728916d8769a3a9f1a542e5df60c2a16353b7dd5' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Image/Form.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65bebfe0366c80_72502836 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.url.php';
|
||||
?>
|
||||
<!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="<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
/css/Admin/styleUP.css" />
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Language" content="pl" />
|
||||
|
||||
<?php echo '<script'; ?>
|
||||
src="<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
/script/jQuery/jquery-1.4.2.js" type="text/javascript" charset="utf-8"><?php echo '</script'; ?>
|
||||
>
|
||||
<?php echo '<script'; ?>
|
||||
src="<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
/script/ajaxupload.3.5.js" type="text/javascript" charset="utf-8"><?php echo '</script'; ?>
|
||||
>
|
||||
<style>
|
||||
body {
|
||||
font-family: 'Montserrat', sans-serif; font-size:12px; color:#f7f7f7; margin:10px;
|
||||
}
|
||||
|
||||
a {
|
||||
color:#4182AB;
|
||||
text-decoration:none;
|
||||
}
|
||||
.optionIcon {
|
||||
margin: 4px auto;
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
border-radius: 20%;
|
||||
display: inline-block;
|
||||
justify-content: center;
|
||||
align-items: flex-end;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
.iconAdd {
|
||||
background: url('<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
/images/black_plus.svg') no-repeat left 3px top 3px;
|
||||
background-size: 19px 19px;
|
||||
background-color: #fff;
|
||||
|
||||
}
|
||||
.iconAdd:hover {
|
||||
background: url('<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
/images/white_plus.svg') no-repeat left 3px top 3px;
|
||||
background-size: 19px 19px;
|
||||
background-color: #3abe16;
|
||||
color: #fff;
|
||||
/*border-bottom: 3px solid #3abe16;*/
|
||||
}
|
||||
|
||||
.addItemMenu {
|
||||
color: #3abe16;
|
||||
line-height: 25px;
|
||||
display: inline-block;
|
||||
padding-left: 24px;
|
||||
padding-right: 6px;
|
||||
background: url('<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
/images/white_plus.svg') no-repeat left 3px top 4px;
|
||||
background-color: #3e3e3e;
|
||||
background-size: 18px 18px;
|
||||
border-bottom: 3px solid #3abe16;
|
||||
cursor: pointer;
|
||||
}
|
||||
.addItemMenu:hover {
|
||||
background-color: #3abe16;
|
||||
color: #fff;
|
||||
border-bottom: 3px solid #3abe16;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
<?php echo '<script'; ?>
|
||||
language="javascript" type="text/javascript">
|
||||
urlStatic = '<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
';
|
||||
urlActionUpload = '<?php echo smarty_function_url(array('Image'=>'Upload'),$_smarty_tpl);?>
|
||||
';
|
||||
|
||||
$(function(){
|
||||
var btnUpload=$('#upload');
|
||||
var status=$('#status');
|
||||
new AjaxUpload(btnUpload, {
|
||||
action: urlActionUpload,
|
||||
name: 'uploadfile',
|
||||
onSubmit: function(file, ext){
|
||||
if (! (ext && /^(jpg|png|jpeg|gif|zip)$/.test(ext))){
|
||||
// extension is not allowed
|
||||
status.text('tylko JPG, PNG oraz GIF lub zip');
|
||||
return false;
|
||||
}
|
||||
//alert(urlActionUpload);
|
||||
status.text('Uploading...');
|
||||
},
|
||||
onComplete: function(file, response){
|
||||
//On completion clear the status
|
||||
status.text('');
|
||||
//Add uploaded file to list
|
||||
//alert(response);
|
||||
|
||||
$('#PhotoDisplay', window.parent.document).html(response);
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Upload Button, use any id you wish-->
|
||||
|
||||
<a id="upload" class="addItemMenu" href="#" title="Dodaj zdjęcia">Dodaj zdjęcia</a>
|
||||
<span id="status" ></span>
|
||||
<ul id="files" ></ul>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 22:32:59
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65bebf1bc0d3f1_35508837',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'a35e3aeadb44a557082df37c03a55aff134009f8' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65bebf1bc0d3f1_35508837 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2023-12-28 21:20:33
|
||||
from "/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_658dd891434048_90617551',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'80fd949999c64e3e2e458a0fbe75cf6fcf3cb4d0' =>
|
||||
array (
|
||||
0 => '/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_658dd891434048_90617551 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 21:23:07
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/User/Index.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65beaebb2165e5_85152918',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'76be3e0eb2ae08e7c13a83f673bfbf997a7fedbd' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/User/Index.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65beaebb2165e5_85152918 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_block_dropDownContainer')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/block.dropDownContainer.php';
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.url.php';
|
||||
?>
|
||||
<div class="panelRightTop"></div>
|
||||
<div class="panelRightBody">
|
||||
<div class="paddedContent">
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('isClose'=>true,'isHidden'=>true,'title'=>"Wyszukiwarka"));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('isClose'=>true,'isHidden'=>true,'title'=>"Wyszukiwarka"), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<form method="post" action="">
|
||||
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="frameTableForm tableContetntWhite">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Szukana Fraza:</td>
|
||||
<td class="left"><input class="input420" type="text" class="searchString" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="right">
|
||||
<input class="button" type="submit" value="Wyszukaj"/> <input class="button" name="clear" type="submit" value="Wyczyść" />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('isClose'=>true,'isHidden'=>true,'title'=>"Wyszukiwarka"), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>"Słownik"));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Słownik"), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<table class="datagrid" cellpadding="4" cellspacing="1" border="0">
|
||||
<thead>
|
||||
<tr >
|
||||
<th align="left">Login</th>
|
||||
<th>Nazwisko</th>
|
||||
<th>email</th>
|
||||
<th>Rola</th>
|
||||
<th>Ostatnio zalogowany</th>
|
||||
<th class="light" style="width: 40px; text-align: center;"><a class="optionIcon iconAdd" title="Dodaj" href="<?php echo smarty_function_url(array('User'=>'add'),$_smarty_tpl);?>
|
||||
"> </a></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['userList']->value, 'item', false, 'j', 'main_items', array (
|
||||
));
|
||||
if ($_from !== null) {
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['j']->value => $_smarty_tpl->tpl_vars['item']->value) {
|
||||
?>
|
||||
<tr <?php if (!(1 & $_smarty_tpl->tpl_vars['j']->value)) {?>class="even"<?php }?>>
|
||||
<td>
|
||||
<b><?php echo $_smarty_tpl->tpl_vars['item']->value->GetLogin();?>
|
||||
</b></td>
|
||||
<td align="center"> <?php echo $_smarty_tpl->tpl_vars['item']->value->GetName();?>
|
||||
</td>
|
||||
<td align="center"> <?php echo $_smarty_tpl->tpl_vars['item']->value->GetEmail();?>
|
||||
</td>
|
||||
<td align="center"> <?php echo $_smarty_tpl->tpl_vars['item']->value->GetRole();?>
|
||||
</td>
|
||||
<td align="center"> <?php echo $_smarty_tpl->tpl_vars['item']->value->GetLastLogin();?>
|
||||
</td>
|
||||
<td align="center"> <a class="editItemTable" href="<?php echo smarty_function_url(array('User'=>'edit','id'=>$_smarty_tpl->tpl_vars['item']->value->GetId()),$_smarty_tpl);?>
|
||||
">edycja</a>
|
||||
<a class="deleteItemTable" href="<?php echo smarty_function_url(array('user'=>'delete','id'=>$_smarty_tpl->tpl_vars['item']->value->GetId(),'ok'=>1),$_smarty_tpl);?>
|
||||
" onclick="if(confirm('Czy napewno usunąć tego użytkownika?')){return true;}else{return false;}">usuń</a> </td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Słownik"), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
</div><!-- /paddedContent -->
|
||||
</div><!-- /panelRightBody -->
|
||||
<div class="panelRightBottom"></div><?php }
|
||||
}
|
||||
@@ -0,0 +1,341 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 21:24:35
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Structure/ModernEdit.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65beaf13f13795_42149812',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'790cc5e60caef3f5d725163718f23ba496e015ee' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Structure/ModernEdit.tpl',
|
||||
1 => 1705956124,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65beaf13f13795_42149812 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.url.php';
|
||||
if (!is_callable('smarty_block_dropDownContainer')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/block.dropDownContainer.php';
|
||||
if (!is_callable('smarty_function_formField')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.formField.php';
|
||||
if (!is_callable('smarty_function_html_options')) require_once '/home/zurawikn/public_html/zurawik_aem/core/lib/Smarty3/plugins/function.html_options.php';
|
||||
?>
|
||||
<h1>Edytuj element</h1>
|
||||
<form action="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" id="sendForm" method="post" enctype="multipart/form-data" >
|
||||
<div class="panelRightBody">
|
||||
<div class="paddedContent">
|
||||
<input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" />
|
||||
<input type="hidden" name="idRouter" value="<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetIdRouter();?>
|
||||
" />
|
||||
<input type="hidden" name="sort" value="<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetSort();?>
|
||||
" />
|
||||
<input type="hidden" name="idParent" value="<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetIdParent();?>
|
||||
" />
|
||||
<input type="hidden" name="idMain" value="<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetIdMain();?>
|
||||
" />
|
||||
<input type="hidden" name="location" value="<?php echo $_smarty_tpl->tpl_vars['location']->value;?>
|
||||
" />
|
||||
<input type="hidden" name="type" value="1" />
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>'Ogólne'));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>'Ogólne'), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<table class="commonTable" cellpadding="5" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td>Nazwa elementu:</td>
|
||||
<td class="left"><?php echo smarty_function_formField(array('name'=>'elementName','class'=>'inputWidth141 input100percent','errorClass'=>'validate','type'=>'text','obj'=>'objElement','func'=>'GetElementName'),$_smarty_tpl);?>
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['elementName'])) {?><div style="color: red;" id="actionError" class="validate"><?php echo $_smarty_tpl->tpl_vars['error']->value['elementName'];?>
|
||||
</div><?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Tytuł strony:</td>
|
||||
<td class="left"><?php echo smarty_function_formField(array('name'=>'title','class'=>'inputWidth141 input100percent','errorClass'=>'validate','type'=>'text','obj'=>'objElement','func'=>'GetName'),$_smarty_tpl);?>
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['title'])) {?><div style="color: red;" id="actionError" class="validate"><?php echo $_smarty_tpl->tpl_vars['error']->value['title'];?>
|
||||
</div><?php }?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Subtytuł strony:</td>
|
||||
<td class="left"><?php echo smarty_function_formField(array('name'=>'subname','class'=>'inputWidth141 input100percent','errorClass'=>'validate','type'=>'text','obj'=>'objElement','func'=>'GetSubname'),$_smarty_tpl);?>
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['subname'])) {?><div style="color: red;" id="actionError" class="validate"><?php echo $_smarty_tpl->tpl_vars['error']->value['subname'];?>
|
||||
</div><?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>Typ:</td>
|
||||
<td class="left">
|
||||
<input type="hidden" name="type" value="1" />
|
||||
<select name="type">
|
||||
<option value="1" <?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetType() == '1') {?>selected<?php }?>>
|
||||
Menu Top
|
||||
</option>
|
||||
|
||||
<option value="2" <?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetType() == '2') {?>selected<?php }?>>
|
||||
Pozostałe
|
||||
</option>
|
||||
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['lang']->value != '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>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['arrayStructurePl']->value, 'structureName', false, 'idStructurePl');
|
||||
if ($_from !== null) {
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['idStructurePl']->value => $_smarty_tpl->tpl_vars['structureName']->value) {
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->tpl_vars['idStructurePl']->value;?>
|
||||
" <?php if ($_smarty_tpl->tpl_vars['slectedLang']->value == $_smarty_tpl->tpl_vars['idStructurePl']->value) {?> selected<?php }?> >
|
||||
<?php echo $_smarty_tpl->tpl_vars['structureName']->value;?>
|
||||
|
||||
</option>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<tr>
|
||||
<td style="width:30%">Publikuj:</td>
|
||||
<td>
|
||||
<input class="input" type="checkbox" name="publication" id="publication" value="1" <?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>checked<?php }?> />
|
||||
</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" <?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetPublicationMenu()) {?>checked<?php }?> />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>'Ogólne'), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>'Właściwości (SEO)','isClose'=>true));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>'Właściwości (SEO)','isClose'=>true), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<?php $_smarty_tpl->_assignInScope('metaTagDescriptionObj', $_smarty_tpl->tpl_vars['objMetaTag']->value->GetDescriptionObj());
|
||||
?>
|
||||
|
||||
<table class="commonTable" cellpadding="5" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td>Url</td>
|
||||
<td>
|
||||
<input class="input" type="text" name="url" id="url" size="60" value="<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetUrl();?>
|
||||
" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Tytuł w menu:<br /></td>
|
||||
<td class="left"><input class="input420" type="text" name="menuName" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['objElement']->value->GetMenuName(), ENT_QUOTES, 'ISO-8859-1', true);?>
|
||||
" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>META Description:<br /></td>
|
||||
<td class="left"><textarea name="meta_description" cols="77"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['metaTagDescriptionObj']->value->GetDescription(), ENT_QUOTES, 'ISO-8859-1', true);?>
|
||||
</textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>META Keywords:<br /></td>
|
||||
<td class="left"><input class="input420" type="text" name="meta_keywords" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['metaTagDescriptionObj']->value->GetKeywords(), ENT_QUOTES, 'ISO-8859-1', true);?>
|
||||
" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Skrypt statystyk*:<br /></td>
|
||||
<td class="left"><textarea name="statistic" cols="77"><?php echo $_smarty_tpl->tpl_vars['metaTagDescriptionObj']->value->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>
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>'Właściwości (SEO)','isClose'=>true), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
|
||||
|
||||
<?php $_smarty_tpl->_assignInScope('EditImgList', true);
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('TitleImgList', 'Zdjecie na listy');
|
||||
?>
|
||||
<?php if ($_smarty_tpl->tpl_vars['objModule']->value->Getid() == 3 || $_smarty_tpl->tpl_vars['objModule']->value->Getid() == 4) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('EditImgList', false);
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('TitleImgList', 'Zdjecie na listy');
|
||||
?>
|
||||
<?php }?>
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>$_smarty_tpl->tpl_vars['TitleImgList']->value,'isClose'=>false,'isHidden'=>$_smarty_tpl->tpl_vars['EditImgList']->value));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>$_smarty_tpl->tpl_vars['TitleImgList']->value,'isClose'=>false,'isHidden'=>$_smarty_tpl->tpl_vars['EditImgList']->value), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<div class="floatLeft" style="margin-left: 10px;">
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetPicture()) {?><img src="<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetPictureUrl();?>
|
||||
" /><?php }?>
|
||||
</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>
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>$_smarty_tpl->tpl_vars['TitleImgList']->value,'isClose'=>false,'isHidden'=>$_smarty_tpl->tpl_vars['EditImgList']->value), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
|
||||
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['editStructure']->value)) {?>
|
||||
<?php echo $_smarty_tpl->tpl_vars['editStructure']->value;?>
|
||||
|
||||
<?php }?>
|
||||
<div id="addedModuleTop"></div>
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['addModuleSharedVariableArray']->value) && is_array($_smarty_tpl->tpl_vars['addModuleSharedVariableArray']->value)) {?>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['addModuleSharedVariableArray']->value, 'addModuleSharedVariable', false, 'keyModule');
|
||||
if ($_from !== null) {
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['keyModule']->value => $_smarty_tpl->tpl_vars['addModuleSharedVariable']->value) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('actionSetModuleItem', $_smarty_tpl->tpl_vars['actionSetModule']->value[$_smarty_tpl->tpl_vars['keyModule']->value]);
|
||||
?>
|
||||
<div class="moduleContainer" id="addedModule_<?php echo $_smarty_tpl->tpl_vars['keyModule']->value;?>
|
||||
">
|
||||
<?php $_smarty_tpl->_assignInScope('moduleBoxId', $_smarty_tpl->tpl_vars['actionSetModuleItem']->value['runSharedVariable']);
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('moduleName', $_smarty_tpl->tpl_vars['actionSetModuleItem']->value['moduleName']);
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('modulePublication', $_smarty_tpl->tpl_vars['actionSetModuleItem']->value['modulePublication']);
|
||||
?>
|
||||
<?php echo $_smarty_tpl->tpl_vars['addedModule_'.($_smarty_tpl->tpl_vars['keyModule']->value)]->value;?>
|
||||
|
||||
<input type="hidden" name="addModuleController[]" value="<?php echo $_smarty_tpl->tpl_vars['actionSetModuleItem']->value['moduleController'];?>
|
||||
" />
|
||||
<input type="hidden" name="addModuleMetodAdmin[]" value="<?php echo $_smarty_tpl->tpl_vars['actionSetModuleItem']->value['moduleMetodAdmin'];?>
|
||||
" />
|
||||
<input type="hidden" name="addModuleMetod[]" value="<?php echo $_smarty_tpl->tpl_vars['actionSetModuleItem']->value['moduleMetod'];?>
|
||||
" />
|
||||
<input type="hidden" name="addModuleId[]" value="<?php echo $_smarty_tpl->tpl_vars['actionSetModuleItem']->value['moduleId'];?>
|
||||
" />
|
||||
<input type="hidden" name="addModuleName[]" value="<?php echo $_smarty_tpl->tpl_vars['actionSetModuleItem']->value['moduleName'];?>
|
||||
" />
|
||||
<input type="hidden" name="addModuleCategoryId[]" value="<?php echo $_smarty_tpl->tpl_vars['actionSetModuleItem']->value['moduleCategoryId'];?>
|
||||
" />
|
||||
<input type="hidden" name="addModuleElementId[]" value="<?php echo $_smarty_tpl->tpl_vars['actionSetModuleItem']->value['moduleElementId'];?>
|
||||
" />
|
||||
<input type="hidden" name="addModuleDelete[]" value="" id="to_delete_addedModule_<?php echo $_smarty_tpl->tpl_vars['keyModule']->value;?>
|
||||
" />
|
||||
<input type="hidden" name="addModulePublication[]" value="<?php echo $_smarty_tpl->tpl_vars['modulePublication']->value;?>
|
||||
" id="publication_addedModule_<?php echo $_smarty_tpl->tpl_vars['keyModule']->value;?>
|
||||
" />
|
||||
<input type="hidden" name="addNewModule[]" value="0" />
|
||||
<div class="cb"></div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
<?php }?>
|
||||
<div id="addedModuleBottom"></div>
|
||||
<div class="addModuleContainer"></div>
|
||||
<div class="addModuleContainerTemp"></div>
|
||||
|
||||
<div class="cb"></div>
|
||||
<div class="left"><a class="addModule" title="Dodaj moduł do strony" onclick="$('#AddModule').show(); $('.addModule').hide();">Dodaj moduł </a></div>
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>'Moduł strony','idMain'=>'AddModule','isHidden'=>true));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>'Moduł strony','idMain'=>'AddModule','isHidden'=>true), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<table class="commonTable" cellpadding="5" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td>Wybierz rodzaj modułu:</td>
|
||||
<td class="left"><select name="idModuleAdd" id="idModule"
|
||||
onchange="GetModuleCategory(document.getElementById('idModule').value, '<?php echo smarty_function_url(array('structure'=>'AjaxGetModuleCategory'),$_smarty_tpl);?>
|
||||
');">
|
||||
<option value="0">Wybierz</option> <?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['arrayModuleName']->value),$_smarty_tpl);?>
|
||||
|
||||
</select> <a href=""></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id="categoryOptionsName"> </td>
|
||||
<td class="left" id="categoryOptions"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="cb"></div>
|
||||
<div class="panelButtons" style="text-align: left;">
|
||||
<input class="cancel mini" type="button" name="back" value="Anuluj" onclick="$('#AddModule').hide(); $('.addModule').show();" />
|
||||
<input class="dalej mini" id="dalejPopover" type="button" name="name" value="Dalej" style="display: none;" onclick="AddModule('<?php echo smarty_function_url(array('Structure'=>"AjaxAddModule"),$_smarty_tpl);?>
|
||||
', '.addModuleContainer', $('#idModule').val(), $('#moduleCategoryId').val(), true);"/>
|
||||
|
||||
</div>
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>'Moduł strony','idMain'=>'AddModule','isHidden'=>true), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<div class="panelButtons">
|
||||
<input type="button" class="cancel" value="Anuluj" name="" onclick="javascript:document.location.href = '<?php echo smarty_function_url(array('label'=>'current'),$_smarty_tpl);?>
|
||||
'"/>
|
||||
|
||||
<input type="submit" value="Zapisz" name="EditStructureForm"/>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2023-12-28 14:41:36
|
||||
from "/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_658d7b10a31659_10236259',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'80fd949999c64e3e2e458a0fbe75cf6fcf3cb4d0' =>
|
||||
array (
|
||||
0 => '/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_658d7b10a31659_10236259 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 22:36:16
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65bebfe0357a52_95540813',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'a35e3aeadb44a557082df37c03a55aff134009f8' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65bebfe0357a52_95540813 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-01-01 17:50:59
|
||||
from "/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_6592ed736aeb16_54985430',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'80fd949999c64e3e2e458a0fbe75cf6fcf3cb4d0' =>
|
||||
array (
|
||||
0 => '/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_6592ed736aeb16_54985430 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2023-12-28 20:37:00
|
||||
from "/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_658dce5c8bcf04_87234769',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'80fd949999c64e3e2e458a0fbe75cf6fcf3cb4d0' =>
|
||||
array (
|
||||
0 => '/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_658dce5c8bcf04_87234769 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2022-11-23 08:22:59
|
||||
from "/home/www/polonia/Admin/template/partial/Shared/StructureModern.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_637dca53a10b05_01855484',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'9be830a35d1f4d1799b28c55d4b44808f5661f3a' =>
|
||||
array (
|
||||
0 => '/home/www/polonia/Admin/template/partial/Shared/StructureModern.tpl',
|
||||
1 => 1661849425,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_637dca53a10b05_01855484 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/www/polonia/core/plugins/Smarty/function.url.php';
|
||||
?>
|
||||
|
||||
|
||||
<div class="floatLeft mainFrameTree structureTree">
|
||||
|
||||
|
||||
<ul id="dhtmlgoodies_tree2" class="dhtmlgoodies_tree">
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Menu top</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>" title="Edytuj" ><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSubSub']->value->GetHaveChildren()) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('arraySubSubSub', $_smarty_tpl->tpl_vars['objElementSubSub']->value->arrayChildren);
|
||||
?>
|
||||
<ul>
|
||||
<?php
|
||||
$__section_customer_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_customer']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer'] : false;
|
||||
$__section_customer_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['arraySubSubSub']->value) ? count($_loop) : max(0, (int) $_loop));
|
||||
$__section_customer_0_total = $__section_customer_0_loop;
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = new Smarty_Variable(array());
|
||||
if ($__section_customer_0_total != 0) {
|
||||
for ($__section_customer_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] = 0; $__section_customer_0_iteration <= $__section_customer_0_total; $__section_customer_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']++){
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
if ($__section_customer_0_saved) {
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = $__section_customer_0_saved;
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Pozostałe</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
|
||||
<?php echo '<script'; ?>
|
||||
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 = '<?php echo $_smarty_tpl->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 = '<?php echo smarty_function_url(array('Structure'=>'UpdateTree'),$_smarty_tpl);?>
|
||||
';
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-05 11:00:31
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65c0bfcf9a2707_51447213',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'a35e3aeadb44a557082df37c03a55aff134009f8' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65c0bfcf9a2707_51447213 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 22:36:11
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65bebfdbb0d564_75123245',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'a35e3aeadb44a557082df37c03a55aff134009f8' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65bebfdbb0d564_75123245 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2022-11-23 08:13:06
|
||||
from "/home/www/polonia/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_637dc802433d30_14975932',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'2f2e65f2a04aa40bd3f207dd4e292d90634463fb' =>
|
||||
array (
|
||||
0 => '/home/www/polonia/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1661849425,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_637dc802433d30_14975932 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 22:38:43
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/StructureModern.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65bec073d1f2e4_21553975',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'90fa227e4e3779401bb59ecdd0a39738a69a500f' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/StructureModern.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65bec073d1f2e4_21553975 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.url.php';
|
||||
?>
|
||||
|
||||
|
||||
<div class="floatLeft mainFrameTree structureTree">
|
||||
|
||||
|
||||
<ul id="dhtmlgoodies_tree2" class="dhtmlgoodies_tree">
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Menu top</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>" title="Edytuj" ><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSubSub']->value->GetHaveChildren()) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('arraySubSubSub', $_smarty_tpl->tpl_vars['objElementSubSub']->value->arrayChildren);
|
||||
?>
|
||||
<ul>
|
||||
<?php
|
||||
$__section_customer_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_customer']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer'] : false;
|
||||
$__section_customer_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['arraySubSubSub']->value) ? count($_loop) : max(0, (int) $_loop));
|
||||
$__section_customer_0_total = $__section_customer_0_loop;
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = new Smarty_Variable(array());
|
||||
if ($__section_customer_0_total != 0) {
|
||||
for ($__section_customer_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] = 0; $__section_customer_0_iteration <= $__section_customer_0_total; $__section_customer_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']++){
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
if ($__section_customer_0_saved) {
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = $__section_customer_0_saved;
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Pozostałe</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
|
||||
<?php echo '<script'; ?>
|
||||
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 = '<?php echo $_smarty_tpl->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 = '<?php echo smarty_function_url(array('Structure'=>'UpdateTree'),$_smarty_tpl);?>
|
||||
';
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2023-06-29 15:19:45
|
||||
from "/home/www/polonia/Admin/template/partial/Image/EditStructure.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_649d84f15a58a0_01969379',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'1261587ff73baa23cc07285019e0bed579b6ff32' =>
|
||||
array (
|
||||
0 => '/home/www/polonia/Admin/template/partial/Image/EditStructure.tpl',
|
||||
1 => 1664820901,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_649d84f15a58a0_01969379 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_block_dropDownContainer')) require_once '/home/www/polonia/core/plugins/Smarty/block.dropDownContainer.php';
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/www/polonia/core/plugins/Smarty/function.url.php';
|
||||
?>
|
||||
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>(($tmp = @$_smarty_tpl->tpl_vars['moduleName']->value)===null||$tmp==='' ? "Lista" : $tmp),'icon'=>$_smarty_tpl->tpl_vars['moduleBoxConfg']->value['files'],'moduleBoxId'=>$_smarty_tpl->tpl_vars['moduleBoxId']->value,'publish'=>$_smarty_tpl->tpl_vars['param']->value['modulePublication']));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>(($tmp = @$_smarty_tpl->tpl_vars['moduleName']->value)===null||$tmp==='' ? "Lista" : $tmp),'icon'=>$_smarty_tpl->tpl_vars['moduleBoxConfg']->value['files'],'moduleBoxId'=>$_smarty_tpl->tpl_vars['moduleBoxId']->value,'publish'=>$_smarty_tpl->tpl_vars['param']->value['modulePublication']), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<iframe name="PhotoUpload" id="PhotoUpload" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" height="70" width="625" src="<?php echo smarty_function_url(array('Image'=>'Form'),$_smarty_tpl);?>
|
||||
">
|
||||
<noscript>
|
||||
Do wyświetlenia konieczne jest działanie ramek (iframe).
|
||||
</noscript>
|
||||
</iframe>
|
||||
|
||||
<br />
|
||||
<form action="<?php echo smarty_function_url(array('Image'=>'SortImage'),$_smarty_tpl);?>
|
||||
" method="post" enctype="multipart/form-data" >
|
||||
<div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['arrayImage']->value, 'image', false, 'key', 'photo', array (
|
||||
));
|
||||
if ($_from !== null) {
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['image']->value) {
|
||||
?>
|
||||
<div id="image_<?php echo $_smarty_tpl->tpl_vars['image']->value->GetId();?>
|
||||
" style="float:left; border:1px solid #000000; margin-right:5px; margin-bottom: 5px; position: relative;">
|
||||
<img src="<?php echo $_smarty_tpl->tpl_vars['image']->value->GetFullUrlMiniId($_smarty_tpl->tpl_vars['idArticleStructureMain']->value);?>
|
||||
" alt="test" style="margin-bottom: 5px" />
|
||||
<br />
|
||||
<div style="position: absolute;bottom: 10px ;right: 2px; background: rgba(72, 137, 174, .7);">Kolejność <input name="image_sort[<?php echo $_smarty_tpl->tpl_vars['image']->value->GetId();?>
|
||||
]" size="3" value="<?php echo $_smarty_tpl->tpl_vars['image']->value->getWeight();?>
|
||||
" style="width: 25px;" /></div>
|
||||
<div style="position: absolute;top: 0;right: 2px;"><a class="optionIcon iconDelete" onclick="DeletePhoto('<?php echo smarty_function_url(array('Image'=>'DeleteImage'),$_smarty_tpl);?>
|
||||
', '<?php echo $_smarty_tpl->tpl_vars['image']->value->GetId();?>
|
||||
'); return false;"> </a></div>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div name="PhotoDisplay" id="PhotoDisplay" class="PhotoDisplay">
|
||||
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>(($tmp = @$_smarty_tpl->tpl_vars['moduleName']->value)===null||$tmp==='' ? "Lista" : $tmp),'icon'=>$_smarty_tpl->tpl_vars['moduleBoxConfg']->value['files'],'moduleBoxId'=>$_smarty_tpl->tpl_vars['moduleBoxId']->value,'publish'=>$_smarty_tpl->tpl_vars['param']->value['modulePublication']), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,252 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 21:22:54
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/index.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65beaeae0182d6_00092817',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'8d6bfe3d780dadeefa2b81c59eb6956b855792cd' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/index.tpl',
|
||||
1 => 1706001188,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65beaeae0182d6_00092817 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.url.php';
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<title><?php echo $_smarty_tpl->tpl_vars['pageTitle']->value;?>
|
||||
</title>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
/css/Admin/style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
/css/Admin/style2.css" />
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
/css/Admin/styleUP.css" />
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
/css/jquery-ui.css"/ >
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
/css/Admin/jquery-ui.theme.css"/ >
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
/css/jquery.datetimepicker.css"/ >
|
||||
<link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
/css/drag-drop-folder-tree.css" type="text/css"></link>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Language" content="pl" />
|
||||
<link rel="apple-touch-icon" sizes="57x57" href="<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
/image/Strona/favicon/apple-icon-57x57.png">
|
||||
<link rel="apple-touch-icon" sizes="60x60" href="<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
/image/Strona/favicon/apple-icon-60x60.png">
|
||||
<link rel="apple-touch-icon" sizes="72x72" href="<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
/image/Strona/favicon/apple-icon-72x72.png">
|
||||
<link rel="apple-touch-icon" sizes="76x76" href="<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
/image/Strona/favicon/apple-icon-76x76.png">
|
||||
<link rel="apple-touch-icon" sizes="114x114" href="<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
/image/Strona/favicon/apple-icon-114x114.png">
|
||||
<link rel="apple-touch-icon" sizes="120x120" href="<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
/image/Strona/favicon/apple-icon-120x120.png">
|
||||
<link rel="apple-touch-icon" sizes="144x144" href="<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
/image/Strona/favicon/apple-icon-144x144.png">
|
||||
<link rel="apple-touch-icon" sizes="152x152" href="<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
/image/Strona/favicon/apple-icon-152x152.png">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
/image/Strona/favicon/apple-icon-180x180.png">
|
||||
<link rel="icon" type="image/png" sizes="192x192" href="<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
/image/Strona/favicon/android-icon-192x192.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
/image/Strona/favicon/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="96x96" href="<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
/image/Strona/favicon/favicon-96x96.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
/image/Strona/favicon/favicon-16x16.png">
|
||||
<link rel="manifest" href="<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
/image/Strona/favicon/manifest.json">
|
||||
<meta name="msapplication-TileColor" content="#ffffff">
|
||||
<meta name="msapplication-TileImage" content="<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
/image/Strona/favicon/ms-icon-144x144.png">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
<?php
|
||||
$__section_s_2_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_s']) ? $_smarty_tpl->tpl_vars['__smarty_section_s'] : false;
|
||||
$__section_s_2_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['javaScript']->value) ? count($_loop) : max(0, (int) $_loop));
|
||||
$__section_s_2_total = $__section_s_2_loop;
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_s'] = new Smarty_Variable(array());
|
||||
if ($__section_s_2_total != 0) {
|
||||
for ($__section_s_2_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_s']->value['index'] = 0; $__section_s_2_iteration <= $__section_s_2_total; $__section_s_2_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_s']->value['index']++){
|
||||
?>
|
||||
<?php if ($_smarty_tpl->tpl_vars['javaScript']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_s']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_s']->value['index'] : null)]['file'] != '') {?>
|
||||
<?php echo '<script'; ?>
|
||||
src="<?php echo $_smarty_tpl->tpl_vars['javaScript']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_s']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_s']->value['index'] : null)]['file'];?>
|
||||
" type="text/javascript" charset="utf-8"><?php echo '</script'; ?>
|
||||
>
|
||||
<?php }?>
|
||||
<?php if ($_smarty_tpl->tpl_vars['javaScript']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_s']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_s']->value['index'] : null)]['code'] != '') {?>
|
||||
<?php echo '<script'; ?>
|
||||
type="text/javascript">
|
||||
<!-- <![CDATA[
|
||||
<?php echo $_smarty_tpl->tpl_vars['javaScript']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_s']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_s']->value['index'] : null)]['code'];?>
|
||||
|
||||
// ]]> -->
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
<?php }?>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
if ($__section_s_2_saved) {
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_s'] = $__section_s_2_saved;
|
||||
}
|
||||
?>
|
||||
<?php echo '<script'; ?>
|
||||
type="text/javascript">
|
||||
var LinkUrl = '<?php echo smarty_function_url(array('Structure'=>'link'),$_smarty_tpl);?>
|
||||
';
|
||||
|
||||
|
||||
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="dialog-message" class="none" title="Info"></div>
|
||||
<div id="dialog-confirm" class="none" title="Info"></div>
|
||||
<div class="titleHeader">
|
||||
<img src="<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
/image/Admin/aem-cms-white.png" alt="" title="" border="0"/>
|
||||
<div style="float: right; display: block;">
|
||||
<form action="<?php echo smarty_function_url(array('Structure'=>'ChangeLang'),$_smarty_tpl);?>
|
||||
" method="post">
|
||||
<select id="lang" name="lang" onchange="submit();">
|
||||
<option value="pl" <?php if ($_smarty_tpl->tpl_vars['lang']->value == 'pl') {?>selected<?php }?>>Polski</option>
|
||||
<option value="en" <?php if ($_smarty_tpl->tpl_vars['lang']->value == 'en') {?>selected<?php }?>>English</option>
|
||||
</select>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- TOP NAV -->
|
||||
<ul class="tabs">
|
||||
<li><a href="<?php echo smarty_function_url(array('structure'=>'index'),$_smarty_tpl);?>
|
||||
" class="<?php if ($_smarty_tpl->tpl_vars['titleAdmin']->value == 'Struktura strony' || $_smarty_tpl->tpl_vars['titleAdmin']->value == 'Pliki' || $_smarty_tpl->tpl_vars['titleAdmin']->value == 'Aktualności') {?>selected<?php }?>">Struktura</a></li>
|
||||
<li><a href="<?php echo smarty_function_url(array('HomeSite'=>'ArticleBox'),$_smarty_tpl);?>
|
||||
" class="<?php if ($_smarty_tpl->tpl_vars['titleAdmin']->value == 'Elementy Strony') {?>selected<?php }?>">Elementy Strony</a></li>
|
||||
|
||||
<li><a href="<?php echo smarty_function_url(array('Login'=>'logout'),$_smarty_tpl);?>
|
||||
" class="<?php if ($_smarty_tpl->tpl_vars['titleAdmin']->value == 'Logowanie') {?>selected<?php }?>">Wyloguj</a></li>
|
||||
</ul>
|
||||
<!-- END TOP NAV -->
|
||||
|
||||
<div class="cb"></div>
|
||||
<!-- MAIN FRAME -->
|
||||
<div class="mainContentFrame">
|
||||
<!-- SIDE MENU -->
|
||||
|
||||
<div class="sideMenuContainer">
|
||||
<!-- SIDE MENU OPTION -->
|
||||
|
||||
|
||||
|
||||
<!-- SIDE MENU OPTION -->
|
||||
<div class="sideMenu">
|
||||
<h2><?php echo $_smarty_tpl->tpl_vars['titleAdmin']->value;?>
|
||||
</h2>
|
||||
<div class="section">
|
||||
<div class="sideMenuIcons">
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['showIcon']->value) && $_smarty_tpl->tpl_vars['showIcon']->value == true) {?>
|
||||
<div class="overflow">
|
||||
<a class="addItemMenu" href="<?php echo smarty_function_url(array('Structure'=>'Add'),$_smarty_tpl);?>
|
||||
" title="Dodaj element">Dodaj element</a>
|
||||
<a class="deleteItemMenu" href="<?php echo smarty_function_url(array('structure'=>'delete'),$_smarty_tpl);?>
|
||||
" onclick="if (ConfirmAction('Czy napewno usunęć ten element?', '<?php echo smarty_function_url(array('structure'=>'delete'),$_smarty_tpl);?>
|
||||
')) { } else {return false;}" title="Usuń element">Usuń element</a>
|
||||
|
||||
|
||||
<?php if (!$_smarty_tpl->tpl_vars['idStucture']->value) {
|
||||
$_smarty_tpl->_assignInScope('idStucture', -1);
|
||||
}?>
|
||||
|
||||
|
||||
<div class="cb"></div>
|
||||
<div class="paddedContent"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="framePopver" id="stucturePopover" style="display: none; background: #ffffff;">
|
||||
<form action="<?php echo smarty_function_url(array('Structure'=>'Add'),$_smarty_tpl);?>
|
||||
" method="post" id="sendModule" enctype="multipart/form-data" >
|
||||
<div class="panelPopoverTop"><b>Utwórz stronę</b></div>
|
||||
<div class="panelPopoverContent">
|
||||
<div class="floatLeft frameLeftPopover">
|
||||
Podaj nazwę:
|
||||
</div>
|
||||
<input type="text" name="title" />
|
||||
</div>
|
||||
|
||||
<div class="panelPopoverContent">
|
||||
|
||||
<div class="floatLeft frameLeftPopover">
|
||||
Wybierz rodzaj strony:
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="panelPopoverBottom">
|
||||
|
||||
|
||||
<div class="cb"></div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<?php } else { ?>
|
||||
|
||||
|
||||
<?php }?>
|
||||
</div>
|
||||
<?php echo $_smarty_tpl->tpl_vars['structure']->value;?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="cb"></div>
|
||||
</div>
|
||||
|
||||
<!-- END SIDE MENU -->
|
||||
<div class="mainContent">
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['info']->value) && $_smarty_tpl->tpl_vars['info']->value != 'wybrana strona nie istnieje') {?>
|
||||
<div class="<?php if ($_smarty_tpl->tpl_vars['type']->value && $_smarty_tpl->tpl_vars['type']->value == 'error') {?>messageError<?php } elseif ($_smarty_tpl->tpl_vars['type']->value == 'info') {?>messageInfo<?php } else { ?>messageOk<?php }?>"><?php echo $_smarty_tpl->tpl_vars['info']->value;?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<div id="infoMessage"></div>
|
||||
<?php echo $_smarty_tpl->tpl_vars['content']->value;?>
|
||||
|
||||
<!-- /panelRight -->
|
||||
</div>
|
||||
|
||||
<div class="cb"></div>
|
||||
</div>
|
||||
|
||||
|
||||
</body>
|
||||
</html><?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2022-11-23 08:12:22
|
||||
from "/home/www/polonia/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_637dc7d69a6031_21420322',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'2f2e65f2a04aa40bd3f207dd4e292d90634463fb' =>
|
||||
array (
|
||||
0 => '/home/www/polonia/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1661849425,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_637dc7d69a6031_21420322 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-01-19 19:38:21
|
||||
from "/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65aac19d5a9252_92857983',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'80fd949999c64e3e2e458a0fbe75cf6fcf3cb4d0' =>
|
||||
array (
|
||||
0 => '/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65aac19d5a9252_92857983 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 21:22:53
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/StructureModern.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65beaeade7e333_39035266',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'90fa227e4e3779401bb59ecdd0a39738a69a500f' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/StructureModern.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65beaeade7e333_39035266 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.url.php';
|
||||
?>
|
||||
|
||||
|
||||
<div class="floatLeft mainFrameTree structureTree">
|
||||
|
||||
|
||||
<ul id="dhtmlgoodies_tree2" class="dhtmlgoodies_tree">
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Menu top</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>" title="Edytuj" ><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSubSub']->value->GetHaveChildren()) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('arraySubSubSub', $_smarty_tpl->tpl_vars['objElementSubSub']->value->arrayChildren);
|
||||
?>
|
||||
<ul>
|
||||
<?php
|
||||
$__section_customer_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_customer']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer'] : false;
|
||||
$__section_customer_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['arraySubSubSub']->value) ? count($_loop) : max(0, (int) $_loop));
|
||||
$__section_customer_0_total = $__section_customer_0_loop;
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = new Smarty_Variable(array());
|
||||
if ($__section_customer_0_total != 0) {
|
||||
for ($__section_customer_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] = 0; $__section_customer_0_iteration <= $__section_customer_0_total; $__section_customer_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']++){
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
if ($__section_customer_0_saved) {
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = $__section_customer_0_saved;
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Pozostałe</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
|
||||
<?php echo '<script'; ?>
|
||||
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 = '<?php echo $_smarty_tpl->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 = '<?php echo smarty_function_url(array('Structure'=>'UpdateTree'),$_smarty_tpl);?>
|
||||
';
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 22:36:35
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/SimpleArticle/Index/EditStructure.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65bebff3a42076_27362580',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'd394b663fe74de44e47a79f99b701e84b6c24877' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/SimpleArticle/Index/EditStructure.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65bebff3a42076_27362580 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_block_dropDownContainer')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/block.dropDownContainer.php';
|
||||
if (!is_callable('smarty_function_insertCkEditor')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.insertCkEditor.php';
|
||||
echo '<script'; ?>
|
||||
language="javascript" type="text/javascript">urlStatic='<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
';<?php echo '</script'; ?>
|
||||
>
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['obj']->value)) {?>
|
||||
|
||||
<input type="hidden" name="lang" value="<?php echo $_smarty_tpl->tpl_vars['lang']->value;?>
|
||||
" />
|
||||
<?php }?>
|
||||
<input type="hidden" name="SaveArt" value="true" />
|
||||
|
||||
|
||||
|
||||
<?php $_smarty_tpl->_assignInScope('additionalTitle', '');
|
||||
?>
|
||||
|
||||
<div <?php if ($_smarty_tpl->tpl_vars['objModule']->value->Getid() != 3) {?>style="display: none;"<?php }?>>
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>"Zajawka"));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Zajawka"), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
|
||||
<div class="articlePreviewRight">
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['obj']->value)) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('shortnote', $_smarty_tpl->tpl_vars['obj']->value->GetShortnote());
|
||||
?>
|
||||
<?php } else { ?>
|
||||
<?php $_smarty_tpl->_assignInScope('shortnote', '');
|
||||
?>
|
||||
<?php }?>
|
||||
<?php echo smarty_function_insertCkEditor(array('width'=>'399','height'=>'159','name'=>'shortnote','toolbar'=>'Basic','value'=>$_smarty_tpl->tpl_vars['shortnote']->value),$_smarty_tpl);?>
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['shortnote'])) {?><div style="color: red;" id="actionError"><?php echo $_smarty_tpl->tpl_vars['error']->value['shortnote'];?>
|
||||
</div><?php }?>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Zajawka"), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
</div>
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>"Treść"));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Treść"), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<div class="center">
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['obj']->value)) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('description', $_smarty_tpl->tpl_vars['obj']->value->GetDescription());
|
||||
?>
|
||||
<?php } else { ?>
|
||||
<?php $_smarty_tpl->_assignInScope('description', '');
|
||||
?>
|
||||
<?php }?>
|
||||
<?php echo smarty_function_insertCkEditor(array('width'=>'620','height'=>'380','name'=>'description','toolbar'=>'Formix','value'=>$_smarty_tpl->tpl_vars['description']->value),$_smarty_tpl);?>
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['description'])) {?><div style="color: red;" id="actionError"><?php echo $_smarty_tpl->tpl_vars['error']->value['description'];?>
|
||||
</div><?php }?>
|
||||
</div>
|
||||
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Treść"), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 22:36:35
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/StructureModern.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65bebff3a05a72_79566378',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'90fa227e4e3779401bb59ecdd0a39738a69a500f' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/StructureModern.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65bebff3a05a72_79566378 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.url.php';
|
||||
?>
|
||||
|
||||
|
||||
<div class="floatLeft mainFrameTree structureTree">
|
||||
|
||||
|
||||
<ul id="dhtmlgoodies_tree2" class="dhtmlgoodies_tree">
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Menu top</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>" title="Edytuj" ><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSubSub']->value->GetHaveChildren()) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('arraySubSubSub', $_smarty_tpl->tpl_vars['objElementSubSub']->value->arrayChildren);
|
||||
?>
|
||||
<ul>
|
||||
<?php
|
||||
$__section_customer_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_customer']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer'] : false;
|
||||
$__section_customer_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['arraySubSubSub']->value) ? count($_loop) : max(0, (int) $_loop));
|
||||
$__section_customer_0_total = $__section_customer_0_loop;
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = new Smarty_Variable(array());
|
||||
if ($__section_customer_0_total != 0) {
|
||||
for ($__section_customer_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] = 0; $__section_customer_0_iteration <= $__section_customer_0_total; $__section_customer_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']++){
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
if ($__section_customer_0_saved) {
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = $__section_customer_0_saved;
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Pozostałe</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
|
||||
<?php echo '<script'; ?>
|
||||
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 = '<?php echo $_smarty_tpl->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 = '<?php echo smarty_function_url(array('Structure'=>'UpdateTree'),$_smarty_tpl);?>
|
||||
';
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-05 10:59:24
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Dictionary/Edit.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65c0bf8c29c618_51293092',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'94a5f0536ca59df4218e97be7b541252d6b95086' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Dictionary/Edit.tpl',
|
||||
1 => 1704798259,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65c0bf8c29c618_51293092 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.url.php';
|
||||
if (!is_callable('smarty_block_dropDownContainer')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/block.dropDownContainer.php';
|
||||
?>
|
||||
<form method="post" action="<?php echo smarty_function_url(array('Dictionary'=>'Edit','id'=>$_smarty_tpl->tpl_vars['objDict']->value->GetId()),$_smarty_tpl);?>
|
||||
" id="sendForm" enctype="multipart/form-data">
|
||||
|
||||
<?php $_smarty_tpl->_assignInScope('additionalTitle', '');
|
||||
?>
|
||||
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>"Ogólne",'additionalTitle'=>$_smarty_tpl->tpl_vars['additionalTitle']->value));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Ogólne",'additionalTitle'=>$_smarty_tpl->tpl_vars['additionalTitle']->value), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="frameTableForm tableContetntWhite">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Klucz</td>
|
||||
<td>
|
||||
<?php echo $_smarty_tpl->tpl_vars['objDict']->value->GetKeyword();?>
|
||||
|
||||
<input name="keyword" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['objDict']->value->GetKeyword();?>
|
||||
" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Wersja PL</td>
|
||||
<td>
|
||||
<textarea class="input420" name="replacement[pl]"><?php echo $_smarty_tpl->tpl_vars['objDict']->value->GetReplacement();?>
|
||||
</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Wersja EN</td>
|
||||
<td>
|
||||
<textarea class="input420" name="replacement[en]"><?php echo $_smarty_tpl->tpl_vars['objDict']->value->GetReplacementEn();?>
|
||||
</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display: none;">
|
||||
<td>Wersja RU</td>
|
||||
<td>
|
||||
<textarea class="input420" name="replacement[ru]"><?php echo $_smarty_tpl->tpl_vars['objDict']->value->GetReplacementRu();?>
|
||||
</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display: none;">
|
||||
<td>Wersja DE</td>
|
||||
<td>
|
||||
<textarea class="input420" name="replacement[de]"><?php echo $_smarty_tpl->tpl_vars['objDict']->value->GetReplacementDe();?>
|
||||
</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Ogólne",'additionalTitle'=>$_smarty_tpl->tpl_vars['additionalTitle']->value), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
<div class="panelButtons">
|
||||
<input type="button" class="cancel" value="Anuluj" name="" onclick="document.location.href='<?php echo smarty_function_url(array('Dictionary'=>'Index'),$_smarty_tpl);?>
|
||||
';"/>
|
||||
<input type="submit" value="Zapisz" name="doDictEdit"/>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 21:24:33
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65beaf11db5e39_26464358',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'a35e3aeadb44a557082df37c03a55aff134009f8' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65beaf11db5e39_26464358 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 22:36:32
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/StructureModern.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65bebff08e0b13_83012394',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'90fa227e4e3779401bb59ecdd0a39738a69a500f' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/StructureModern.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65bebff08e0b13_83012394 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.url.php';
|
||||
?>
|
||||
|
||||
|
||||
<div class="floatLeft mainFrameTree structureTree">
|
||||
|
||||
|
||||
<ul id="dhtmlgoodies_tree2" class="dhtmlgoodies_tree">
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Menu top</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>" title="Edytuj" ><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSubSub']->value->GetHaveChildren()) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('arraySubSubSub', $_smarty_tpl->tpl_vars['objElementSubSub']->value->arrayChildren);
|
||||
?>
|
||||
<ul>
|
||||
<?php
|
||||
$__section_customer_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_customer']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer'] : false;
|
||||
$__section_customer_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['arraySubSubSub']->value) ? count($_loop) : max(0, (int) $_loop));
|
||||
$__section_customer_0_total = $__section_customer_0_loop;
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = new Smarty_Variable(array());
|
||||
if ($__section_customer_0_total != 0) {
|
||||
for ($__section_customer_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] = 0; $__section_customer_0_iteration <= $__section_customer_0_total; $__section_customer_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']++){
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
if ($__section_customer_0_saved) {
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = $__section_customer_0_saved;
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Pozostałe</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
|
||||
<?php echo '<script'; ?>
|
||||
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 = '<?php echo $_smarty_tpl->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 = '<?php echo smarty_function_url(array('Structure'=>'UpdateTree'),$_smarty_tpl);?>
|
||||
';
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2023-06-30 09:25:38
|
||||
from "/home/www/polonia/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_649e83722fef72_89038091',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'2f2e65f2a04aa40bd3f207dd4e292d90634463fb' =>
|
||||
array (
|
||||
0 => '/home/www/polonia/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1661849425,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_649e83722fef72_89038091 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-01-01 17:51:55
|
||||
from "/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/StructureModern.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_6592edab8d50f6_81485383',
|
||||
'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_6592edab8d50f6_81485383 (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';
|
||||
?>
|
||||
|
||||
|
||||
<div class="floatLeft mainFrameTree structureTree">
|
||||
|
||||
|
||||
<ul id="dhtmlgoodies_tree2" class="dhtmlgoodies_tree">
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Menu top</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>" title="Edytuj" ><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSubSub']->value->GetHaveChildren()) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('arraySubSubSub', $_smarty_tpl->tpl_vars['objElementSubSub']->value->arrayChildren);
|
||||
?>
|
||||
<ul>
|
||||
<?php
|
||||
$__section_customer_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_customer']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer'] : false;
|
||||
$__section_customer_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['arraySubSubSub']->value) ? count($_loop) : max(0, (int) $_loop));
|
||||
$__section_customer_0_total = $__section_customer_0_loop;
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = new Smarty_Variable(array());
|
||||
if ($__section_customer_0_total != 0) {
|
||||
for ($__section_customer_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] = 0; $__section_customer_0_iteration <= $__section_customer_0_total; $__section_customer_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']++){
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
if ($__section_customer_0_saved) {
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = $__section_customer_0_saved;
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Pozostałe</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
|
||||
<?php echo '<script'; ?>
|
||||
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 = '<?php echo $_smarty_tpl->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 = '<?php echo smarty_function_url(array('Structure'=>'UpdateTree'),$_smarty_tpl);?>
|
||||
';
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-05 14:51:31
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65c0f5f37c3d71_04797326',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'a35e3aeadb44a557082df37c03a55aff134009f8' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65c0f5f37c3d71_04797326 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 22:36:11
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/SimpleArticle/Index/EditStructure.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65bebfdbbc84d8_60285501',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'd394b663fe74de44e47a79f99b701e84b6c24877' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/SimpleArticle/Index/EditStructure.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65bebfdbbc84d8_60285501 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_block_dropDownContainer')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/block.dropDownContainer.php';
|
||||
if (!is_callable('smarty_function_insertCkEditor')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.insertCkEditor.php';
|
||||
echo '<script'; ?>
|
||||
language="javascript" type="text/javascript">urlStatic='<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
||||
';<?php echo '</script'; ?>
|
||||
>
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['obj']->value)) {?>
|
||||
|
||||
<input type="hidden" name="lang" value="<?php echo $_smarty_tpl->tpl_vars['lang']->value;?>
|
||||
" />
|
||||
<?php }?>
|
||||
<input type="hidden" name="SaveArt" value="true" />
|
||||
|
||||
|
||||
|
||||
<?php $_smarty_tpl->_assignInScope('additionalTitle', '');
|
||||
?>
|
||||
|
||||
<div <?php if ($_smarty_tpl->tpl_vars['objModule']->value->Getid() != 3) {?>style="display: none;"<?php }?>>
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>"Zajawka"));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Zajawka"), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
|
||||
<div class="articlePreviewRight">
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['obj']->value)) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('shortnote', $_smarty_tpl->tpl_vars['obj']->value->GetShortnote());
|
||||
?>
|
||||
<?php } else { ?>
|
||||
<?php $_smarty_tpl->_assignInScope('shortnote', '');
|
||||
?>
|
||||
<?php }?>
|
||||
<?php echo smarty_function_insertCkEditor(array('width'=>'399','height'=>'159','name'=>'shortnote','toolbar'=>'Basic','value'=>$_smarty_tpl->tpl_vars['shortnote']->value),$_smarty_tpl);?>
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['shortnote'])) {?><div style="color: red;" id="actionError"><?php echo $_smarty_tpl->tpl_vars['error']->value['shortnote'];?>
|
||||
</div><?php }?>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Zajawka"), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
</div>
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>"Treść"));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Treść"), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<div class="center">
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['obj']->value)) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('description', $_smarty_tpl->tpl_vars['obj']->value->GetDescription());
|
||||
?>
|
||||
<?php } else { ?>
|
||||
<?php $_smarty_tpl->_assignInScope('description', '');
|
||||
?>
|
||||
<?php }?>
|
||||
<?php echo smarty_function_insertCkEditor(array('width'=>'620','height'=>'380','name'=>'description','toolbar'=>'Formix','value'=>$_smarty_tpl->tpl_vars['description']->value),$_smarty_tpl);?>
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['description'])) {?><div style="color: red;" id="actionError"><?php echo $_smarty_tpl->tpl_vars['error']->value['description'];?>
|
||||
</div><?php }?>
|
||||
</div>
|
||||
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>"Treść"), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-01-19 19:39:22
|
||||
from "/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/Auth.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65aac1da7c1158_09734896',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'd96933aaae848370ca21797e75593410117ae593' =>
|
||||
array (
|
||||
0 => '/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/Auth.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65aac1da7c1158_09734896 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-01-23 10:42:14
|
||||
from "/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65af89f6e91699_39041940',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'80fd949999c64e3e2e458a0fbe75cf6fcf3cb4d0' =>
|
||||
array (
|
||||
0 => '/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65af89f6e91699_39041940 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 22:38:43
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65bec073cb10b7_29677549',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'a35e3aeadb44a557082df37c03a55aff134009f8' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65bec073cb10b7_29677549 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 22:36:27
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/StructureModern.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65bebfeb314997_81547666',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'90fa227e4e3779401bb59ecdd0a39738a69a500f' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Shared/StructureModern.tpl',
|
||||
1 => 1703168200,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65bebfeb314997_81547666 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.url.php';
|
||||
?>
|
||||
|
||||
|
||||
<div class="floatLeft mainFrameTree structureTree">
|
||||
|
||||
|
||||
<ul id="dhtmlgoodies_tree2" class="dhtmlgoodies_tree">
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Menu top</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>" title="Edytuj" ><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSubSub']->value->GetHaveChildren()) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('arraySubSubSub', $_smarty_tpl->tpl_vars['objElementSubSub']->value->arrayChildren);
|
||||
?>
|
||||
<ul>
|
||||
<?php
|
||||
$__section_customer_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_customer']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer'] : false;
|
||||
$__section_customer_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['arraySubSubSub']->value) ? count($_loop) : max(0, (int) $_loop));
|
||||
$__section_customer_0_total = $__section_customer_0_loop;
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = new Smarty_Variable(array());
|
||||
if ($__section_customer_0_total != 0) {
|
||||
for ($__section_customer_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] = 0; $__section_customer_0_iteration <= $__section_customer_0_total; $__section_customer_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']++){
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
if ($__section_customer_0_saved) {
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = $__section_customer_0_saved;
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Pozostałe</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
|
||||
<?php echo '<script'; ?>
|
||||
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 = '<?php echo $_smarty_tpl->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 = '<?php echo smarty_function_url(array('Structure'=>'UpdateTree'),$_smarty_tpl);?>
|
||||
';
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
<?php }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2023-06-29 11:06:13
|
||||
from "/home/www/polonia/Admin/template/partial/Shared/DefaultPanel.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_649d49852d5285_68780659',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'2f2e65f2a04aa40bd3f207dd4e292d90634463fb' =>
|
||||
array (
|
||||
0 => '/home/www/polonia/Admin/template/partial/Shared/DefaultPanel.tpl',
|
||||
1 => 1661849425,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_649d49852d5285_68780659 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
?>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div><?php }
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-01-02 16:01:32
|
||||
from "/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/Shared/StructureModern.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_6594254c8be6e5_78245252',
|
||||
'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_6594254c8be6e5_78245252 (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';
|
||||
?>
|
||||
|
||||
|
||||
<div class="floatLeft mainFrameTree structureTree">
|
||||
|
||||
|
||||
<ul id="dhtmlgoodies_tree2" class="dhtmlgoodies_tree">
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Menu top</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>" title="Edytuj" ><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSubSub']->value->GetHaveChildren()) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('arraySubSubSub', $_smarty_tpl->tpl_vars['objElementSubSub']->value->arrayChildren);
|
||||
?>
|
||||
<ul>
|
||||
<?php
|
||||
$__section_customer_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_customer']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer'] : false;
|
||||
$__section_customer_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['arraySubSubSub']->value) ? count($_loop) : max(0, (int) $_loop));
|
||||
$__section_customer_0_total = $__section_customer_0_loop;
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = new Smarty_Variable(array());
|
||||
if ($__section_customer_0_total != 0) {
|
||||
for ($__section_customer_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] = 0; $__section_customer_0_iteration <= $__section_customer_0_total; $__section_customer_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']++){
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetId()) {?>active<?php }?>" title="Edytuj"><?php echo $_smarty_tpl->tpl_vars['arraySubSubSub']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_customer']->value['index'] : null)]->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
if ($__section_customer_0_saved) {
|
||||
$_smarty_tpl->tpl_vars['__smarty_section_customer'] = $__section_customer_0_saved;
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
<div class="sideTitleGroup">Pozostałe</div>
|
||||
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElement']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('idParentSub', $_smarty_tpl->tpl_vars['objElementSub']->value->GetId());
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElementSub']->value->GetHaveChildren()) {?>
|
||||
<ul>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->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) {
|
||||
?>
|
||||
<li id="node<?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId();?>
|
||||
" ><a href="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()),$_smarty_tpl);?>
|
||||
" class="<?php if (!$_smarty_tpl->tpl_vars['objElementSubSub']->value->GetPublication()) {?>nonactive <?php }
|
||||
if ($_smarty_tpl->tpl_vars['idStucture']->value == $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetId()) {?>active<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objElementSubSub']->value->GetElementName();?>
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="clearBoth"></div>
|
||||
|
||||
|
||||
<?php echo '<script'; ?>
|
||||
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 = '<?php echo $_smarty_tpl->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 = '<?php echo smarty_function_url(array('Structure'=>'UpdateTree'),$_smarty_tpl);?>
|
||||
';
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
<?php }
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user