Files
zurawik.pl/Admin/temp/compile/6361124157d6f7fb3450685a5419eb41^1261587ff73baa23cc07285019e0bed579b6ff32_0.file.EditStructure.tpl.php
2026-05-15 18:33:51 +02:00

83 lines
4.2 KiB
PHP

<?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']);
}
}