<?php
/* Smarty version 3.1.30, created on 2020-04-15 19:39:25
  from "D:\makl\wamp\www\conference\dev\src\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_5e9762ed529dd6_31600444',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '921f1109b2da7c4edf13fb2bf4e5e6174bdfbbf3' => 
    array (
      0 => 'D:\\makl\\wamp\\www\\conference\\dev\\src\\Admin\\template\\partial\\HomeSite\\EditArticle.tpl',
      1 => 1586979560,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5e9762ed529dd6_31600444 (Smarty_Internal_Template $_smarty_tpl) {
if (!is_callable('smarty_function_url')) require_once 'D:\\makl\\wamp\\www\\conference\\dev\\src\\core\\plugins\\Smarty\\function.url.php';
if (!is_callable('smarty_block_dropDownContainer')) require_once 'D:\\makl\\wamp\\www\\conference\\dev\\src\\core\\plugins\\Smarty\\block.dropDownContainer.php';
if (!is_callable('smarty_function_formField')) require_once 'D:\\makl\\wamp\\www\\conference\\dev\\src\\core\\plugins\\Smarty\\function.formField.php';
if (!is_callable('smarty_function_insertCkEditor')) require_once 'D:\\makl\\wamp\\www\\conference\\dev\\src\\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 style="display: none;">
							<td >Publikuj i zastąp informacje z aktualości</td>
							<td><?php echo smarty_function_formField(array('type'=>'checkbox','name'=>'publication','obj'=>'obj','func'=>'GetPublication'),$_smarty_tpl);?>
</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ść nad"));
$_block_repeat1=true;
echo smarty_block_dropDownContainer(array('title'=>"Treść nad"), 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ść nad"), 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"));
$_block_repeat1=true;
echo smarty_block_dropDownContainer(array('title'=>"Treść pod"), 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"), 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'=>'EditArticle'),$_smarty_tpl);?>
'"/>
			<input type="submit" value="Zapisz" name="doSimpleArticleEdit"/>
		</div>
	</div>
</form>
<?php }
}
