Files
zurawik.pl/Admin/temp/compile/1e99d876deaebc207a93353861decf07806b468b_0.file.Index.tpl.php
2026-05-15 18:33:51 +02:00

147 lines
6.1 KiB
PHP

<?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);?>
';"/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" class="button buttonZapisz" value="Zapisz" name="AddHomesite"/>
</div>
</form>
<?php }
}