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

129 lines
4.9 KiB
PHP

<?php
/* Smarty version 3.1.30, created on 2023-06-29 09:38:56
from "/home/www/polonia/Admin/template/partial/File/Edit.tpl" */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.30',
'unifunc' => 'content_649d35100f5476_62074201',
'has_nocache_code' => false,
'file_dependency' =>
array (
'd8d4623b030171603e5ed1336293b6ccb4f3c963' =>
array (
0 => '/home/www/polonia/Admin/template/partial/File/Edit.tpl',
1 => 1664569584,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_649d35100f5476_62074201 (Smarty_Internal_Template $_smarty_tpl) {
if (!is_callable('smarty_function_url')) require_once '/home/www/polonia/core/plugins/Smarty/function.url.php';
if (!is_callable('smarty_block_dropDownContainer')) require_once '/home/www/polonia/core/plugins/Smarty/block.dropDownContainer.php';
if (!is_callable('smarty_function_formField')) require_once '/home/www/polonia/core/plugins/Smarty/function.formField.php';
?>
<form method="post" action="<?php echo smarty_function_url(array('File'=>'Edit','idFile'=>$_smarty_tpl->tpl_vars['objFile']->value->GetId()),$_smarty_tpl);?>
" enctype="multipart/form-data">
<?php if (isset($_smarty_tpl->tpl_vars['objFile']->value)) {?>
<input type="hidden" name="idFile" value="<?php echo $_smarty_tpl->tpl_vars['objFile']->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="frameTableForm tableContetntWhite">
<tbody>
<tr>
<td>nazwa:</td>
<td>
<?php echo smarty_function_formField(array('name'=>'title','class'=>'inputWidth141 input100percent','errorClass'=>'validate','type'=>'text','obj'=>'objFile','func'=>'GetTitle'),$_smarty_tpl);?>
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['title'])) {?><div style="color: red;" id="actionError"><?php echo $_smarty_tpl->tpl_vars['error']->value['title'];?>
</div><?php }?>
</td>
</tr>
<tr>
<td>Publikuj:</td>
<td><?php echo smarty_function_formField(array('type'=>'checkbox','name'=>'publication','obj'=>'objFile','func'=>'GetPublication'),$_smarty_tpl);?>
</td>
</tr>
<tr class="none">
<td>Opis:</td>
<td><?php echo smarty_function_formField(array('type'=>'textarea','name'=>'description','obj'=>'objFile','func'=>'GetDescription'),$_smarty_tpl);?>
</td>
</tr>
<input type="hidden" name="file_type" value="1" />
</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'=>"Plik"));
$_block_repeat1=true;
echo smarty_block_dropDownContainer(array('title'=>"Plik"), null, $_smarty_tpl, $_block_repeat1);
while ($_block_repeat1) {
ob_start();
?>
<div>
<img src="<?php echo $_smarty_tpl->tpl_vars['objFile']->value->GetFileIcon();?>
" alt="" title="" style="float: left;" >
<p><?php echo $_smarty_tpl->tpl_vars['objFile']->value->GetName();?>
</p>
</div>
<div class="clearBoth"></div>
<br />
<div class="articlePreviewRight">
<input type="file" name="filename" >
</div>
<div class="clearBoth"></div>
<?php $_block_repeat1=false;
echo smarty_block_dropDownContainer(array('title'=>"Plik"), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
}
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
</div>
</div>
<div class="panelRightBottom">
<div class="panelButtons">
<?php if (isset($_smarty_tpl->tpl_vars['idStructure']->value)) {?>
<input type="button" class="cancel" value="Anuluj" name="" onclick="document.location.href='<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['idStructure']->value),$_smarty_tpl);?>
'" />
<?php } else { ?>
<input type="button" class="cancel" value="Anuluj" name="" onclick="document.location.href='<?php echo smarty_function_url(array('File'=>'index'),$_smarty_tpl);?>
'"/>
<?php }?>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" value="Zapisz" name="doFileEdit"/>
</div>
</div>
</form>
<?php }
}