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

168 lines
7.2 KiB
PHP

<?php
/* Smarty version 3.1.30, created on 2024-02-05 14:51:26
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/HomeSite/EditArticle.tpl" */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.30',
'unifunc' => 'content_65c0f5eed4d806_30033546',
'has_nocache_code' => false,
'file_dependency' =>
array (
'ceec9e469ffa106c4488a4685907e09c53d80437' =>
array (
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/HomeSite/EditArticle.tpl',
1 => 1704799237,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_65c0f5eed4d806_30033546 (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_insertCkEditor')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.insertCkEditor.php';
?>
<?php echo '<script'; ?>
language="javascript" type="text/javascript">
urlStatic = '<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
';
<?php echo '</script'; ?>
>
<form method="post" action="<?php echo smarty_function_url(array('HomeSite'=>'EditArticle','id'=>$_smarty_tpl->tpl_vars['obj']->value->GetId()),$_smarty_tpl);?>
" id="sendForm" enctype="multipart/form-data">
<?php if (isset($_smarty_tpl->tpl_vars['obj']->value)) {?>
<input type="hidden" name="idArticle" value="<?php echo $_smarty_tpl->tpl_vars['obj']->value->GetId();?>
" />
<?php }?>
<div class="panelRightTop"></div>
<div class="panelRightBody">
<div class="paddedContent">
<?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="commonTable">
<tbody>
<tr>
<td width="20%">Nazwa:</td>
<td>
<input name="name" value="<?php echo $_smarty_tpl->tpl_vars['obj']->value->GetName();?>
" type="text" />
</td>
</tr>
<tr>
<td >Publikuj</td>
<td><?php echo smarty_function_formField(array('type'=>'checkbox','name'=>'publication','obj'=>'obj','func'=>'GetPublication'),$_smarty_tpl);?>
</td>
</tr>
<tr>
<td >Kolejność</td>
<td><input name="weight" value="<?php echo $_smarty_tpl->tpl_vars['obj']->value->GetWeight();?>
" type="text" /></td>
</tr>
<tr style="display: none;">
<td class="noborder"><b>Data publikacji:</b></td>
<td class="noborder">
<img src='<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
/image/iconKalendarz.gif' alt='kalendarz' onclick="showKal(document.getElementById('datepub'));" />&nbsp;<?php echo smarty_function_formField(array('type'=>'input','name'=>'datePpublication','errorClass'=>'validate','obj'=>'obj','func'=>'GetDatePublicationWithoutTime','id'=>'datepub'),$_smarty_tpl);?>
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['datepublication'])) {?><div style="color: red;" id="actionError" class="validate"><?php echo $_smarty_tpl->tpl_vars['error']->value['datepublication'];?>
</div><?php }?>
</td>
</tr>
<tr style="display: none;">
<td><b>Godzina:</b></td>
<td>
<?php echo smarty_function_formField(array('type'=>'input','maxlength'=>'2','errorClass'=>'validate','name'=>'timepublication','obj'=>'obj','func'=>'GetDatePublicationTime'),$_smarty_tpl);?>
<span class="grayText smallText">format (HH)</span>
</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']);?>
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>"Treść SG"));
$_block_repeat1=true;
echo smarty_block_dropDownContainer(array('title'=>"Treść SG"), 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'=>'680','height'=>'220','name'=>'description','toolbar'=>'Formix','value'=>$_smarty_tpl->tpl_vars['description']->value),$_smarty_tpl);?>
</div>
<?php $_block_repeat1=false;
echo smarty_block_dropDownContainer(array('title'=>"Treść SG"), 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'=>"Treść pod",'isHidden'=>true));
$_block_repeat1=true;
echo smarty_block_dropDownContainer(array('title'=>"Treść pod",'isHidden'=>true), 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'=>'680','height'=>'220','name'=>'shortnote','toolbar'=>'Basic','value'=>$_smarty_tpl->tpl_vars['shortnote']->value),$_smarty_tpl);?>
<div class="validate" id="shortnoteHiddenError"></div>
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['shortnote'])) {?><div style="color: red;" id="actionError" class="validate"><?php echo $_smarty_tpl->tpl_vars['error']->value['shortnote'];?>
</div><?php }?>
</div>
<div class="clearBoth"></div>
<?php $_block_repeat1=false;
echo smarty_block_dropDownContainer(array('title'=>"Treść pod",'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="document.location.href='<?php echo smarty_function_url(array('HomeSite'=>'ArticleBox'),$_smarty_tpl);?>
'"/>
<input type="submit" value="Zapisz" name="doSimpleArticleEdit"/>
</div>
</div>
</form>
<?php }
}