[{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}]

<script type="text/javascript">
    <!--
    var oSticker;
    function SetSticker(sStickerId, oObject) {
        if (oObject.selectedIndex != -1) {
            oSticker = document.getElementById(
                sStickerId
            );
            oSticker.style.display = "";
            oSticker.style.backgroundColor = "#FFFFCC";
            oSticker.style.borderWidth = "1px";
            oSticker.style.borderColor = "#000000";
            oSticker.style.borderStyle = "solid";
            oSticker.innerHTML = oObject.item(
                oObject.selectedIndex
            ).innerHTML;
        }
        else {
            oSticker.style.display = "none";
        }
    }
    function LoadPayment(oObject) {
        oObject = document.getElementById(
            "paymaster"
        );
        if (oObject != null && oObject.selectedIndex != -1) {
            document.myedit2.oxpaymentid.value = oObject.item(
                oObject.selectedIndex
            ).value;
            document.myedit2.fnc.value = "";
            document.myedit2.submit(
            );
        }
    }
    function popU(evt, currElem) {
        var popUpWin = document.getElementById(
            "ttpop"
        );
        var oHeightObject = document.getElementById(
            "popheight"
        );
        var title = currElem.getAttribute(
            "caption"
        );
        if (title.length == 0) {
            return;
        }
        document.getElementById(
            "ttcontents"
        ).innerHTML = title;
        popUpWin = popUpWin.style;
        var y = parseInt(
            evt.clientY
        ) - 20 - oHeightObject.height;
        var x = parseInt(
            evt.clientX
        ) - 20;
        if (document.all) {
            if (x > document.body.clientWidth - 150) {
                x = parseInt(
                    document.body.clientWidth
                ) - 100;
                y = y - 15;
            }
        }
        else {
            if (x > self.innerWidth - 100) {
                x = parseInt(
                    self.innerWidth
                ) - 100;
            }
        }
        popUpWin.top = Math.max(
            2,
            y
        ) - 20;
        popUpWin.left = Math.max(
            2,
            x
        ) - 250 - 30;
        popUpWin.visibility = "visible";
        window.status = "";
    }
    function popD() {
        var popUpWin = document.getElementById(
            "ttpop"
        );
        popUpWin = popUpWin.style;
        popUpWin.visibility = "hidden";
    }
    function Edit(sID, sCl) {
        var oTransfer = document.getElementById(
            "transfer"
        );
        oTransfer.oxid.value = sID;
        oTransfer.cl.value = 'admin_' + sCl;
        oTransfer.target = '_parent';
        oTransfer.submit(
        );
    }
    //-->
</script>
<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; }
</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>
    </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"
               [{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"}]
    </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"
               [{if $edit->getValue('d3heidelpay_blTestmode') == 1}]checked[{/if}] [{$sDisableTestModus}]>
    </td>
</tr>
<tr>
    <td class="edittext" colspan="2">
        <br>
        [{oxmultilang ident="D3DYN_HEIDELPAY_PARAMDESCRIPTION"}]
        <br><br>
    </td>
</tr>
<tr>
    <td class="edittext">
        [{oxmultilang ident="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')}]"
               style="width:220px;">
    </td>
</tr>
<tr>
    <td class="edittext">
        [{oxmultilang ident="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')}]"
               style="width:220px;">
    </td>
</tr>
<tr>
    <td class="edittext">
        [{oxmultilang ident="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')}]"
               style="width:220px;">
    </td>
</tr>
<tr>
    <td class="edittext">
        [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE"}]
    </td>
    <td class="edittext">
        <select class="edittext" name="value[d3_cfg_mod__d3heidelpay_sTransType]">
            <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">
        [{oxmultilang ident="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')}]"
               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]"
               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]"
               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]"
               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]"
               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]"
               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]"
               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]"
               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]"
               value="[{$edit->getValue('d3heidelpay_sChannel__paypal')}]">
    </td>
</tr>
<tr>
    <td class="edittext">
        [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_BOOKINGTYPE_PAYPAL"}]
    </td>
    <td class="edittext">
        <select class="edittext" name="value[d3_cfg_mod__d3heidelpay_sVATransType]">
            <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">
        [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_INPUTCARDDATA"}]
    </td>
    <td class="edittext">
        <select class="edittext" name="value[d3_cfg_mod__d3heidelpay_sCCInputPosition]">
            <option value="step3">[{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_INPUTCARDDATA_STEP3"}]</option>
            <option value="afterstep4"
                    [{if ($edit->getValue('d3heidelpay_sCCInputPosition') == "afterstep4")}]selected[{/if}]>
                [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_INPUTCARDDATA_STEP4"}]
            </option>
        </select>
    </td>
</tr>
<tr>
    <td class="edittext">
        [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_INTERNALLOG"}]
    </td>
    <td class="edittext">
        <select name="loglevel" class="edittext">
            <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"}]
    </td>
    <td class="edittext">
        <select class="edittext" name="value[d3_cfg_mod__d3heidelpay_blDebitUnmask]">
            <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"}]
    </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"
               [{if ($edit->getValue('d3heidelpay_blShowStoredHPData'))}]checked[{/if}]>
    </td>
</tr>
<tr>
    <td class="edittext">
        [{oxmultilang ident="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"
               [{if ($edit->getValue('d3heidelpay_blServiceErrors'))}]checked[{/if}]>
    </td>
</tr>
<tr>
    <td class="edittext" colspan="2">&nbsp;</td>
</tr>
<tr>
    <td class="edittext">
        <strong>[{oxmultilang ident="D3DYN_HEIDELPAY_SEPA_ACTIVATE"}]</strong><br>
        <i>[{oxmultilang ident="D3DYN_HEIDELPAY_SEPA_ACTIVATE_EXPLAINTEXT"}]</i>
    </td>
    <td class="edittext" style="vertical-align: top;">
        <input type="hidden" name="value[d3_cfg_mod__d3heidelpay_blSepaMode]" value="0">
        <input type="checkbox" class="editinput" name="value[d3_cfg_mod__d3heidelpay_blSepaMode]" value="1" [{if ($edit->getValue('d3_cfg_mod__d3heidelpay_blSepaMode'))}]checked[{/if}]>
    </td>
</tr>
<tr>
    <td class="edittext">
        [{oxmultilang ident="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]">[{$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]"
                   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]"
                   value="[{$transstatuserror}]">
        </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 class="edittext">
        [{oxmultilang ident="D3DYN_HEIDELPAY_PARAM_TESTSERVERTYPE"}]
    </td>
    <td class="edittext">
        <select name="value[d3_cfg_mod__d3heidelpay_sTestServerTyp]" class="editinput">
            <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]"
               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]"
               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]"
               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()}]]"
                                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()}]]"
                                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>
[{include file="d3_cfg_mod_inc.tpl"}]
[{* NOTE: open div for oxids closing div ^^ *}]
<div>
    [{include file="bottomitem.tpl"}]



