[{if $blEOD}]
    [{include file="headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
[{else}]
    [{assign var="params" value=$oViewConf->getSelfLink()|oxaddparams:"cl=d3_picture_import"|oxaddparams:"fnc=getexternpictures"|oxaddparams:"d3ief=`$iImportedFiles`"|oxaddparams:"oxid=`$oxid`"}]
    [{include file="headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign

    meta_refresh_sec="1"
    meta_refresh_url=$params
    }]
[{/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="d3_picture_import">
    <input type="hidden" name="editlanguage" value="[{$editlanguage}]">
</form>

<form name="myedit" id="myedit" enctype="multipart/form-data" action="[{$oViewConf->getSelfLink()}]" method="post">
    [{$oViewConf->getHiddenSid()}]
    <input type="hidden" name="cl" value="d3_picture_import">
    <input type="hidden" name="fnc" value="">
    <input type="hidden" name="oxid" value="[{$oxid}]">
    <input type="hidden" name="line" value="[{$actcsvline}]">

    <table cellspacing="0" cellpadding="0" border="0" width="98%">
        [{assign var="iError" value=$oView->getConfigFailure()}]
        [{if false == $iError && false == $iSumFiles}]
            [{assign var="iError" value="20"}]
        [{/if}]
        [{if $iError}]
            [{block name="d3_d3importer_views_admin_tpl_d3_picture_extticker_failure"}]
                <tr>
                    <td valign="top" class="edittext" colspan="2">
                        <div class="errorbox">[{oxmultilang ident="D3_PICTURE_FAILCONFIG_$iError"}]</div>
                    </td>
                </tr>
            [{/block}]
        [{else}]
            [{block name="d3_d3importer_views_admin_tpl_d3_picture_extticker_success"}]
                <tr>
                    <td valign="top" class="edittext">
                        <div style="text-align: center;">
                            <h3>[{oxmultilang ident="D3_PICTURE_EXTIMPORT_INFO1"}] : [{$iImportedFiles}] [{oxmultilang ident="D3_PICTURE_IMPORT_INFO2"}] [{$iSumFiles}].</h3>
                            [{if $blEOD}]
                                <h3>[{oxmultilang ident="D3_PICTURE_EXTIMPORT_IMPORTEND"}]</h3>
                            [{/if}]
                            [{assign var="Errorlist" value=$oView->getDisplayErrors()}]

                            [{if count($Errorlist)>0}]
                                <div class="errorbox inbox">
                                    [{foreach from=$Errorlist item=oEr key=key}]
                                        [{assign var="errortype" value=$oEr->sErrorType}]
                                        [{assign var="errortextident" value="D3_PICTURE_IMPORT_ERRORTYPE_$errortype"}]
                                        <p> [{$oEr->sText}] -> '[{oxmultilang ident=$errortextident}]'</p>
                                    [{/foreach}]
                                </div>
                            [{/if}]
                        </div>
                    </td>
                </tr>
            [{/block}]
        [{/if}]
    </table>
</form>

[{include file="bottomnaviitem.tpl"}]
[{include file="bottomitem.tpl"}]