update
This commit is contained in:
249
Admin/template/partial/Structure/ModernAdd.tpl
Normal file
249
Admin/template/partial/Structure/ModernAdd.tpl
Normal file
@@ -0,0 +1,249 @@
|
||||
<h1>Dodaj element</h1>
|
||||
<form action="{url label=addStructure}" id="sendForm" method="post" enctype="multipart/form-data" >
|
||||
<input type="hidden" name="id" value="{$objElement->GetId()}" />
|
||||
<input type="hidden" name="idRouter" value="{$objElement->GetIdRouter()}" />
|
||||
<input type="hidden" name="sort" value="{$objElement->GetSort()}" />
|
||||
<input type="hidden" name="idParent" value="{$objElement->GetIdParent()}" />
|
||||
<input type="hidden" name="idMain" value="{$objElement->GetIdMain()}" />
|
||||
<input type="hidden" name="idCategory" value="{$idCategory}" />
|
||||
<input type="hidden" name="sort" value="{$objElement->GetSort()}" />
|
||||
<input type="hidden" name="location" value="{$location}" />
|
||||
<input type="hidden" name="type" value="1" />
|
||||
|
||||
{dropDownContainer title='Ogólne'}
|
||||
<div class="optionIconBox">
|
||||
<a class="optionIcon iconQmark" title="{"Pomoc"|translateAdmin}" onclick="InfoAction('{"help_add_element"|translateAdmin}', 'Pomoc');"> </a>
|
||||
</div>
|
||||
<table class="commonTable" cellpadding="5" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td>Nazwa elementu:</td>
|
||||
<td class="left">
|
||||
<input class="inputWidth141 input100percent" type="text" name="elementName" value="{$objElement->GetElementName()|escape}" />
|
||||
{if isset($error.elementName)}<div style="color: red;" id="actionError" class="validate">{$error.elementName}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Tytuł strony:</td>
|
||||
<td class="left">{formField name='title' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objElement' func='GetName'}
|
||||
{if isset($error.title)}<div style="color: red;" id="actionError" class="validate">{$error.title}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="">
|
||||
<td>subtytuł strony:</td>
|
||||
<td class="left">{formField name='subname' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objElement' func='GetSubname'}
|
||||
{if isset($error.subname)}<div style="color: red;" id="actionError" class="validate">{$error.subname}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
||||
<td>Typ:</td>
|
||||
<td class="left">
|
||||
<input type="hidden" name="type" value="1" />
|
||||
<select name="type">
|
||||
<option value="1" {if $objElement->GetType() == '1'}selected{/if}>
|
||||
Menu Top
|
||||
</option>
|
||||
{*<option value="2" {if $objElement->GetType() == '2'}selected{/if}>
|
||||
Menu Left
|
||||
</option>*}
|
||||
|
||||
<option value="2" {if $objElement->GetType() == '2'}selected{/if}>
|
||||
Pozostałe
|
||||
</option>
|
||||
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
{*if $lang != '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>
|
||||
{foreach from=$arrayStructurePl item=structureName key=idStructurePl}
|
||||
<option value="{$idStructurePl}" >
|
||||
{$structureName}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
{/if*}
|
||||
{*<tr>
|
||||
<td>Kolejność:</td>
|
||||
<td class="left">
|
||||
<input type="text" name="sort" value="{$objElement->GetSort()}" />
|
||||
</td>
|
||||
</tr>*}
|
||||
<tr>
|
||||
<td style="width:30%">Publikuj:</td>
|
||||
<td>
|
||||
<input class="input" type="checkbox" name="publication" id="publication" value="1" {if $objElement->GetPublication()}checked{/if} />
|
||||
</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" {if $objElement->GetPublicationMenu()}checked{/if} />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/dropDownContainer}
|
||||
|
||||
{dropDownContainer title='Właściwości (SEO)' isClose=true}
|
||||
{assign var=metaTagDescriptionObj value=$objMetaTag->GetDescriptionObj()}
|
||||
|
||||
<table class="commonTable" cellpadding="5" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td>Url TODO: sprawdzanie unikalnosci asdesu zabezpieczenie przed dublowaniem</td>
|
||||
<td>
|
||||
{if $objModule->GetList() == 1}
|
||||
{assign var=arrayModuleOptions value=$objModule->GetArrayOptions()}
|
||||
{assign var=matchUri value=$arrayModuleOptions.defaultUrl}
|
||||
<input class="input" type="text" name="url" id="url" size="60" value="{$matchUri}" disabled />
|
||||
<input class="input" type="hidden" name="url" id="url" size="60" value="{$matchUri}" />
|
||||
{else}
|
||||
<input class="input" type="text" name="url" id="url" size="60" value="{$objElement->GetUrl()}" />
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Tytuł w menu:<br /></td>
|
||||
<td class="left"><input class="input420" type="text" name="menuName" value="{$objElement->GetMenuName()|escape}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>META Description:<br /></td>
|
||||
<td class="left"><textarea name="meta_description" cols="77">{$metaTagDescriptionObj->GetDescription()|escape}</textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>META Keywords:<br /></td>
|
||||
<td class="left"><input class="input420" type="text" name="meta_keywords" value="{$metaTagDescriptionObj->GetKeywords()|escape}" /></td>
|
||||
</tr>
|
||||
{*<tr>
|
||||
<td>Skrypt statystyk*:<br /></td>
|
||||
<td class="left"><textarea name="statistic" cols="77">{$metaTagDescriptionObj->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>
|
||||
{/dropDownContainer}
|
||||
|
||||
{if isset($editStructureArticle)}
|
||||
{$editStructureArticle}
|
||||
{/if}
|
||||
{if isset($editStructureProject)}
|
||||
{$editStructureProject}
|
||||
{/if}
|
||||
{if isset($editStructure)}
|
||||
{$editStructure}
|
||||
{/if}
|
||||
|
||||
{if isset($addModuleSharedVariableArray) && is_array($addModuleSharedVariableArray)}
|
||||
{foreach $addModuleSharedVariableArray as $keyModule => $addModuleSharedVariable}
|
||||
{assign var=actionSetModuleItem value=$actionSetModule.$keyModule}
|
||||
{$addModule_{$keyModule}}
|
||||
<input type="hidden" name="addModuleController[]" value="{$actionSetModuleItem.moduleController}" />
|
||||
<input type="hidden" name="addModuleMetodAdmin[]" value="{$actionSetModuleItem.moduleMetodAdmin}" />
|
||||
<input type="hidden" name="addModuleMetod[]" value="{$actionSetModuleItem.moduleMetod}" />
|
||||
<input type="hidden" name="addModuleId[]" value="{$actionSetModuleItem.moduleId}" />
|
||||
<input type="hidden" name="addModuleName[]" value="{$actionSetModuleItem.moduleName}" />
|
||||
<input type="hidden" name="addModuleCategoryId[]" value="{$actionSetModuleItem.moduleCategoryId}" />
|
||||
<input type="hidden" name="addModulePublication[]" value="{$actionSetModuleItem.modulePublication}" id="publication_addedModule_{$keyModule}" />
|
||||
|
||||
{/foreach}
|
||||
|
||||
{/if}
|
||||
|
||||
<div class="addModuleContainer"></div>
|
||||
<div class="addModuleContainerTemp"></div>
|
||||
|
||||
|
||||
{assign var=EditImgList value=true}
|
||||
{assign var=TitleImgList value='Zdjecie na listy'}
|
||||
{if $objModule->Getid() == 3 || $objModule->Getid() == 4}
|
||||
{assign var=EditImgList value=false}
|
||||
{assign var=TitleImgList value='Zdjecie na listy'}
|
||||
{/if}
|
||||
{dropDownContainer title=$TitleImgList isClose=false isHidden=$EditImgList}
|
||||
<div class="articlePreviewRight">
|
||||
<input type="file" name="filename" />
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
{/dropDownContainer}
|
||||
|
||||
{*dropDownContainer title="Baner górny"}
|
||||
<div id="photoDisplay">
|
||||
{if $objElement->GetBanner()} <img src="{$objElement->GetBannerThWhitUrl()}" alt="test" style=" border:1px solid #000000; margin-right:5px; margin-bottom: 5px" /> {/if}<input type="hidden" name="photo" value="{$objElement->GetBanner()}" /> </div>
|
||||
<div class="clearBoth"></div>
|
||||
<div class="error" id="bannerError"></div>
|
||||
<div class="clearBoth"></div>
|
||||
{/dropDownContainer}
|
||||
{dropDownContainer title="Dodaj baner górny"}
|
||||
{assign var=idElement value=$objElement->GetId()}
|
||||
<iframe name="PhotoUpload" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto" height="78" width="625" src="{url Structure='PhotoUpload' id=$idElement}">
|
||||
<noscript>
|
||||
Do wyświetlenia konieczne jest działanie ramek (iframe).
|
||||
</noscript>
|
||||
</iframe>
|
||||
{/dropDownContainer*}
|
||||
|
||||
<div class="cb"></div>
|
||||
<div class="left none"><a class="addModule" title="Dodaj moduł do strony" onclick="$('#AddModule').show();
|
||||
$('.addModule').hide();">Dodaj moduł </a>
|
||||
</div>
|
||||
{dropDownContainer title='Moduł strony' idMain='AddModule' isHidden=true}
|
||||
<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, '{url structure='AjaxGetModuleCategory'}');">
|
||||
<option value="0">Wybierz</option> {html_options
|
||||
options=$arrayModuleName}
|
||||
</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('{url Structure="AjaxAddModule"}', '.addModuleContainer', $('#idModule').val(), $('#moduleCategoryId').val(), false);"/>
|
||||
|
||||
</div>
|
||||
{/dropDownContainer}
|
||||
<div class="cb"></div>
|
||||
<div class="panelButtons">
|
||||
<input type="button" class="cancel" value="Anuluj" name="Anuluj" />
|
||||
|
||||
{*<input type="submit" class="button buttonPodglad" value="" name=""/>*}
|
||||
{*<input type="button" class="button buttonZapisz" value="" name="saveStructure"
|
||||
{if $method != 'Index'} onmouseover="var descriptionEditor = FCKeditorAPI.GetInstance('description'); var descriptionHidden = document.getElementById('descriptionHidden'); descriptionHidden.value = descriptionEditor.GetXHTML(false);" {/if}
|
||||
onclick="{if $method != 'Index'} GetFromFCK('description'); GetFromFCK('shortnote'); {/if} Dosia.Form('sendForm'); return false;" />*}
|
||||
<input type="submit" value="Zapisz" name="AddStructureForm"/>
|
||||
|
||||
</div>
|
||||
<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
|
||||
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user