Subversion-Projekte lars-tiefland.webanos.marine-sales.de

Revision

Revision 493 | Revision 495 | Zur aktuellen Revision | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

{if $directory->sub_dirs|count}
    <div id="subdirs">
        <table id="directoryTable">
            <thead>
            <tr>
                <td>Name</td>
                <td>Aktionen</td>
            </tr>
            </thead>
            <tbody>
            {foreach $directory->sub_dirs as $subDir}
                <tr>
                    <td>{$subDir->name}</td>
                    <td>&nbsp;</td>
                </tr>
            {/foreach}
            </tbody>
        </table>
    </div>
{/if}

{if $directory->items|count}
    <div id="items">
        <table id="itemTable">
            <thead>
            <tr>
                <th>Name</th>
                <th>Aktionen</th>
            </tr>
            </thead>
            <tbody>
            {foreach $directory->items as $item}
                <tr>
                    <td>{$item->name}</td>
                    <td>&nbsp;</td>
                </tr>
            {/foreach}
            </tbody>
        </table>
    </div>
{/if}

<script>
    $(function(){
        $("#directoryTable").dataTable({
            "lengthMenu": [[100, -1], [100, "Alle"]],
            "language": {
                "url": "/js/DataTables-1.10.19/German.json"
            }
        });
        $("#itemTable").dataTable({
            "lengthMenu": [[100, -1], [100, "Alle"]],
            "language": {
                "url": "/js/DataTables-1.10.19/German.json"
            }
        });
    })
</script>