Subversion-Projekte lars-tiefland.content-management

Revision

Revision 1 | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

<form method="post" action="{$smarty.server.SCRIPT_NAME}" id="order_form">
<table width="100%">
    <tr class="links">
        <td>Lieferant</td>
        <td>Status</td>
        <td>Erstellungsdatum</td>
        <td>&nbsp;</td>
    </tr>
    <tr class="rechts">
        <td>
            {html_options name="filter[lieferant]" id="lieferant" options=$lieferanten selected=$filter.lieferant}
        </td>
        <td>
            {html_options name="filter[status]" id="statusfilter" options=$status selected=$filter.status}
        </td>
        <td>
            {html_options name="filter[zeit]" id="zeitfilter" options=$zeiten selected=$filter.zeit}
        </td>
        <td>
            <input type="submit">
        </td>
    </tr>
</table>
</form>
<table width="100%">
    <tr class="links">
        <td>Artikel</td>
        <td>Shop</td>
        <td>Bestellnummer</td>
        <td>Menge</td>
        <td>Lager</td>
        <td>Kommissionstext</td>
        <td>Betsellzeit</td>
        <td>Dokument</td>
        <td>Erstellt am</td>
        <td>Erstellt von</td>
        <td>Aktion</td>
    </tr>
    {foreach $bestellungen as $key => $bestellung}
    <tr class="rechts">
        <td>{$bestellung.bezeichnung|default:$bestellung.kurzbezeichnung}</td>
        <td>
            {$bestellung.shop_name}
        </td>
        <td>
            {$bestellung.order_id}
        </td>
        <td width="50">{$bestellung.menge}</td>
        <td width="200">{$bestellung.lager_name}</td>
        <td width="200">
            <a href="/Warenwirtschaft/bestellungen.php?Bestellung={$bestellung.order_id}">
                {$bestellung.text}
            </a>
        </td>
        <td width="150">
            {if $bestellung.bestellzeit==0}
            offen
            {else}
            {$bestellung.bestellzeit|date_format:"%x %X"}
            {/if}
        </td>
        <td>
            <a href="http://www.{$site}/images/dokumente/{$bestellung.document.file}" target="_blank">{$bestellung.document.file|basename}</a>
        </td>
        <td>
            {$bestellung.erstellt_am|date_format:"%x %X"}
        </td>
        <td>
            {$bestellung.erstellt_von}
        </td>
        <td>
            {if $bestellung.bestellzeit==0}
                <button class="del_order" id="del_order_{$bestellung.order_id}_{$bestellung.artikel_id}_{$bestellung.lager_id}"></button>
            {/if}
        </td>
    </tr>
    {foreachelse}
    <tr class="rechts">
        <td colspan="11" class="rechts">Keine Betellungen gefunden!</td>
    </tr>
    {/foreach}
</table>

<div id="del_order_dialog" title="Artikelbestellung löschen?">
</div>