Files
aktualia.com.pl/_rejestracja/_Admin/temp/compile/a011ebd08c9cc966258fd7452eb351b649fa1bd3_0.file.Add.tpl.php
2026-04-24 15:32:21 +02:00

157 lines
6.8 KiB
PHP

<?php
/* Smarty version 3.1.30, created on 2017-04-04 14:31:42
from "D:\makl\xampp\htdocs\www\2017\wod_co\dev\src\Admin\template\partial\Calc\Add.tpl" */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.30',
'unifunc' => 'content_58e3922e8ab0e9_82599907',
'has_nocache_code' => false,
'file_dependency' =>
array (
'a011ebd08c9cc966258fd7452eb351b649fa1bd3' =>
array (
0 => 'D:\\makl\\xampp\\htdocs\\www\\2017\\wod_co\\dev\\src\\Admin\\template\\partial\\Calc\\Add.tpl',
1 => 1491308487,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_58e3922e8ab0e9_82599907 (Smarty_Internal_Template $_smarty_tpl) {
if (!is_callable('smarty_function_url')) require_once 'D:\\makl\\xampp\\htdocs\\www\\2017\\wod_co\\dev\\src\\core\\plugins\\Smarty\\function.url.php';
if (!is_callable('smarty_block_dropDownContainer')) require_once 'D:\\makl\\xampp\\htdocs\\www\\2017\\wod_co\\dev\\src\\core\\plugins\\Smarty\\block.dropDownContainer.php';
if (!is_callable('smarty_function_formField')) require_once 'D:\\makl\\xampp\\htdocs\\www\\2017\\wod_co\\dev\\src\\core\\plugins\\Smarty\\function.formField.php';
?>
<h1>Dodaj 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'=>'Add'),$_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>
<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>
<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>
<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>
<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);?>
'"/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<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 }
}