ExtSearch/views/smarty/admin/d3_cfg_extsearchsyneditor_main.tpl

159 lines
8.3 KiB
Smarty
Raw Normal View History

2024-02-09 18:44:23 +01:00
[{include file="headitem.tpl" title="D3MXEXTSEARCH_SYNEDITOR"|oxmultilangassign}]
<script type="text/javascript">
<!--
window.onload = function ()
{
[{if $updatelist == 1}]
top.oxid.admin.updateList('[{$oxid}]');
[{/if}]
let oField = top.oxid.admin.getLockTarget();
oField.onchange = oField.onkeyup = oField.onmouseout = top.oxid.admin.unlockSave;
}
-->
</script>
<style type="text/css">
<!--
fieldset {
border: 1px inset black;
background-color: #F0F0F0;
}
legend {
font-weight: bold;
}
dl dt {
font-weight: normal;
width: 55%;
}
.ext_edittext {
padding: 2px;
}
.edittext select.editinput {
width: auto;
}
-->
</style>
[{if $readonly}]
[{assign var="readonly" value="readonly disabled"}]
[{else}]
[{assign var="readonly" value=""}]
[{/if}]
<form name="transfer" id="transfer" action="[{$oViewConf->getSelfLink()}]" method="post">
[{$oViewConf->getHiddenSid()}]
<input type="hidden" name="oxid" value="[{$oxid}]">
<input type="hidden" name="cl" value="[{$oViewConf->getActiveClassName()}]">
<input type="hidden" name="actshop" value="[{$shop->id}]">
<input type="hidden" name="editlanguage" value="[{$editlanguage}]">
</form>
<form name="myedit" id="myedit" action="[{$oViewConf->getSelfLink()}]" method="post" style="padding: 0;margin: 0;height:0;">
[{$oViewConf->getHiddenSid()}]
<input type="hidden" name="cl" value="[{$oViewConf->getActiveClassName()}]">
<input type="hidden" name="fnc" value="save">
<input type="hidden" name="oxid" value="[{$oxid}]">
<input type="hidden" name="editval[d3_extsearch_term__oxid]" value="[{$oxid}]">
<table style="width:98%;padding:0;border:0">
<tr>
<td class="edittext" style="vertical-align:top;padding-top:10px;padding-left:10px; width: 50%;">
<table style="padding:0;border:0">
<tr>
<td class="edittext" style="width:120px;">
<label for="term__word">[{oxmultilang ident="D3_EXTSEARCH_SYNED_MAIN_WORD"}]</label>
</td>
<td class="edittext">
<input type="text" class="editinput" size="32" maxlength="[{$edit->d3_extsearch_term__word->fldmax_length}]" id="term__word" name="editval[d3_extsearch_term__word]" value="[{$edit->getFieldData('word')}]" [{$readonly}]>
[{oxinputhelp ident="D3_EXTSEARCH_SYNED_MAIN_WORD_DESC"}]
</td>
</tr>
<tr>
<td class="edittext" style="width:120px;">
<label for="term__user_comment">[{oxmultilang ident="D3_EXTSEARCH_SYNED_MAIN_COMMENT"}]</label>
</td>
<td class="edittext">
<input type="text" class="editinput" size="32" maxlength="[{$edit->d3_extsearch_term__user_comment->fldmax_length}]" id="term__user_comment" name="editval[d3_extsearch_term__user_comment]" value="[{$edit->getFieldData('user_comment')}]" [{$readonly}]>
[{oxinputhelp ident="D3_EXTSEARCH_SYNED_MAIN_COMMENT_DESC"}]
</td>
</tr>
</table>
</td>
<!-- Anfang rechte Seite -->
<td class="edittext" style="text-align: left;vertical-align:top;width:100%;height:99%;padding-left:5px;padding-bottom:30px;padding-top:10px;">
<table style="padding:0;border:0">
<tr>
<td class="edittext" style="width:120px;">
<label for="term__synset_id">[{oxmultilang ident="D3_EXTSEARCH_SYNED_MAIN_SYNSETID"}]</label>
</td>
<td class="edittext">
[{if $oxid != '-1'}]
<input type="text" class="editinput" size="32" maxlength="[{$edit->d3_extsearch_term__synset_id->fldmax_length}]" id="term__synset_id" name="editval[d3_extsearch_term__synset_id]" value="[{$edit->getFieldData('synset_id')}]" [{$readonly}]>
[{else}]
[{$oView->getNextSynsetId()}]
[{/if}]
[{oxinputhelp ident="D3_EXTSEARCH_SYNED_MAIN_SYNSETID_DESC"}]
</td>
</tr>
<tr>
<td class="edittext" style="width:120px;">
<label for="synIsVisible">[{oxmultilang ident="D3_EXTSEARCH_SYNED_MAIN_ISVISIBLE"}]</label>
</td>
<td class="edittext">
<input type="hidden" name="synset[d3_extsearch_synset__is_visible]" value="0">
<input id="synIsVisible" class="edittext ext_edittext" type="checkbox" name="synset[d3_extsearch_synset__is_visible]" value="1" [{if $synset->getFieldData('is_Visible') == 1}]checked[{/if}] [{$readonly}]>
[{oxinputhelp ident="D3_EXTSEARCH_SYNED_MAIN_ISVISIBLE_DESC"}]
</td>
</tr>
<tr>
<td class="edittext" style="width:120px;">
<label for="term__language_id">[{oxmultilang ident="D3_EXTSEARCH_SYNED_MAIN_LANGUAGE"}]</label>
</td>
<td class="edittext">
<select class="editinput" name="editval[d3_extsearch_term__language_id]" id="term__language_id" [{$readonly}]>
[{foreach from=$oView->getLanguageList() item="oLanguage"}]
<option value="[{$oLanguage->id}]"[{if $oLanguage->selected && $oxid == '-1' || $edit->getFieldData('language_id') == $oLanguage->id}] selected[{/if}]>[{$oLanguage->name}] [{if $oView->convertBin2Int($oLanguage->active) == 0}][{oxmultilang ident="D3_EXTSEARCH_SYNED_MAIN_LANGUAGE_DISABLED"}][{/if}]</option>
[{/foreach}]
</select>
[{oxinputhelp ident="D3_EXTSEARCH_SYNED_MAIN_LANGUAGE_DESC"}]
</td>
</tr>
<tr>
<td class="edittext" style="width:120px;">
[{oxmultilang ident="D3_EXTSEARCH_SYNED_MAIN_SYNONYMUSE"}]
</td>
<td class="edittext">
<input type="hidden" name="synset[d3_extsearch_synset__useforterms]" value="0">
<input id="synUseForTerms" class="edittext ext_edittext" type="checkbox" name="synset[d3_extsearch_synset__useforterms]" value="1" [{if $synset->getFieldData('useForTerms') == 1}]checked[{/if}] [{$readonly}]>
<label for="synUseForTerms">[{oxmultilang ident="D3_EXTSEARCH_SYNED_MAIN_SYNONYMUSEFORTERMS"}]</label> [{oxinputhelp ident="D3_EXTSEARCH_SYNED_MAIN_SYNONYMUSEFORTERMS_DESC"}]<br>
<input type="hidden" name="synset[d3_extsearch_synset__useforattributes]" value="0">
<input id="synUseForAttributes" class="edittext ext_edittext" type="checkbox" name="synset[d3_extsearch_synset__useforattributes]" value="1" [{if $synset->getFieldData('useForAttributes') == 1}]checked[{/if}] [{$readonly}]>
<label for="synUseForAttributes">[{oxmultilang ident="D3_EXTSEARCH_SYNED_MAIN_SYNONYMUSEFORATTRIBUTES"}]</label> [{oxinputhelp ident="D3_EXTSEARCH_SYNED_MAIN_SYNONYMUSEFORATTRIBUTES_DESC"}]<br>
</td>
</tr>
</table>
</td>
<!-- Ende rechte Seite -->
</tr>
<tr>
<td class="edittext ext_edittext" style="text-align: left;" colspan="2">
<br>
<span class="d3modcfg_btn icon d3color-green">
<button type="submit" name="save" [{$readonly}]>
<i class="fa fa-check-circle fa-inverse"></i>[{oxmultilang ident="D3_EXTSEARCH_MAIN_SAVE"}]
</button>
</span>
</td>
</tr>
</table>
</form>
[{include file="@d3modcfg_lib/admin/inc/inc.tpl"}]