168 lines
8.0 KiB
Twig
168 lines
8.0 KiB
Twig
|
{% include "headitem.html.twig" with {title: "D3TBCLEXTSEARCH_SETTINGS_BROWSER"|translate} %}
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
<!--
|
||
|
{% if updatelist == 1 %}
|
||
|
UpdateList('{{ oxid }}');
|
||
|
{% endif %}
|
||
|
|
||
|
function UpdateList( sID)
|
||
|
{
|
||
|
let oSearch = parent.list.document.getElementById("search");
|
||
|
oSearch.oxid.value=sID;
|
||
|
oSearch.fnc.value='';
|
||
|
oSearch.submit();
|
||
|
}
|
||
|
|
||
|
function EditThis( sID)
|
||
|
{
|
||
|
let oTransfer = document.getElementById("transfer");
|
||
|
oTransfer.oxid.value=sID;
|
||
|
oTransfer.cl.value='';
|
||
|
oTransfer.submit();
|
||
|
|
||
|
let oSearch = parent.list.document.getElementById("search");
|
||
|
oSearch.actedit.value = 0;
|
||
|
oSearch.oxid.value=sID;
|
||
|
oSearch.submit();
|
||
|
}
|
||
|
-->
|
||
|
</script>
|
||
|
|
||
|
<style type="text/css">
|
||
|
<!--
|
||
|
fieldset {
|
||
|
border: 1px inset black;
|
||
|
background-color: #F0F0F0;
|
||
|
}
|
||
|
|
||
|
legend {
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
|
||
|
.ext_edittext {
|
||
|
padding: 2px;
|
||
|
}
|
||
|
|
||
|
.edittext select.editinput {
|
||
|
width: auto;
|
||
|
}
|
||
|
-->
|
||
|
</style>
|
||
|
|
||
|
{% if readonly %}
|
||
|
{% set readonly = "readonly disabled" %}
|
||
|
{% else %}
|
||
|
{% set readonly = "" %}
|
||
|
{% endif %}
|
||
|
|
||
|
<form name="transfer" id="transfer" action="{{ oViewConf.getSelfLink()|raw}}" method="post">
|
||
|
{{ oViewConf.getHiddenSid()|raw }}
|
||
|
<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>
|
||
|
|
||
|
{% if oView.getValueStatus() == 'error' %}
|
||
|
<form name="myedit" id="myedit" enctype="multipart/form-data" action="{{ oViewConf.getSelfLink()|raw}}" method="post">
|
||
|
<input type="hidden" name="MAX_FILE_SIZE" value="2000000">
|
||
|
{{ oViewConf.getHiddenSid()|raw }}
|
||
|
<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[oxid]" value="{{ oxid }}">
|
||
|
|
||
|
<b>{{ translate({ ident: "D3_EXTSEARCH_MAIN_NOCONFIG_DESC" }) }}</b><br>
|
||
|
<input type="submit" value="{{ translate({ ident: "D3_EXTSEARCH_MAIN_NOCONFIG_BTN" }) }}" {{ readonly }}>
|
||
|
</form>
|
||
|
{% else %}
|
||
|
|
||
|
<form name="myedit" id="myedit" enctype="multipart/form-data" action="{{ oViewConf.getSelfLink()|raw}}" method="post">
|
||
|
<input type="hidden" name="MAX_FILE_SIZE" value="2000000">
|
||
|
{{ oViewConf.getHiddenSid()|raw }}
|
||
|
<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[oxid]" value="{{ oxid }}">
|
||
|
|
||
|
<fieldset>
|
||
|
<legend>{{ translate({ ident: "D3_EXTSEARCH_PLUGIN_SETTINGS" }) }}</legend>
|
||
|
<table style="width:100%;padding:0;border:0">
|
||
|
{% block d3_cfg_extsearch_plugins__form %}
|
||
|
<tr>
|
||
|
<td class="edittext ext_edittext">
|
||
|
<label for="enablePluginBrowserInstall">{{ translate({ ident: "D3_EXTSEARCH_PLUGIN_SEARCHACTIVE" }) }}</label>
|
||
|
</td>
|
||
|
<td class="edittext ext_edittext">
|
||
|
<input type="hidden" name="value[blExtSearch_enablePluginBrowserInstall]" value="0">
|
||
|
<input id="enablePluginBrowserInstall" class="edittext ext_edittext" type="checkbox" name="value[blExtSearch_enablePluginBrowserInstall]" value='1' {% if edit.getEditValue('blExtSearch_enablePluginBrowserInstall') == 1 %}checked{% endif %} {{ readonly }}>
|
||
|
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_PLUGIN_SEARCHACTIVE_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_PLUGIN_SEARCHACTIVE_DESC")} %}
|
||
|
</td>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<td class="edittext ext_edittext">
|
||
|
<label for="enablePluginLink">{{ translate({ ident: "D3_EXTSEARCH_PLUGIN_INSTALLLINK" }) }}</label>
|
||
|
</td>
|
||
|
<td class="edittext ext_edittext">
|
||
|
<input type="hidden" name="value[blExtSearch_enablePluginLink]" value="0">
|
||
|
<input id="enablePluginLink" class="edittext ext_edittext" type="checkbox" name="value[blExtSearch_enablePluginLink]" value='1' {% if edit.getEditValue('blExtSearch_enablePluginLink') == 1 %}checked{% endif %} {{ readonly }}>
|
||
|
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_PLUGIN_INSTALLLINK_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_PLUGIN_INSTALLLINK_DESC")} %}
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="edittext ext_edittext">
|
||
|
<label for="PluginIcon">{{ translate({ ident: "D3_EXTSEARCH_PLUGIN_SEARCHICON" }) }}</label>
|
||
|
</td>
|
||
|
<td class="edittext ext_edittext">
|
||
|
<input id="PluginIcon" class="edittext ext_edittext" type="file" name="value[sExtSearch_PluginIcon]" value='{{ edit.getEditValue('sExtSearch_PluginIcon') }}' {{ readonly }}><br>
|
||
|
{% if edit.getEditValue('sExtSearch_PluginIcon') %}{{ edit.getEditValue('sExtSearch_PluginIcon') }} <img src="{{ oViewConf.getBaseDir() }}{{ edit.getEditValue('sExtSearch_PluginIcon') }}" style="margin-top: 3px;">{% else %}{{ translate({ ident: "D3_EXTSEARCH_PLUGIN_CHOOSEICON" }) }}{% endif %}
|
||
|
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_PLUGIN_SEARCHICON_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_PLUGIN_SEARCHICON_DESC")} %}
|
||
|
</td>
|
||
|
</tr>
|
||
|
{% endblock %}
|
||
|
</table>
|
||
|
</fieldset>
|
||
|
|
||
|
|
||
|
<table style="width:100%;">
|
||
|
<tr>
|
||
|
<td class="edittext ext_edittext" style="text-align: left;"><br>
|
||
|
<span class="d3modcfg_btn icon d3color-green">
|
||
|
<button type="submit" name="save" {{ readonly }}>
|
||
|
<i class="fa fa-check-circle fa-inverse"></i>{{ translate({ ident: "D3_EXTSEARCH_PLUGIN_SAVE" }) }}
|
||
|
</button>
|
||
|
</span>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
|
||
|
</form>
|
||
|
|
||
|
<fieldset>
|
||
|
<legend>{{ translate({ ident: "D3_EXTSEARCH_PLUGIN_GENERATE" }) }}</legend>
|
||
|
|
||
|
{{ translate({ ident: "D3_EXTSEARCH_PLUGIN_GENERATEFILE" }) }}
|
||
|
<form name="myedit2" id="myedit2" action="{{ oViewConf.getSelfLink()|raw}}" method="post">
|
||
|
{{ oViewConf.getHiddenSid()|raw }}
|
||
|
<input type="hidden" name="cl" value="{{ oViewConf.getActiveClassName() }}">
|
||
|
<input type="hidden" name="fnc" value="generatePluginFile">
|
||
|
<input type="hidden" name="oxid" value="{{ oxid }}">
|
||
|
<input type="hidden" name="editval[oxid]" value="{{ oxid }}">
|
||
|
|
||
|
<span class="d3modcfg_btn d3color-blue">
|
||
|
{% set escapedCl = oViewConf.getActiveClassName()|escape("url") %}
|
||
|
{% set clParam = "cl="|cat(escapedCl) %}
|
||
|
<input type="submit" name="save" value="{{ translate({ ident: "D3_EXTSEARCH_PLUGIN_STARTGENERATING" }) }}" onclick="window.open('{{ oViewConf.getSelfLink()|raw}}&sid={{ shop.sid }}&{{ clParam }}&fnc=generatePluginFile', 'generate_plugin', 'width=300, height=300, left=100'); return false;" {{ readonly }}>
|
||
|
</span>
|
||
|
<br><br>
|
||
|
{{ translate({ ident: "D3_EXTSEARCH_PLUGIN_GENERATENOTICE" }) }}
|
||
|
</form>
|
||
|
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_PLUGIN_GENERATE_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_PLUGIN_GENERATE_DESC")} %}
|
||
|
</fieldset>
|
||
|
{% endif %}
|
||
|
|
||
|
{% include "@d3modcfg_lib/admin/inc/inc.html.twig" %}
|