update
This commit is contained in:
@@ -0,0 +1,341 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.30, created on 2024-02-03 21:24:35
|
||||
from "/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Structure/ModernEdit.tpl" */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.30',
|
||||
'unifunc' => 'content_65beaf13f13795_42149812',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'790cc5e60caef3f5d725163718f23ba496e015ee' =>
|
||||
array (
|
||||
0 => '/home/zurawikn/public_html/zurawik_aem/Admin/template/partial/Structure/ModernEdit.tpl',
|
||||
1 => 1705956124,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_65beaf13f13795_42149812 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if (!is_callable('smarty_function_url')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.url.php';
|
||||
if (!is_callable('smarty_block_dropDownContainer')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/block.dropDownContainer.php';
|
||||
if (!is_callable('smarty_function_formField')) require_once '/home/zurawikn/public_html/zurawik_aem/core/plugins/Smarty/function.formField.php';
|
||||
if (!is_callable('smarty_function_html_options')) require_once '/home/zurawikn/public_html/zurawik_aem/core/lib/Smarty3/plugins/function.html_options.php';
|
||||
?>
|
||||
<h1>Edytuj element</h1>
|
||||
<form action="<?php echo smarty_function_url(array('label'=>'editStructure','id'=>$_smarty_tpl->tpl_vars['objElement']->value->GetId()),$_smarty_tpl);?>
|
||||
" id="sendForm" method="post" enctype="multipart/form-data" >
|
||||
<div class="panelRightBody">
|
||||
<div class="paddedContent">
|
||||
<input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetId();?>
|
||||
" />
|
||||
<input type="hidden" name="idRouter" value="<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetIdRouter();?>
|
||||
" />
|
||||
<input type="hidden" name="sort" value="<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetSort();?>
|
||||
" />
|
||||
<input type="hidden" name="idParent" value="<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetIdParent();?>
|
||||
" />
|
||||
<input type="hidden" name="idMain" value="<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetIdMain();?>
|
||||
" />
|
||||
<input type="hidden" name="location" value="<?php echo $_smarty_tpl->tpl_vars['location']->value;?>
|
||||
" />
|
||||
<input type="hidden" name="type" value="1" />
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>'Ogólne'));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>'Ogólne'), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<table class="commonTable" cellpadding="5" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td>Nazwa elementu:</td>
|
||||
<td class="left"><?php echo smarty_function_formField(array('name'=>'elementName','class'=>'inputWidth141 input100percent','errorClass'=>'validate','type'=>'text','obj'=>'objElement','func'=>'GetElementName'),$_smarty_tpl);?>
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['elementName'])) {?><div style="color: red;" id="actionError" class="validate"><?php echo $_smarty_tpl->tpl_vars['error']->value['elementName'];?>
|
||||
</div><?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Tytuł strony:</td>
|
||||
<td class="left"><?php echo smarty_function_formField(array('name'=>'title','class'=>'inputWidth141 input100percent','errorClass'=>'validate','type'=>'text','obj'=>'objElement','func'=>'GetName'),$_smarty_tpl);?>
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['title'])) {?><div style="color: red;" id="actionError" class="validate"><?php echo $_smarty_tpl->tpl_vars['error']->value['title'];?>
|
||||
</div><?php }?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Subtytuł strony:</td>
|
||||
<td class="left"><?php echo smarty_function_formField(array('name'=>'subname','class'=>'inputWidth141 input100percent','errorClass'=>'validate','type'=>'text','obj'=>'objElement','func'=>'GetSubname'),$_smarty_tpl);?>
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['subname'])) {?><div style="color: red;" id="actionError" class="validate"><?php echo $_smarty_tpl->tpl_vars['error']->value['subname'];?>
|
||||
</div><?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>Typ:</td>
|
||||
<td class="left">
|
||||
<input type="hidden" name="type" value="1" />
|
||||
<select name="type">
|
||||
<option value="1" <?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetType() == '1') {?>selected<?php }?>>
|
||||
Menu Top
|
||||
</option>
|
||||
|
||||
<option value="2" <?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetType() == '2') {?>selected<?php }?>>
|
||||
Pozostałe
|
||||
</option>
|
||||
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php if ($_smarty_tpl->tpl_vars['lang']->value != 'pl') {?>
|
||||
<tr>
|
||||
<td>Odpowiednik w wersji polskiej:</td>
|
||||
<td class="left">
|
||||
<input type="hidden" name="type" value="1" />
|
||||
<select name="idStructurePl">
|
||||
<option value="0" >
|
||||
</option>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['arrayStructurePl']->value, 'structureName', false, 'idStructurePl');
|
||||
if ($_from !== null) {
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['idStructurePl']->value => $_smarty_tpl->tpl_vars['structureName']->value) {
|
||||
?>
|
||||
<option value="<?php echo $_smarty_tpl->tpl_vars['idStructurePl']->value;?>
|
||||
" <?php if ($_smarty_tpl->tpl_vars['slectedLang']->value == $_smarty_tpl->tpl_vars['idStructurePl']->value) {?> selected<?php }?> >
|
||||
<?php echo $_smarty_tpl->tpl_vars['structureName']->value;?>
|
||||
|
||||
</option>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<tr>
|
||||
<td style="width:30%">Publikuj:</td>
|
||||
<td>
|
||||
<input class="input" type="checkbox" name="publication" id="publication" value="1" <?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetPublication()) {?>checked<?php }?> />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:30%">Publikuj w menu:</td>
|
||||
<td>
|
||||
<input class="input" type="checkbox" name="publication_menu" id="publication_menu" value="1" <?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetPublicationMenu()) {?>checked<?php }?> />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>'Ogólne'), 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'=>'Właściwości (SEO)','isClose'=>true));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>'Właściwości (SEO)','isClose'=>true), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<?php $_smarty_tpl->_assignInScope('metaTagDescriptionObj', $_smarty_tpl->tpl_vars['objMetaTag']->value->GetDescriptionObj());
|
||||
?>
|
||||
|
||||
<table class="commonTable" cellpadding="5" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td>Url</td>
|
||||
<td>
|
||||
<input class="input" type="text" name="url" id="url" size="60" value="<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetUrl();?>
|
||||
" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Tytuł w menu:<br /></td>
|
||||
<td class="left"><input class="input420" type="text" name="menuName" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['objElement']->value->GetMenuName(), ENT_QUOTES, 'ISO-8859-1', true);?>
|
||||
" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>META Description:<br /></td>
|
||||
<td class="left"><textarea name="meta_description" cols="77"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['metaTagDescriptionObj']->value->GetDescription(), ENT_QUOTES, 'ISO-8859-1', true);?>
|
||||
</textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>META Keywords:<br /></td>
|
||||
<td class="left"><input class="input420" type="text" name="meta_keywords" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['metaTagDescriptionObj']->value->GetKeywords(), ENT_QUOTES, 'ISO-8859-1', true);?>
|
||||
" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Skrypt statystyk*:<br /></td>
|
||||
<td class="left"><textarea name="statistic" cols="77"><?php echo $_smarty_tpl->tpl_vars['metaTagDescriptionObj']->value->GetStatistic();?>
|
||||
</textarea> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><span style="font-size: 9px;">* W polu statystyk może być tylko kod statystyk!</span></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>'Właściwości (SEO)','isClose'=>true), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
|
||||
|
||||
<?php $_smarty_tpl->_assignInScope('EditImgList', true);
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('TitleImgList', 'Zdjecie na listy');
|
||||
?>
|
||||
<?php if ($_smarty_tpl->tpl_vars['objModule']->value->Getid() == 3 || $_smarty_tpl->tpl_vars['objModule']->value->Getid() == 4) {?>
|
||||
<?php $_smarty_tpl->_assignInScope('EditImgList', false);
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('TitleImgList', 'Zdjecie na listy');
|
||||
?>
|
||||
<?php }?>
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>$_smarty_tpl->tpl_vars['TitleImgList']->value,'isClose'=>false,'isHidden'=>$_smarty_tpl->tpl_vars['EditImgList']->value));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>$_smarty_tpl->tpl_vars['TitleImgList']->value,'isClose'=>false,'isHidden'=>$_smarty_tpl->tpl_vars['EditImgList']->value), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<div class="floatLeft" style="margin-left: 10px;">
|
||||
<?php if ($_smarty_tpl->tpl_vars['objElement']->value->GetPicture()) {?><img src="<?php echo $_smarty_tpl->tpl_vars['objElement']->value->GetPictureUrl();?>
|
||||
" /><?php }?>
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<div class="articlePreviewRight">
|
||||
<input type="file" name="filename" />
|
||||
</div>
|
||||
|
||||
<div class="clearBoth"></div>
|
||||
<div class="articlePreviewRight">
|
||||
<input type="checkbox" name="deletePhoto" > Usuń obrazek
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>$_smarty_tpl->tpl_vars['TitleImgList']->value,'isClose'=>false,'isHidden'=>$_smarty_tpl->tpl_vars['EditImgList']->value), ob_get_clean(), $_smarty_tpl, $_block_repeat1);
|
||||
}
|
||||
array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>
|
||||
|
||||
|
||||
|
||||
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['editStructure']->value)) {?>
|
||||
<?php echo $_smarty_tpl->tpl_vars['editStructure']->value;?>
|
||||
|
||||
<?php }?>
|
||||
<div id="addedModuleTop"></div>
|
||||
<?php if (isset($_smarty_tpl->tpl_vars['addModuleSharedVariableArray']->value) && is_array($_smarty_tpl->tpl_vars['addModuleSharedVariableArray']->value)) {?>
|
||||
<?php
|
||||
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['addModuleSharedVariableArray']->value, 'addModuleSharedVariable', false, 'keyModule');
|
||||
if ($_from !== null) {
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['keyModule']->value => $_smarty_tpl->tpl_vars['addModuleSharedVariable']->value) {
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('actionSetModuleItem', $_smarty_tpl->tpl_vars['actionSetModule']->value[$_smarty_tpl->tpl_vars['keyModule']->value]);
|
||||
?>
|
||||
<div class="moduleContainer" id="addedModule_<?php echo $_smarty_tpl->tpl_vars['keyModule']->value;?>
|
||||
">
|
||||
<?php $_smarty_tpl->_assignInScope('moduleBoxId', $_smarty_tpl->tpl_vars['actionSetModuleItem']->value['runSharedVariable']);
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('moduleName', $_smarty_tpl->tpl_vars['actionSetModuleItem']->value['moduleName']);
|
||||
?>
|
||||
<?php $_smarty_tpl->_assignInScope('modulePublication', $_smarty_tpl->tpl_vars['actionSetModuleItem']->value['modulePublication']);
|
||||
?>
|
||||
<?php echo $_smarty_tpl->tpl_vars['addedModule_'.($_smarty_tpl->tpl_vars['keyModule']->value)]->value;?>
|
||||
|
||||
<input type="hidden" name="addModuleController[]" value="<?php echo $_smarty_tpl->tpl_vars['actionSetModuleItem']->value['moduleController'];?>
|
||||
" />
|
||||
<input type="hidden" name="addModuleMetodAdmin[]" value="<?php echo $_smarty_tpl->tpl_vars['actionSetModuleItem']->value['moduleMetodAdmin'];?>
|
||||
" />
|
||||
<input type="hidden" name="addModuleMetod[]" value="<?php echo $_smarty_tpl->tpl_vars['actionSetModuleItem']->value['moduleMetod'];?>
|
||||
" />
|
||||
<input type="hidden" name="addModuleId[]" value="<?php echo $_smarty_tpl->tpl_vars['actionSetModuleItem']->value['moduleId'];?>
|
||||
" />
|
||||
<input type="hidden" name="addModuleName[]" value="<?php echo $_smarty_tpl->tpl_vars['actionSetModuleItem']->value['moduleName'];?>
|
||||
" />
|
||||
<input type="hidden" name="addModuleCategoryId[]" value="<?php echo $_smarty_tpl->tpl_vars['actionSetModuleItem']->value['moduleCategoryId'];?>
|
||||
" />
|
||||
<input type="hidden" name="addModuleElementId[]" value="<?php echo $_smarty_tpl->tpl_vars['actionSetModuleItem']->value['moduleElementId'];?>
|
||||
" />
|
||||
<input type="hidden" name="addModuleDelete[]" value="" id="to_delete_addedModule_<?php echo $_smarty_tpl->tpl_vars['keyModule']->value;?>
|
||||
" />
|
||||
<input type="hidden" name="addModulePublication[]" value="<?php echo $_smarty_tpl->tpl_vars['modulePublication']->value;?>
|
||||
" id="publication_addedModule_<?php echo $_smarty_tpl->tpl_vars['keyModule']->value;?>
|
||||
" />
|
||||
<input type="hidden" name="addNewModule[]" value="0" />
|
||||
<div class="cb"></div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
||||
?>
|
||||
|
||||
|
||||
<?php }?>
|
||||
<div id="addedModuleBottom"></div>
|
||||
<div class="addModuleContainer"></div>
|
||||
<div class="addModuleContainerTemp"></div>
|
||||
|
||||
<div class="cb"></div>
|
||||
<div class="left"><a class="addModule" title="Dodaj moduł do strony" onclick="$('#AddModule').show(); $('.addModule').hide();">Dodaj moduł </a></div>
|
||||
<?php $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('dropDownContainer', array('title'=>'Moduł strony','idMain'=>'AddModule','isHidden'=>true));
|
||||
$_block_repeat1=true;
|
||||
echo smarty_block_dropDownContainer(array('title'=>'Moduł strony','idMain'=>'AddModule','isHidden'=>true), null, $_smarty_tpl, $_block_repeat1);
|
||||
while ($_block_repeat1) {
|
||||
ob_start();
|
||||
?>
|
||||
|
||||
<table class="commonTable" cellpadding="5" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td>Wybierz rodzaj modułu:</td>
|
||||
<td class="left"><select name="idModuleAdd" id="idModule"
|
||||
onchange="GetModuleCategory(document.getElementById('idModule').value, '<?php echo smarty_function_url(array('structure'=>'AjaxGetModuleCategory'),$_smarty_tpl);?>
|
||||
');">
|
||||
<option value="0">Wybierz</option> <?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['arrayModuleName']->value),$_smarty_tpl);?>
|
||||
|
||||
</select> <a href=""></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id="categoryOptionsName"> </td>
|
||||
<td class="left" id="categoryOptions"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="cb"></div>
|
||||
<div class="panelButtons" style="text-align: left;">
|
||||
<input class="cancel mini" type="button" name="back" value="Anuluj" onclick="$('#AddModule').hide(); $('.addModule').show();" />
|
||||
<input class="dalej mini" id="dalejPopover" type="button" name="name" value="Dalej" style="display: none;" onclick="AddModule('<?php echo smarty_function_url(array('Structure'=>"AjaxAddModule"),$_smarty_tpl);?>
|
||||
', '.addModuleContainer', $('#idModule').val(), $('#moduleCategoryId').val(), true);"/>
|
||||
|
||||
</div>
|
||||
<?php $_block_repeat1=false;
|
||||
echo smarty_block_dropDownContainer(array('title'=>'Moduł strony','idMain'=>'AddModule','isHidden'=>true), 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="javascript:document.location.href = '<?php echo smarty_function_url(array('label'=>'current'),$_smarty_tpl);?>
|
||||
'"/>
|
||||
|
||||
<input type="submit" value="Zapisz" name="EditStructureForm"/>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
<?php }
|
||||
}
|
||||
Reference in New Issue
Block a user