83 lines
4.3 KiB
PHP
83 lines
4.3 KiB
PHP
<?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']);
|
|
}
|
|
}
|