[{include file="headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]

[{if $oHeidelpayViewConfig->isModuleDemoVersion()}]
    <div class="extension_warning">[{oxmultilang ident="d3_d3heidelpay_is_demo"}]</div>
    [{assign var='sDisableTestModus' value='disabled'}]
[{/if}]

[{if $edit->getErrorMessage()}]
    <div class="extension_error">
        [{$edit->getErrorMessage()}]
    </div>
[{/if}]

[{if $oView->hasOnlyBasicFunctions()}]
    [{assign var="blBasicRestriction" value="disabled"}]
[{/if}]

<style type="text/css">

    td.edittext.disabled { color : darkgrey; }

    td.edittext.disabled input { border : 1px solid lightgray; }

    td.edittext table.disabled,
    td.edittext legend.disabled { color : darkgrey; }

    table { background-color : white; }
    .groupExp dl dt{
        font-weight: normal;
        width: 35%;
        padding-left: 10px;
    }
</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="editlanguage" value="[{$editlanguage}]">
</form>

<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td width="15"></td>

<!-- Anfang linke Seite -->
<td valign="top" class="edittext" align="left">

<form name="myedit" id="myedit" action="[{$oViewConf->getSelfLink()}]" method="post">
[{$oViewConf->getHiddenSid()}]
<input type="hidden" name="cl" value="[{$oViewConf->getActiveClassName()}]">
<input type="hidden" name="fnc" value="">
<input type="hidden" name="oxid" value="[{$oxid}]">
<input type="hidden" name="editval[d3_cfg_mod__oxid]" value="[{$oxid}]">

<table cellspacing="0" cellpadding="0" border="0">
[{if $blBasicRestriction}]
    <tr>
        <td valign="top" class="edittext" colspan="2">
            <div class="extension_warning">[{oxmultilang ident="D3_HEIDELPAY_RESTRICTIONINFO"}]</div>
        </td>
    </tr>
[{/if}]

<tr>
    <td class="edittext">
        <b>[{oxmultilang ident="D3DYN_HEIDELPAY_ACTIVE"}]</b>
        [{oxinputhelp ident="HELP_D3DYN_HEIDELPAY_ACTIVE"}]
    </td>
    <td class="edittext">
        <input type="hidden" name="editval[d3_cfg_mod__oxactive]" value="0">
        <input type="checkbox"
               class="editinput"
               name="editval[d3_cfg_mod__oxactive]"
               value="1"
               title="[{oxmultilang ident="D3DYN_HEIDELPAY_ACTIVE"}]"
               [{if $edit->d3_cfg_mod__oxactive->value == 1}]checked[{/if}]>
    </td>
</tr>

[{if $blCurlMissing}]
    <tr>
        <td class="edittext" colspan="2">
            <span style="color: red; ">[{oxmultilang ident="D3DYN_HEIDELPAY_NOCURL"}]</span>
        </td>
    </tr>
[{/if}]

<tr>
    <td class="edittext">
        [{oxmultilang ident="D3DYN_HEIDELPAY_TESTMOD_ACTIVE"}]
        [{oxinputhelp ident="HELP_D3DYN_HEIDELPAY_TESTMOD_ACTIVE"}]
    </td>
    <td class="edittext">
        <input type="hidden" name="value[d3_cfg_mod__d3heidelpay_blTestmode]" value="0" [{$sDisableTestModus}]>
        <input type="checkbox"
               class="editinput"
               name="value[d3_cfg_mod__d3heidelpay_blTestmode]"
               value="1"
               title="[{oxmultilang ident="D3DYN_HEIDELPAY_TESTMOD_ACTIVE"}]"
               [{if $edit->getValue('d3heidelpay_blTestmode') == 1}]checked[{/if}] [{$sDisableTestModus}]>
    </td>
</tr>
<tr>
    <td class="edittext" colspan="2">
        <br>
        [{oxmultilang ident="D3DYN_HEIDELPAY_PARAMDESCRIPTION"}]
        [{oxinputhelp ident="HELP_D3DYN_HEIDELPAY_PARAMDESCRIPTION"}]
        <br><br>
    </td>
</tr>
<tr>
    <td class="edittext">
        [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_SECURITYSENDER"}]
        [{oxinputhelp ident="HELP_D3DYN_HEIDELPAY_PARAM_SECURITYSENDER"}]
    </td>
    <td class="edittext">
        <input type="text"
               class="editinput"
               name="value[d3_cfg_mod__d3heidelpay_sSecuritySender]"
               id="d3_cfg_mod__d3heidelpay_sSecuritySender"
               value="[{$edit->getValue('d3heidelpay_sSecuritySender')}]"
               title="[{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_SECURITYSENDER"}]"
               style="width:220px;">
    </td>
</tr>
<tr>
    <td class="edittext">
        [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_USERID"}]
        [{oxinputhelp ident="HELP_D3DYN_HEIDELPAY_PARAM_USERID"}]
    </td>
    <td class="edittext">
        <input type="text"
               class="editinput"
               name="value[d3_cfg_mod__d3heidelpay_sUserID]"
               id="d3_cfg_mod__d3heidelpay_sUserID"
               value="[{$edit->getValue('d3heidelpay_sUserID')}]"
               title="[{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_USERID"}]"
               style="width:220px;">
    </td>
</tr>
<tr>
    <td class="edittext">
        [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_PASSWORD"}]
        [{oxinputhelp ident="HELP_D3DYN_HEIDELPAY_PARAM_PASSWORD"}]
    </td>
    <td class="edittext">
        <input type="text"
               class="editinput"
               name="value[d3_cfg_mod__d3heidelpay_sPassword]"
               id="d3_cfg_mod__d3heidelpay_sPassword"
               value="[{$edit->getValue('d3heidelpay_sPassword')}]"
               title="[{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_PASSWORD"}]"
               style="width:220px;">
    </td>
</tr>
<tr>
    <td class="edittext">
        [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE"}]
        [{oxinputhelp ident="HELP_D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE"}]
    </td>
    <td class="edittext">
        <select class="edittext" name="value[d3_cfg_mod__d3heidelpay_sTransType]"
                title="[{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE"}]">
            <option value="auth">[{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_DIRECT"}]</option>
            <option value="preauth"
                    [{if ($edit->getValue("d3heidelpay_sTransType") == "preauth")}]selected[{/if}]>
                [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_RESERVE"}]
            </option>
            <option value="auth_but_foreign_preauth"
                    [{if ($edit->getValue("d3heidelpay_sTransType") == "auth_but_foreign_preauth")}]selected[{/if}]>
                [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_FOREIGNRESERVE"}]
            </option>
        </select>
    </td>
</tr>
<tr>
    <td class="edittext">
        <label for="d3_cfg_mod__d3heidelpay_blCardsUseRG">
            [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_CARDS_USE_RG"}]
        </label>
        [{ oxinputhelp ident="HELP_D3DYN_HEIDELPAY_PARAM_CARDS_USE_RG" }]
    </td>
    <td class="edittext">
        <input type="hidden" name="value[d3_cfg_mod__d3heidelpay_blCardsUseRG]" value="0">
        <input type="checkbox"
               class="editinput"
               id="d3_cfg_mod__d3heidelpay_blCardsUseRG"
               name="value[d3_cfg_mod__d3heidelpay_blCardsUseRG]"
               value="1"
               [{if $edit->getValue('d3heidelpay_blCardsUseRG') == 1}]checked[{/if}]>
    </td>
</tr>

<tr>
    <td class="edittext">
        [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_CHANNEL_STANDARD"}]
        [{oxinputhelp ident="HELP_D3DYN_HEIDELPAY_PARAM_CHANNEL_STANDARD"}]
    </td>
    <td class="edittext">
        <input type="text"
               class="editinput"
               name="value[d3_cfg_mod__d3heidelpay_sChannel]"
               id="d3_cfg_mod__d3heidelpay_sChannel"
               value="[{$edit->getValue('d3heidelpay_sChannel')}]"
               title="[{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_CHANNEL_STANDARD"}]"
               style="width:220px;">
    </td>
</tr>
<tr>
    <td class="edittext">
        [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_CHANNEL_SOFORT"}]
    </td>
    <td class="edittext">
        <input type="text"
               class="editinput"
               style="width:220px;"
               name="value[d3_cfg_mod__d3heidelpay_sChannel__sofort]"
               title="[{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_CHANNEL_SOFORT"}]"
               value="[{$edit->getValue('d3heidelpay_sChannel__sofort')}]">
    </td>
</tr>
<tr>
    <td class="edittext [{$blBasicRestriction}]">
        [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_CHANNEL_EPS"}]
    </td>
    <td class="edittext [{$blBasicRestriction}]">
        <input type="text"
               class="editinput"
               style="width:220px;"
               name="value[d3_cfg_mod__d3heidelpay_sChannel__eps]"
               title="[{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_CHANNEL_EPS"}]"
               value="[{$edit->getValue('d3heidelpay_sChannel__eps')}]" [{$blBasicRestriction}]>
    </td>
</tr>
<tr>
    <td class="edittext [{$blBasicRestriction}]">
        [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_CHANNEL_GIROPAY"}]
    </td>
    <td class="edittext [{$blBasicRestriction}]">
        <input type="text"
               class="editinput"
               style="width:220px;"
               name="value[d3_cfg_mod__d3heidelpay_sChannel__giro]"
               title="[{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_CHANNEL_GIROPAY"}]"
               value="[{$edit->getValue('d3heidelpay_sChannel__giro')}]" [{$blBasicRestriction}]>
    </td>
</tr>
<tr>
    <td class="edittext [{$blBasicRestriction}]">
        [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_CHANNEL_IDEAL"}]
    </td>
    <td class="edittext [{$blBasicRestriction}]">
        <input type="text"
               class="editinput"
               style="width:220px;"
               name="value[d3_cfg_mod__d3heidelpay_sChannel__ideal]"
               title="[{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_CHANNEL_IDEAL"}]"
               value="[{$edit->getValue('d3heidelpay_sChannel__ideal')}]" [{$blBasicRestriction}]>
    </td>
</tr>
<tr>
[{*    <td class="edittext [{$blBasicRestriction}]">
        [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_CHANNEL_POSTFINANCE"}]
    </td>
    <td class="edittext [{$blBasicRestriction}]">
        <input type="text"
               class="editinput"
               style="width:220px;"
               name="value[d3_cfg_mod__d3heidelpay_sChannel__postfinance]"
               value="[{$edit->getValue('d3heidelpay_sChannel__postfinance')}]" [{$blBasicRestriction}]>
    </td>
</tr>
<tr>
*}]
    <td class="edittext">
        [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_CHANNEL_BILLSAFE"}]
    </td>
    <td class="edittext">
        <input type="text"
               class="editinput"
               style="width:220px;"
               name="value[d3_cfg_mod__d3heidelpay_sChannel__billsafe]"
               title="[{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_CHANNEL_BILLSAFE"}]"
               value="[{$edit->getValue('d3heidelpay_sChannel__billsafe')}]">
    </td>
</tr>
<tr>
    <td class="edittext [{$blBasicRestriction}]">
        [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_CHANNEL_ASSUREDINVOICE"}]
    </td>
    <td class="edittext [{$blBasicRestriction}]">
        <input type="text"
               class="editinput"
               style="width:220px;"
               name="value[d3_cfg_mod__d3heidelpay_sChannel__assuredinv]"
               title="[{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_CHANNEL_ASSUREDINVOICE"}]"
               value="[{$edit->getValue('d3heidelpay_sChannel__assuredinv')}]" [{$blBasicRestriction}]>
    </td>
</tr>

<tr>
    <td class="edittext [{$blBasicRestriction}]">
        [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_CHANNEL_PRZELEWY24"}]
    </td>
    <td class="edittext [{$blBasicRestriction}]">
        <input type="text"
               class="editinput"
               style="width:220px;"
               name="value[d3_cfg_mod__d3heidelpay_sChannel__przelewy24]"
               title="[{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_CHANNEL_PRZELEWY24"}]"
               value="[{$edit->getValue('d3heidelpay_sChannel__przelewy24')}]" [{$blBasicRestriction}]>
    </td>
</tr>

<tr>
    <td class="edittext">
        [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_CHANNEL_PAYPAL"}]
    </td>
    <td class="edittext">
        <input type="text"
               class="editinput"
               style="width:220px;"
               name="value[d3_cfg_mod__d3heidelpay_sChannel__paypal]"
               title="[{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_CHANNEL_PAYPAL"}]"
               value="[{$edit->getValue('d3heidelpay_sChannel__paypal')}]">
    </td>
</tr>
<tr>
    <td class="edittext">
        [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_PAYPAL"}]
        [{oxinputhelp ident="HELP_D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_PAYPAL"}]
    </td>
    <td class="edittext">
        <select class="edittext" name="value[d3_cfg_mod__d3heidelpay_sVATransType]"
                title="[{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_PAYPAL"}]">
            <option value="auth">[{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_DIRECT"}]</option>
            <option value="preauth"
                    [{if ($edit->getValue("d3heidelpay_sVATransType") == "preauth")}]selected[{/if}]>
                [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_RESERVE"}]
            </option>
        </select>
    </td>
</tr>
    <tr>
        <td class="edittext [{$blBasicRestriction}]">
            [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_CHANNEL_MASTERPASS"}]
        </td>
        <td class="edittext [{$blBasicRestriction}]">
            <input type="text"
                   class="editinput"
                   style="width:220px;"
                   name="value[d3_cfg_mod__d3heidelpay_sChannel__masterpass]"
                   title="[{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_CHANNEL_MASTERPASS"}]"
                   value="[{$edit->getValue('d3heidelpay_sChannel__masterpass')}]" [{$blBasicRestriction}]>
        </td>
    </tr>
    <tr>
        <td class="edittext [{$blBasicRestriction}]">
            [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_MASTERPASS"}]
            [{oxinputhelp ident="HELP_D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_MASTERPASS"}]
        </td>
        <td class="edittext [{$blBasicRestriction}]">
            <select class="edittext" name="value[d3_cfg_mod__d3heidelpay_sWTTransType]"
                    title="[{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_MASTERPASS"}]" [{$blBasicRestriction}]>
                <option value="auth">[{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_DIRECT"}]</option>
                <option value="preauth"
                        [{if ($edit->getValue("d3heidelpay_sWTTransType") == "preauth")}]selected[{/if}]>
                    [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_RESERVE"}]
                </option>
            </select>
        </td>
    </tr>
<tr>
    <td class="edittext">
        [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_INTERNALLOG"}]
        [{oxinputhelp ident="HELP_D3DYN_HEIDELPAY_PARAM_INTERNALLOG"}]
    </td>
    <td class="edittext">
        <select name="loglevel" class="edittext"
                title="[{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_INTERNALLOG"}]">
            <option value="userdefined">[{oxmultilang ident="D3_CFG_LOG_TYPE_USERDEFINED"}]</option>
            <option value="error" [{if $oView->getLogStatus('error')}] selected[{/if}]>[{oxmultilang ident="D3_CFG_LOG_TYPE_ERROR"}]</option>
            <option value="warning" [{if $oView->getLogStatus('warning')}] selected[{/if}]>[{oxmultilang ident="D3_CFG_LOG_TYPE_WARNING"}]</option>
            <option value="notice" [{if $oView->getLogStatus('notice')}] selected[{/if}]>[{oxmultilang ident="D3_CFG_LOG_TYPE_NOTICE"}]</option>
            <option value="info" [{if $oView->getLogStatus('info')}] selected[{/if}]>[{oxmultilang ident="D3_CFG_LOG_TYPE_INFO"}]</option>
        </select>
    </td>
</tr>
<tr>
    <td class="edittext">
        [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_DEBITUNMASK"}]
        [{oxinputhelp ident="HELP_D3DYN_HEIDELPAY_PARAM_DEBITUNMASK"}]
    </td>
    <td class="edittext">
        <select class="edittext" name="value[d3_cfg_mod__d3heidelpay_blDebitUnmask]"
                title="[{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_DEBITUNMASK"}]">
            <option value="0"
                    [{if ($edit->getValue('d3heidelpay_blDebitUnmask') == "0")}]selected[{/if}]>
                [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_DEBITUNMASK_NO"}]
            </option>
            <option value="1"
                    [{if ($edit->getValue('d3heidelpay_blDebitUnmask')== "1")}]selected[{/if}]>
                [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_DEBITUNMASK_YES"}]
            </option>
        </select>
    </td>
</tr>
<tr>
    <td class="edittext">
        [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_STOREDDATA"}]
        [{oxinputhelp ident="HELP_D3DYN_HEIDELPAY_PARAM_STOREDDATA"}]
    </td>
    <td class="edittext">
        <input type="hidden" name="value[d3_cfg_mod__d3heidelpay_blShowStoredHPData]" value="0">
        <input type="checkbox"
               class="editinput"
               name="value[d3_cfg_mod__d3heidelpay_blShowStoredHPData]"
               value="1"
               title="[{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_STOREDDATA"}]"
               [{if ($edit->getValue('d3heidelpay_blShowStoredHPData'))}]checked[{/if}]>
    </td>
</tr>
<tr>
    <td class="edittext">
        [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_SHOWERRORTEXTS"}]
        [{oxinputhelp ident="HELP_D3DYN_HEIDELPAY_PARAM_SHOWERRORTEXTS"}]
    </td>
    <td class="edittext">
        <input type="hidden" name="value[d3_cfg_mod__d3heidelpay_blServiceErrors]" value="0">
        <input type="checkbox"
               class="editinput"
               name="value[d3_cfg_mod__d3heidelpay_blServiceErrors]"
               value="1"
               title="[{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_SHOWERRORTEXTS"}]"
               [{if ($edit->getValue('d3heidelpay_blServiceErrors'))}]checked[{/if}]>
    </td>
</tr>
<tr>
    <td class="edittext" colspan="2">&nbsp;</td>
</tr>
<tr>
    <td class="edittext">
        [{oxmultilang ident="D3DYN_HEIDELPAY_ORDER_EXECUTE_POST_FIELDS"}]
        [{oxinputhelp ident="HELP_D3DYN_HEIDELPAY_ORDER_EXECUTE_POST_FIELDS"}]
    </td>
    <td class="edittext" style="vertical-align: top;">
        <textarea rows="5" cols="40" name="value[d3_cfg_mod__d3heidelpay_orderExecutePostFields]"
                  title="[{oxmultilang ident="D3DYN_HEIDELPAY_ORDER_EXECUTE_POST_FIELDS"}]">[{$edit->getValue('d3_cfg_mod__d3heidelpay_orderExecutePostFields')}]</textarea>
    </td>
</tr>
    <tr>
        <td class="edittext">
            [{oxmultilang ident="D3HEIDELPAY_DIFFERENCE_IN_ORDER_ERRRORMAIL"}]
            [{oxinputhelp ident="HELP_D3HEIDELPAY_DIFFERENCE_IN_ORDER_ERRRORMAIL"}]
        </td>
        <td class="edittext">
            [{assign var='statusemail' value=$edit->getValue('d3heidelpay_oxtransstatuserrormail')}]
            [{if false == $statusemail}]
                [{assign var='statusemail' value=$actshopobj->oxshops__oxowneremail->value}]
            [{/if}]
            <input type="text"
                   class="editinput"
                   style="width:220px;"
                   name="value[d3_cfg_mod__d3heidelpay_oxtransstatuserrormail]"
                   title="[{oxmultilang ident="D3HEIDELPAY_DIFFERENCE_IN_ORDER_ERRRORMAIL"}]"
                   value="[{$statusemail}]">
        </td>
    </tr>
    <tr>
        <td class="edittext">
            [{oxmultilang ident="D3HEIDELPAY_DIFFERENCE_IN_ORDER_ERRRORSTATUS"}]
            [{oxinputhelp ident="HELP_D3HEIDELPAY_DIFFERENCE_IN_ORDER_ERRRORSTATUS"}]
        </td>
        <td class="edittext">
            [{assign var='transstatuserror' value=$edit->getValue('d3heidelpay_oxtransstatuserror')}]
            [{if false == $transstatuserror}]
                [{assign var='transstatuserror' value='ERROR'}]
            [{/if}]
            <input type="text"
                   class="editinput"
                   style="width:220px;"
                   name="value[d3_cfg_mod__d3heidelpay_oxtransstatuserror]"
                   title="[{oxmultilang ident="D3HEIDELPAY_DIFFERENCE_IN_ORDER_ERRRORSTATUS"}]"
                   value="[{$transstatuserror}]">
        </td>
    </tr>
    <tr>
        <td class="edittext">
            [{oxmultilang ident="D3HEIDELPAY_CARDTYPE_TIMEOUT"}]
            [{oxinputhelp ident="HELP_D3HEIDELPAY_CARDTYPE_TIMEOUT"}]
        </td>
        <td class="edittext">
            [{assign var='cardtypetimeout' value=$edit->getValue('d3heidelpay_cardtypetimeout')}]
            [{if false == $cardtypetimeout}]
                [{assign var='cardtypetimeout' value='600'}]
            [{/if}]
            <input type="number"
                   class="editinput"
                   style="width:120px;"
                   name="value[d3_cfg_mod__d3heidelpay_cardtypetimeout]"
                   title="[{oxmultilang ident="D3HEIDELPAY_CARDTYPE_TIMEOUT"}]"
                   value="[{$cardtypetimeout}]">
            [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_CURLTIMEOUTSEK"}]
        </td>
    </tr>
    <tr>
        <td colspan="2">&nbsp;</td>
    </tr>
    <tr>
        <td colspan="2">
            <div class="groupExp">
                <div>
                    <a href="#" onclick="_groupExp(this);return false;" class="rc"><b>[{oxmultilang ident="D3HEIDELPAY_SETTINGS_FOR_IDEAL_AND_P24_CRONJOB"}]</b></a>
                    <dl>
                        <dt class="txt">
                            <input size="5" name="value[d3_cfg_mod__sD3HpHFOrderPendingTime]" value="[{$edit->getValue('d3_cfg_mod__sD3HpHFOrderPendingTime')}]" title="[{oxmultilang ident="D3HEIDELPAY_sD3HpHFOrderPendingTime"}]" type="text">
                        </dt>
                        <dd>
                            [{oxinputhelp ident="HELP_D3HEIDELPAY_sD3HpHFOrderPendingTime"}]
                            [{oxmultilang ident="D3HEIDELPAY_sD3HpHFOrderPendingTime"}]
                        </dd>
                    </dl>
                    <dl>
                        <dt class="txt">
                            <input size="5" name="value[d3_cfg_mod__sD3HpHFOrderLimit]" value="[{$edit->getValue('d3_cfg_mod__sD3HpHFOrderLimit')}]" title="[{oxmultilang ident="D3HEIDELPAY_sD3HpHFOrderLimit"}]" type="text">
                        </dt>
                        <dd>
                            [{oxinputhelp ident="HELP_D3HEIDELPAY_sD3HpHFOrderLimit"}]
                            [{oxmultilang ident="D3HEIDELPAY_sD3HpHFOrderLimit"}]
                        </dd>
                    </dl>
                    <dl>
                        <dt class="txt">
                            [{assign var='currentCancelType' value=$edit->getValue('d3_cfg_mod__sD3HpHFOrderCancelType')}]
                            <select name="value[d3_cfg_mod__sD3HpHFOrderCancelType]" title="[{oxmultilang ident="D3HEIDELPAY_sD3HpHFOrderCancelType"}]">
                                <option value="PLEASE_CHOOSE"[{if $currentCancelType == ''}] selected[{/if}]>[{oxmultilang ident="D3HEIDELPAY_sD3HpHFOrderCancelType_PLEASE_CHOOSE"}]</option>
                                <option value="CANCEL_ORDER"[{if $currentCancelType === 'CANCEL_ORDER'}] selected[{/if}]>[{oxmultilang ident="D3HEIDELPAY_sD3HpHFOrderCancelType_CANCEL_ORDER"}]</option>
                                <option value="DELETE_ORDER"[{if $currentCancelType === 'DELETE_ORDER'}] selected[{/if}]>[{oxmultilang ident="D3HEIDELPAY_sD3HpHFOrderCancelType_DELETE_ORDER"}]</option>
                            </select>
                        </dt>
                        <dd>
                            [{oxinputhelp ident="HELP_D3HEIDELPAY_sD3HpHFOrderCancelType"}]
                            [{oxmultilang ident="D3HEIDELPAY_sD3HpHFOrderCancelType"}]
                        </dd>
                    </dl>
                    <dl>
                        <dt class="txt">
                            <input name="value[d3_cfg_mod__blD3HpHFSetZeroOrderNumber]" value="0" type="hidden">
                            <input name="value[d3_cfg_mod__blD3HpHFSetZeroOrderNumber]" value="1" type="checkbox"[{if $edit->getValue('d3_cfg_mod__blD3HpHFSetZeroOrderNumber')}] checked[{/if}] title="[{oxmultilang ident="D3HEIDELPAY_blD3HpHFSetZeroOrderNumber"}]">
                        </dt>
                        <dd>
                            [{oxinputhelp ident="HELP_D3HEIDELPAY_blD3HpHFSetZeroOrderNumber"}]
                            [{oxmultilang ident="D3HEIDELPAY_blD3HpHFSetZeroOrderNumber"}]
                        </dd>
                    </dl>
                </div>
            </div>
        </td>
    </tr>
<tr>
    <td class="edittext"></td>
    <td class="edittext">
        <br>
        <input type="submit"
               class="edittext"
               name="save"
               value="[{oxmultilang ident="GENERAL_SAVE"}]"
               onClick="document.myedit.fnc.value='save'" [{$readonly}]>
    </td>
</tr>
    <tr>
        <td colspan="2" style="white-space:normal"><br>[{oxmultilang ident="D3DYN_HEIDELPAY_TESTVALUES"}]</td>
    </tr>
<tr>
    <td class="edittext">
        [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_TESTSERVERTYPE"}]
    </td>
    <td class="edittext">
        <select name="value[d3_cfg_mod__d3heidelpay_sTestServerTyp]" class="editinput" title="[{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_TESTSERVERTYPE"}]">
            <option [{if $edit->getValue('d3heidelpay_sTestServerTyp') == "CONNECTOR_TEST"}]selected[{/if}]>CONNECTOR_TEST</option>
            <option [{if $edit->getValue('d3heidelpay_sTestServerTyp') == "INTEGRATOR_TEST"}]selected[{/if}]>INTEGRATOR_TEST</option>
        </select>
    </td>
</tr>
<tr>
    <td class="edittext">
        [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_TESTMOD_ERRORCODE"}]
    </td>
    <td class="edittext">
        <input type="text"
               class="editinput"
               style="width:100px;"
               name="value[d3_cfg_mod__d3heidelpay_sTestErrorCode]"
               title="[{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_TESTMOD_ERRORCODE"}]"
               value="[{$edit->getValue('d3heidelpay_sTestErrorCode')}]">
    </td>
</tr>
<tr>
    <td class="edittext">
        [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_TESTMOD_RETURNCODE"}]
    </td>
    <td class="edittext">
        <input type="text"
               class="editinput"
               style="width:100px;"
               name="value[d3_cfg_mod__d3heidelpay_sTestReturnCode]"
               title="[{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_TESTMOD_RETURNCODE"}]"
               value="[{$edit->getValue('d3heidelpay_sTestReturnCode')}]">
    </td>
</tr>
<tr>
    <td class="edittext">
        [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_CURLTIMEOUT"}]
    </td>
    <td class="edittext">
        [{assign var="iCurlTimeOut" value=$edit->getValue('d3heidelpay_iCurlTimeOut')}]
        <input type="text"
               class="editinput"
               style="width:100px;"
               name="value[d3_cfg_mod__d3heidelpay_iCurlTimeOut]"
               title="[{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_CURLTIMEOUT"}]"
               value="[{$iCurlTimeOut|default:"50"}]">[{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_CURLTIMEOUTSEK"}]
    </td>
</tr>
<tr>
    <td class="edittext"></td>
    <td class="edittext">
        <br>
        <input type="submit"
               class="edittext"
               name="save"
               value="[{oxmultilang ident="GENERAL_SAVE"}]"
               onClick="document.myedit.fnc.value='save'" [{$readonly}]>
    </td>
</tr>

</table>
</form>

</td>

<!-- Anfang rechte Seite -->

<td valign="top" class="edittext" width="50%">

<fieldset title="[{oxmultilang ident="D3DYN_HEIDELPAY_ACTIVEPAYMENTS"}]">
    <legend>[{oxmultilang ident="D3DYN_HEIDELPAY_ACTIVEPAYMENTS"}]</legend>

    <div>[{oxmultilang ident="D3DYN_HEIDELPAY_CURRENTPAYMENTS"}]</div>

    [{foreach from=$aAssignedOxpayments item='oPayment' key='sPaymentId' name="existpaylist"}]
        <form name="existpaylist[{$smarty.foreach.existpaylist.iteration}]"
          id="paylist[{$smarty.foreach.existpaylist.iteration}]"
          action="[{$oViewConf->getSelfLink()}]"
          method="post">
            <table cellspacing="5" cellpadding="0" border="0" width="100%">
                <tr>
                    <td class="edittext">
                        [{$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_cfg_mod__oxid]" value="[{$oxid}]">

                        [{$oPayment->oxpayments__oxdesc->value}]
                    </td>
                    <td class="edittext" align="right">
                        [{oxmultilang ident="D3DYN_HEIDELPAY_PAYTYPE"}]&nbsp;

                        <select class="edittext"
                                name="changepayment[[{$oPayment->getId()}]]"
                                title="[{oxmultilang ident="D3DYN_HEIDELPAY_PAYTYPE"}]"
                                onChange="document.existpaylist[{$smarty.foreach.existpaylist.iteration}].submit();">
                            <option value="">--</option>
                            [{foreach from=$aHeidelpayPaymentList item="oHeidelPayment"}]
                                <option value="[{$oHeidelPayment}]"
                                    [{if $oHeidelPayment == $oPayment->sHeidelPaymentClass}]selected[{/if}]>
                                    [{oxmultilang ident=$oHeidelPayment|strtolower}]
                                </option>
                            [{/foreach}]
                        </select>
                    </td>
                </tr>
            </table>
        </form>
    [{foreachelse}]
        <table cellspacing="5" cellpadding="0" border="0" width="100%">
            <tr>
                <td class="edittext">
                    <div style="color:red; font-weight: bold;">[{oxmultilang ident="D3DYN_HEIDELPAY_NOACTIVEPAYMENTS"}]</div>
                </td>
            </tr>
        </table>
    [{/foreach}]
</fieldset>

<br>

<fieldset title="[{oxmultilang ident="D3DYN_HEIDELPAY_NOCURRENTPAYMENT"}]">
    <legend>[{oxmultilang ident="D3DYN_HEIDELPAY_NOCURRENTPAYMENT"}]</legend>

    [{foreach from=$aFreeOxpayments item='oPayment' key='sPaymentId' name="paylist"}]
        <form name="paylist[{$smarty.foreach.paylist.iteration}]"
              id="paylist[{$smarty.foreach.paylist.iteration}]"
              action="[{$oViewConf->getSelfLink()}]"
              method="post">
            <table cellspacing="5" cellpadding="0" border="0" width="100%">
                <tr>
                    <td class="edittext">
                        [{$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_cfg_mod__oxid]" value="[{$oxid}]">

                        <input type="hidden" name="oxpaymentid" value="[{$oPayment->oxpayments__oxid->value}]">
                        [{$oPayment->oxpayments__oxdesc->value}]
                    </td>
                    <td class="edittext" align="right" nowrap>
                    [{oxmultilang ident="D3DYN_HEIDELPAY_PAYTYPE"}]&nbsp;
                        <select class="edittext"
                                name="changepayment[[{$oPayment->getId()}]]"
                                title="[{oxmultilang ident="D3DYN_HEIDELPAY_PAYTYPE"}]"
                                onChange="document.paylist[{$smarty.foreach.paylist.iteration}].submit();">
                            <option value="">--</option>
                            [{foreach from=$aHeidelpayPaymentList item="oHeidelPayment"}]
                                <option value="[{$oHeidelPayment}]">[{oxmultilang ident=$oHeidelPayment|strtolower}]</option>
                            [{/foreach}]
                        </select>
                    </td>
                </tr>
             </table>
        </form>
    [{/foreach}]
</fieldset>
</td>
</tr>
</table>
[{oxscript add='function _groupExp(el) {
    var _cur = el.parentNode;

    if (_cur.className == "exp") _cur.className = "";
    else _cur.className = "exp";
}'}]

[{include file="d3_cfg_mod_inc.tpl"}]
[{* NOTE: open div for oxids closing div ^^ *}]
<div>
    [{include file="bottomitem.tpl"}]



