[{include file="headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign box="list"}]
[{assign var="where" value=$oView->getListFilter()}]

[{assign var="readonly" value=""}]
[{if $readonly}]
    [{assign var="readonly" value="readonly disabled"}]
[{/if}]

<script type="text/javascript">
    <!--
    window.onload = function () {
        top.reloadEditFrame();
        [{if $updatelist == 1}]
        top.oxid.admin.updateList('[{$oxid}]');
        [{/if}]
    }
    //-->
</script>

<div id="liste">
    <form name="search" id="search" action="[{$oViewConf->getSelfLink()}]" method="post">
        [{include file="_formparams.tpl" cl="ShipcloudAddressList" lstrt=$lstrt actedit=$actedit oxid=$oxid fnc="" language=$actlang editlanguage=$actlang}]
        <table cellspacing="0" cellpadding="0" border="0" width="100%">
            <colgroup>
                <col width="19%">
                <col width="19%">
                <col width="19%">
                <col width="10%">
                <col width="10%">
                <col width="10%">
                <col width="9%">
                <col width="1%">
            <colgroup>
                <tr class="listitem">
                    <td valign="top" class="listfilter" height="20">
                        <div class="r1">
                            <div class="b1">
                                <input class="listedit" type="text" size="20" maxlength="128" name="where[ysshipcloudaddress][addressname]" value="[{$where.ysshipcloudaddress.addressname}]">
                            </div>
                        </div>
                    </td>
                    <td valign="top" class="listfilter" height="20">
                        <div class="r1">
                            <div class="b1">
                                <input class="listedit" type="text" size="20" maxlength="128" name="where[ysshipcloudaddress][oxlname]" value="[{$where.ysshipcloudaddress.oxlname}]">
                            </div>
                        </div>
                    </td>
                    <td valign="top" class="listfilter">
                        <div class="r1">
                            <div class="b1">
                                <input class="listedit" type="text" size="20" maxlength="128" name="where[ysshipcloudaddress][oxstreet]" value="[{$where.ysshipcloudaddress.oxstreet}]">
                            </div>
                        </div>
                    </td>
                    <td valign="top" class="listfilter">
                        <div class="r1">
                            <div class="b1">
                                <input class="listedit" type="text" size="10" maxlength="128" name="where[ysshipcloudaddress][oxzip]" value="[{$where.ysshipcloudaddress.oxzip}]">
                            </div>
                        </div>
                    </td>
                    <td valign="top" class="listfilter">
                        <div class="r1">
                            <div class="b1">
                                <input class="listedit" type="text" size="20" maxlength="128" name="where[ysshipcloudaddress][oxcity]" value="[{$where.ysshipcloudaddress.oxcity}]">
                            </div>
                        </div>
                    </td>
                    <td valign="top" class="listfilter">
                        <div class="r1">
                            <div class="b1">
                                <input class="listedit" type="text" size="15" maxlength="128" name="where[ysshipcloudaddress][oxfon]" value="[{$where.ysshipcloudaddress.oxfon}]">
                            </div>
                        </div>
                    </td>
                    <td valign="top" class="listfilter" colspan="2" nowrap>
                        <div class="r1">
                            <div class="b1">
                                <div class="find"><input class="listedit" type="submit" name="submitit" value="[{oxmultilang ident="GENERAL_SEARCH"}]"></div>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="listheader" height="15">&nbsp;<a href="Javascript:top.oxid.admin.setSorting( document.search, 'ysshipcloudaddress', 'addressname', 'asc');document.search.submit();" class="listheader">[{oxmultilang ident="YS_ADDRESS_NAME"}]</a></td>
                    <td class="listheader" height="15">&nbsp;<a href="Javascript:top.oxid.admin.setSorting( document.search, 'ysshipcloudaddress', 'oxlname', 'asc');document.search.submit();" class="listheader">[{oxmultilang ident="GENERAL_NAME"}]</a></td>
                    <td class="listheader"><a href="Javascript:top.oxid.admin.setSorting( document.search, 'ysshipcloudaddress', 'oxstreet', 'asc');document.search.submit();" class="listheader">[{oxmultilang ident="GENERAL_STREET"}]</a></td>
                    <td class="listheader"><a href="Javascript:top.oxid.admin.setSorting( document.search, 'ysshipcloudaddress', 'oxzip', 'asc');document.search.submit();" class="listheader">[{oxmultilang ident="USER_LIST_ZIP"}]</a></td>
                    <td class="listheader"><a href="Javascript:top.oxid.admin.setSorting( document.search, 'ysshipcloudaddress', 'oxcity', 'asc');document.search.submit();" class="listheader">[{oxmultilang ident="USER_LIST_PLACE"}]</a></td>
                    <td class="listheader"><a href="Javascript:top.oxid.admin.setSorting( document.search, 'ysshipcloudaddress', 'oxfon', 'asc');document.search.submit();" class="listheader">[{oxmultilang ident="GENERAL_TELEPHONE"}]</a></td>
                    <td class="listheader" colspan="2"></td>
                </tr>
                [{assign var="blWhite" value=""}]
                [{assign var="_cnt" value=0}]
                [{foreach from=$mylist item=listitem}]
                    [{assign var="_cnt" value=$_cnt+1}]
                    <tr id="row.[{$_cnt}]">
                        [{block name="admin_user_list_item"}]
                            [{if $listitem->blacklist == 1}]
                                [{assign var="listclass" value=listitem3}]
                            [{else}]
                                [{assign var="listclass" value=listitem$blWhite}]
                            [{/if}]
                            [{if $listitem->getId() == $oxid}]
                                [{assign var="listclass" value=listitem4}]
                            [{/if}]
                            <td valign="top" class="[{$listclass}]" height="15">
                                <div class="listitemfloating">&nbsp;<a href="Javascript:top.oxid.admin.editThis('[{$listitem->ysshipcloudaddress__oxid->value}]');" class="[{$listclass}]">[{$listitem->ysshipcloudaddress__addressname->value}]</a></div>
                            </td>
                            <td valign="top" class="[{$listclass}]" height="15">
                                <div class="listitemfloating">&nbsp;<a href="Javascript:top.oxid.admin.editThis('[{$listitem->ysshipcloudaddress__oxid->value}]');" class="[{$listclass}]">[{if !$listitem->ysshipcloudaddress__oxlname->value}]-kein Name-[{else}][{$listitem->ysshipcloudaddress__oxlname->value}][{/if}] [{$listitem->ysshipcloudaddress__oxfname->value}]</a></div>
                            </td>
                            <td valign="top" class="[{$listclass}]">
                                <div class="listitemfloating"><a href="Javascript:top.oxid.admin.editThis('[{$listitem->ysshipcloudaddress__oxid->value}]');" class="[{$listclass}]">[{$listitem->ysshipcloudaddress__oxstreet->value}]</a></div>
                            </td>
                            <td valign="top" class="[{$listclass}]">
                                <div class="listitemfloating"><a href="Javascript:top.oxid.admin.editThis('[{$listitem->ysshipcloudaddress__oxid->value}]');" class="[{$listclass}]">[{$listitem->ysshipcloudaddress__oxzip->value}]</a></div>
                            </td>
                            <td valign="top" class="[{$listclass}]">
                                <div class="listitemfloating"><a href="Javascript:top.oxid.admin.editThis('[{$listitem->ysshipcloudaddress__oxid->value}]');" class="[{$listclass}]">[{$listitem->ysshipcloudaddress__oxcity->value}]</a></div>
                            </td>
                            <td valign="top" class="[{$listclass}]">
                                <div class="listitemfloating"><a href="Javascript:top.oxid.admin.editThis('[{$listitem->ysshipcloudaddress__oxid->value}]');" class="[{$listclass}]">[{$listitem->ysshipcloudaddress__oxfon->value}]</a></div>
                            </td>
                            <td valign="top" class="[{$listclass}]">
                                <div class="listitemfloating"><a href="Javascript:top.oxid.admin.editThis('[{$listitem->ysshipcloudaddress__oxid->value}]');" class="[{$listclass}]">[{$listitem->ysshipcloudaddress__oxcustnr->value}]</a></div>
                            </td>
                            <td class="[{$listclass}]">
                                [{if !$listitem->isOx() && !$readonly  && !$listitem->blPreventDelete}]
                                    <a href="Javascript:top.oxid.admin.deleteThis('[{$listitem->ysshipcloudaddress__oxid->value}]');" class="delete" id="del.[{$_cnt}]" [{include file="help.tpl" helpid=item_delete}]></a>
                                [{/if}]
                            </td>
                        [{/block}]
                    </tr>
                    [{if $blWhite == "2"}]
                        [{assign var="blWhite" value=""}]
                    [{else}]
                        [{assign var="blWhite" value="2"}]
                    [{/if}]
                [{/foreach}]
                [{include file="pagenavisnippet.tpl" colspan="9"}]
        </table>
    </form>
</div>

[{include file="pagetabsnippet.tpl"}]

<script type="text/javascript">
    if (parent.parent) {
        parent.parent.sShopTitle = "[{$actshopobj->oxshops__oxname->getRawValue()|oxaddslashes}]";
        parent.parent.sMenuItem = "[{oxmultilang ident="USER_LIST_MENNUITEM"}]";
        parent.parent.sMenuSubItem = "[{oxmultilang ident="USER_LIST_MENNUSUBITEM"}]";
        parent.parent.sWorkArea = "[{$_act}]";
        parent.parent.setTitle();
    }
</script>
</body>
</html>
