156 lines
6.8 KiB
PHP
156 lines
6.8 KiB
PHP
<?php
|
|
/* Smarty version 3.1.30, created on 2024-07-22 18:40:17
|
|
from "/home/www/_rejestracja/Admin/template/partial/Calc/Edit.tpl" */
|
|
|
|
/* @var Smarty_Internal_Template $_smarty_tpl */
|
|
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
|
'version' => '3.1.30',
|
|
'unifunc' => 'content_669e8b71bce788_37006050',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'94a4279ebe79a3f533b6211f78c3cb19ba0fa5cc' =>
|
|
array (
|
|
0 => '/home/www/_rejestracja/Admin/template/partial/Calc/Edit.tpl',
|
|
1 => 1491818615,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
),
|
|
),false)) {
|
|
function content_669e8b71bce788_37006050 (Smarty_Internal_Template $_smarty_tpl) {
|
|
if (!is_callable('smarty_function_url')) require_once '/home/www/_rejestracja/core/plugins/Smarty/function.url.php';
|
|
if (!is_callable('smarty_block_dropDownContainer')) require_once '/home/www/_rejestracja/core/plugins/Smarty/block.dropDownContainer.php';
|
|
if (!is_callable('smarty_function_formField')) require_once '/home/www/_rejestracja/core/plugins/Smarty/function.formField.php';
|
|
?>
|
|
<h1>Edytuj parametr</h1>
|
|
<?php echo '<script'; ?>
|
|
language="javascript" type="text/javascript">
|
|
urlStatic = '<?php echo $_smarty_tpl->tpl_vars['urlStatic']->value;?>
|
|
';
|
|
<?php echo '</script'; ?>
|
|
>
|
|
|
|
<?php $_smarty_tpl->_assignInScope('id', $_smarty_tpl->tpl_vars['obj']->value->GetId());
|
|
?>
|
|
<form method="post" action="<?php echo smarty_function_url(array('Calc'=>'Edit','id'=>$_smarty_tpl->tpl_vars['obj']->value->GetId()),$_smarty_tpl);?>
|
|
" enctype="multipart/form-data">
|
|
<?php if (isset($_smarty_tpl->tpl_vars['obj']->value)) {?>
|
|
<input type="hidden" name="id" 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>Nazwa:</td>
|
|
<td>
|
|
<?php echo smarty_function_formField(array('name'=>'name','class'=>'inputWidth141 input100percent','errorClass'=>'validate','type'=>'text','obj'=>'obj','func'=>'getName'),$_smarty_tpl);?>
|
|
|
|
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['name'])) {?><div style="color: red;" id="actionError" class="validate"><?php echo $_smarty_tpl->tpl_vars['error']->value['name'];?>
|
|
</div><?php }?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Opis:</td>
|
|
<td class="left">
|
|
<textarea name="opis" cols="54" rows="5"><?php echo $_smarty_tpl->tpl_vars['obj']->value->GetOpis();?>
|
|
</textarea>
|
|
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['opis'])) {?><div style="color: red;" id="actionError"><?php echo $_smarty_tpl->tpl_vars['error']->value['opis'];?>
|
|
</div><?php }?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Cena:</td>
|
|
<td class="left">
|
|
<?php echo smarty_function_formField(array('name'=>'price','class'=>'inputWidth141 input100percent','errorClass'=>'validate','type'=>'text','obj'=>'obj','func'=>'getPrice'),$_smarty_tpl);?>
|
|
|
|
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['price'])) {?><div style="color: red;" id="actionError" class="validate"><?php echo $_smarty_tpl->tpl_vars['error']->value['price'];?>
|
|
</div><?php }?>
|
|
</td>
|
|
</tr>
|
|
<tr class="none">
|
|
<td>Powiązane z:</td>
|
|
<td class="left">
|
|
<?php echo smarty_function_formField(array('name'=>'link_id','class'=>'inputWidth141 input100percent','errorClass'=>'validate','type'=>'text','obj'=>'obj','func'=>'getLinkId'),$_smarty_tpl);?>
|
|
|
|
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['link_id'])) {?><div style="color: red;" id="actionError" class="validate"><?php echo $_smarty_tpl->tpl_vars['error']->value['link_id'];?>
|
|
</div><?php }?>
|
|
</td>
|
|
</tr>
|
|
<tr class="none">
|
|
<td>Czy lista (radio):</td>
|
|
<td><?php echo smarty_function_formField(array('type'=>'checkbox','name'=>'list','obj'=>'obj','func'=>'GetList'),$_smarty_tpl);?>
|
|
</td>
|
|
</tr>
|
|
<tr class="none">
|
|
<td>Czy cena progresywna:</td>
|
|
<td><?php echo smarty_function_formField(array('type'=>'checkbox','name'=>'price_progres','obj'=>'obj','func'=>'GetPriceProgres'),$_smarty_tpl);?>
|
|
</td>
|
|
</tr>
|
|
<tr class="none">
|
|
<td>Ilość zmiany ceny (wieksze od):</td>
|
|
<td class="left">
|
|
<?php echo smarty_function_formField(array('name'=>'count_progres','class'=>'inputWidth141 input100percent','errorClass'=>'validate','type'=>'text','obj'=>'obj','func'=>'getCountProgres'),$_smarty_tpl);?>
|
|
|
|
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['count_progres'])) {?><div style="color: red;" id="actionError" class="validate"><?php echo $_smarty_tpl->tpl_vars['error']->value['count_progres'];?>
|
|
</div><?php }?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Jednostka miary:</td>
|
|
<td class="left">
|
|
<?php echo smarty_function_formField(array('name'=>'unit','class'=>'inputWidth141 input100percent','errorClass'=>'validate','type'=>'text','obj'=>'obj','func'=>'getUnit'),$_smarty_tpl);?>
|
|
|
|
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['unit'])) {?><div style="color: red;" id="actionError" class="validate"><?php echo $_smarty_tpl->tpl_vars['error']->value['unit'];?>
|
|
</div><?php }?>
|
|
</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>
|
|
|
|
</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']);?>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="cb"></div>
|
|
<div class="panelButtons">
|
|
|
|
<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='<?php echo smarty_function_url(array('Calc'=>'Index'),$_smarty_tpl);?>
|
|
';"/>
|
|
|
|
|
|
<input type="submit" value="Zapisz" name="doCategoryEdit"/>
|
|
</div>
|
|
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
|
|
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
|
|
</form>
|
|
<?php }
|
|
}
|