339 lines
14 KiB
PHP
339 lines
14 KiB
PHP
<?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/SimpleArticle/Index/Add.tpl" */
|
|
|
|
/* @var Smarty_Internal_Template $_smarty_tpl */
|
|
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
|
'version' => '3.1.30',
|
|
'unifunc' => 'content_6593364b657d26_31398794',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'da0d23f6490bc4b70950bcc3705d08b4c679ac93' =>
|
|
array (
|
|
0 => '/home/14153/www/test.aem.pl/zurawik/Admin/template/partial/SimpleArticle/Index/Add.tpl',
|
|
1 => 1703168200,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
),
|
|
),false)) {
|
|
function content_6593364b657d26_31398794 (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';
|
|
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_formField')) require_once '/home/14153/www/test.aem.pl/zurawik/core/plugins/Smarty/function.formField.php';
|
|
if (!is_callable('smarty_function_insertCkEditor')) require_once '/home/14153/www/test.aem.pl/zurawik/core/plugins/Smarty/function.insertCkEditor.php';
|
|
if (!is_callable('smarty_modifier_saveInput')) require_once '/home/14153/www/test.aem.pl/zurawik/core/plugins/Smarty/modifier.saveInput.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('SimpleArticle_Index'=>'Add'),$_smarty_tpl);?>
|
|
" enctype="multipart/form-data">
|
|
<?php if (isset($_smarty_tpl->tpl_vars['objArticle']->value)) {?>
|
|
<input type="hidden" name="idArticle" value="<?php echo $_smarty_tpl->tpl_vars['objArticle']->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>Tytuł:</td>
|
|
<td>
|
|
|
|
<?php echo smarty_function_formField(array('name'=>'tytul','class'=>'inputWidth141 input100percent','errorClass'=>'validate','type'=>'text','obj'=>'objArticle','func'=>'GetTitle'),$_smarty_tpl);?>
|
|
|
|
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['tytul'])) {?><div style="color: red;" id="actionError" class="validate"><?php echo $_smarty_tpl->tpl_vars['error']->value['tytul'];?>
|
|
</div><?php }?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Publikuj:</td>
|
|
<td><?php echo smarty_function_formField(array('type'=>'checkbox','name'=>'publication','obj'=>'objArticle','func'=>'GetPublication'),$_smarty_tpl);?>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tr>
|
|
<tr>
|
|
<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'));" /> <?php echo smarty_function_formField(array('type'=>'input','name'=>'datepublication','errorClass'=>'validate','obj'=>'objArticle','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>
|
|
<td><b>Godzina:</b></td>
|
|
<td>
|
|
<?php echo smarty_function_formField(array('type'=>'input','maxlength'=>'2','errorClass'=>'validate','name'=>'timepublication','obj'=>'objArticle','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'=>"Zdjecia",'isHidden'=>true));
|
|
$_block_repeat1=true;
|
|
echo smarty_block_dropDownContainer(array('title'=>"Zdjecia",'isHidden'=>true), null, $_smarty_tpl, $_block_repeat1);
|
|
while ($_block_repeat1) {
|
|
ob_start();
|
|
?>
|
|
|
|
<div class="articlePreviewRight">
|
|
<input type="file" name="filename" >
|
|
</div>
|
|
<div class="clearBoth"></div>
|
|
<?php $_block_repeat1=false;
|
|
echo smarty_block_dropDownContainer(array('title'=>"Zdjecia",'isHidden'=>true), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
|
}
|
|
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
|
|
|
<?php if ($_smarty_tpl->tpl_vars['idModule']->value == 3) {?>
|
|
<?php $_smarty_tpl->_assignInScope('EditLogo', false);
|
|
?>
|
|
<?php } else { ?>
|
|
<?php $_smarty_tpl->_assignInScope('EditLogo', true);
|
|
?>
|
|
<?php }?>
|
|
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>"Logo",'isClose'=>false,'isHidden'=>$_smarty_tpl->tpl_vars['EditLogo']->value));
|
|
$_block_repeat1=true;
|
|
echo smarty_block_dropDownContainer(array('title'=>"Logo",'isClose'=>false,'isHidden'=>$_smarty_tpl->tpl_vars['EditLogo']->value), null, $_smarty_tpl, $_block_repeat1);
|
|
while ($_block_repeat1) {
|
|
ob_start();
|
|
?>
|
|
|
|
<div class="articlePreviewRight">
|
|
<input type="file" name="fileLogoName" >
|
|
</div>
|
|
<div class="clearBoth"></div>
|
|
<?php $_block_repeat1=false;
|
|
echo smarty_block_dropDownContainer(array('title'=>"Logo",'isClose'=>false,'isHidden'=>$_smarty_tpl->tpl_vars['EditLogo']->value), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
|
}
|
|
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
|
|
|
|
|
<?php if ($_smarty_tpl->tpl_vars['idModule']->value == 3) {?>
|
|
<?php $_smarty_tpl->_assignInScope('EditUrl', false);
|
|
?>
|
|
<?php } else { ?>
|
|
<?php $_smarty_tpl->_assignInScope('EditUrl', true);
|
|
?>
|
|
<?php }?>
|
|
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>"Przekierowanie",'isClose'=>false,'isHidden'=>$_smarty_tpl->tpl_vars['EditUrl']->value));
|
|
$_block_repeat1=true;
|
|
echo smarty_block_dropDownContainer(array('title'=>"Przekierowanie",'isClose'=>false,'isHidden'=>$_smarty_tpl->tpl_vars['EditUrl']->value), null, $_smarty_tpl, $_block_repeat1);
|
|
while ($_block_repeat1) {
|
|
ob_start();
|
|
?>
|
|
|
|
<div class="articlePreviewRight">
|
|
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="commonTable">
|
|
<tbody>
|
|
<tr>
|
|
<td>Url:</td>
|
|
<td>
|
|
|
|
<?php echo smarty_function_formField(array('name'=>'url','class'=>'inputWidth141 input100percent','errorClass'=>'validate','type'=>'text','obj'=>'objArticle','func'=>'GetUrl'),$_smarty_tpl);?>
|
|
|
|
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['url'])) {?><div style="color: red;" id="actionError" class="validate"><?php echo $_smarty_tpl->tpl_vars['error']->value['url'];?>
|
|
</div><?php }?>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="clearBoth"></div>
|
|
<?php $_block_repeat1=false;
|
|
echo smarty_block_dropDownContainer(array('title'=>"Przekierowanie",'isClose'=>false,'isHidden'=>$_smarty_tpl->tpl_vars['EditUrl']->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'=>"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['objArticle']->value)) {?>
|
|
<?php $_smarty_tpl->_assignInScope('zajawka', $_smarty_tpl->tpl_vars['objArticle']->value->GetShortnote());
|
|
?>
|
|
<?php } else { ?>
|
|
<?php $_smarty_tpl->_assignInScope('zajawka', '');
|
|
?>
|
|
<?php }?>
|
|
<?php echo smarty_function_insertCkEditor(array('width'=>'620','height'=>'159','name'=>'zajawka','toolbar'=>'Basic','value'=>$_smarty_tpl->tpl_vars['zajawka']->value),$_smarty_tpl);?>
|
|
|
|
<div class="validate" id="shortnoteHiddenError"></div>
|
|
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['zajawka'])) {?><div style="color: red;" id="actionError" class="validate"><?php echo $_smarty_tpl->tpl_vars['error']->value['zajawka'];?>
|
|
</div><?php }?>
|
|
</div>
|
|
<div class="clearBoth"></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']);?>
|
|
|
|
<?php if ($_smarty_tpl->tpl_vars['idModule']->value == 3) {?>
|
|
<?php $_smarty_tpl->_assignInScope('EditDescription', true);
|
|
?>
|
|
<?php } else { ?>
|
|
<?php $_smarty_tpl->_assignInScope('EditDescription', false);
|
|
?>
|
|
<?php }?>
|
|
|
|
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>"Treść",'isClose'=>false,'isHidden'=>$_smarty_tpl->tpl_vars['EditDescription']->value));
|
|
$_block_repeat1=true;
|
|
echo smarty_block_dropDownContainer(array('title'=>"Treść",'isClose'=>false,'isHidden'=>$_smarty_tpl->tpl_vars['EditDescription']->value), null, $_smarty_tpl, $_block_repeat1);
|
|
while ($_block_repeat1) {
|
|
ob_start();
|
|
?>
|
|
|
|
|
|
<div class="center">
|
|
<?php if (isset($_smarty_tpl->tpl_vars['objArticle']->value)) {?>
|
|
<?php $_smarty_tpl->_assignInScope('tresc', $_smarty_tpl->tpl_vars['objArticle']->value->GetDescription());
|
|
?>
|
|
<?php } else { ?>
|
|
<?php $_smarty_tpl->_assignInScope('tresc', '');
|
|
?>
|
|
<?php }?>
|
|
<?php echo smarty_function_insertCkEditor(array('width'=>'1020','height'=>'380','name'=>'tresc','toolbar'=>'Formix','value'=>$_smarty_tpl->tpl_vars['tresc']->value),$_smarty_tpl);?>
|
|
|
|
</div>
|
|
|
|
<?php $_block_repeat1=false;
|
|
echo smarty_block_dropDownContainer(array('title'=>"Treść",'isClose'=>false,'isHidden'=>$_smarty_tpl->tpl_vars['EditDescription']->value), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
|
}
|
|
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
|
|
|
|
|
|
|
<?php if ($_smarty_tpl->tpl_vars['idCategory']->value == 118) {?>
|
|
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>"Tagi"));
|
|
$_block_repeat1=true;
|
|
echo smarty_block_dropDownContainer(array('title'=>"Tagi"), null, $_smarty_tpl, $_block_repeat1);
|
|
while ($_block_repeat1) {
|
|
ob_start();
|
|
?>
|
|
|
|
<table cellpadding="5" cellspacing="0" border="0" class="maintable" width="100%">
|
|
<tr>
|
|
<td width="106"><b>Tagi:</b></td>
|
|
<td><input class="input input100percent autocompleter" type="text" value="<?php if (isset($_smarty_tpl->tpl_vars['tags']->value)) {
|
|
echo smarty_modifier_saveInput($_smarty_tpl->tpl_vars['tags']->value);
|
|
}?>" name="tags" id="tags" />
|
|
<div id="autocomplete_tags" class="autocomplete"></div>
|
|
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['tags'])) {?><div style="color: red;" id="actionError" class="validate"><?php echo $_smarty_tpl->tpl_vars['error']->value['tags'];?>
|
|
</div><?php }?>
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
<?php $_block_repeat1=false;
|
|
echo smarty_block_dropDownContainer(array('title'=>"Tagi"), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
|
}
|
|
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
|
|
|
|
|
<?php if (isset($_smarty_tpl->tpl_vars['customerLink']->value)) {?>
|
|
<?php echo $_smarty_tpl->tpl_vars['customerLink']->value;?>
|
|
|
|
<?php }?>
|
|
<?php }?>
|
|
|
|
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>"galeria"));
|
|
$_block_repeat1=true;
|
|
echo smarty_block_dropDownContainer(array('title'=>"galeria"), 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>
|
|
|
|
<div name="PhotoDisplay" id="PhotoDisplay" class="PhotoDisplay">
|
|
<?php
|
|
$_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" style="margin-bottom: 5px" /><br /></div> <?php
|
|
}
|
|
}
|
|
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
|
?>
|
|
|
|
</div>
|
|
<div class="clearBoth"></div>
|
|
<?php $_block_repeat1=false;
|
|
echo smarty_block_dropDownContainer(array('title'=>"galeria"), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
|
}
|
|
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="cb"></div>
|
|
<div class="panelButtons">
|
|
<?php if (isset($_smarty_tpl->tpl_vars['idStructure']->value)) {?>
|
|
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='<?php echo smarty_function_url(array('label'=>'current'),$_smarty_tpl);?>
|
|
'" />
|
|
<?php } else { ?>
|
|
<input type="button" class="button buttonAnuluj" value="" name="" onclick="document.location.href='<?php echo smarty_function_url(array('label'=>'current'),$_smarty_tpl);?>
|
|
'"/>
|
|
<?php }?>
|
|
|
|
|
|
|
|
<input type="submit" value="Zapisz" name="doSimpleArticleAdd"/>
|
|
|
|
</div>
|
|
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
|
|
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
|
|
</form><?php }
|
|
}
|