Subversion-Projekte lars-tiefland.content-management

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

    <table width="1000">
        <tr>
            <td valign="top" width="100%">
                <table width="100%" cellpadding="0" cellspacing="0">
                    <tr class="links">
                        <td colspan="3" align="right">
                            <form method="post" action="{$SCRIPT_NAME}">
                            Shop: 
                            <select name="shop_id" id="shop_id">
                            <option value="0" label=""></option>
                            {html_options options=$shops selected=$smarty.post.shop_id}
                            </select>
                            <input type="submit" value="OK  ">
                            </form>
                        </td>
                    </tr>
                    <tr class="links">
                        <td>
                            <strong>ID</strong>
                        </td>
                        <td>
                            <strong>Name</strong>
                        </td>
                        <td>
                            <strong>Preis</strong>
                        </td>
                        <td>
                            <strong>Aktion</strong>
                        </td>
                    </tr>
                    {section loop=$vorlagen name=vl_ind}
                    <tr class="{cycle values="rechts,links"}">
                        <td>
                            {$vorlagen[vl_ind].ID}
                        </td>
                        <td>
                            <a href="{$SCRIPT_NAME}?action=edit&ID={$vorlagen[vl_ind].ID}&shop_id=32">{$vorlagen[vl_ind].kurzbezeichnung|htmlentities}</a>
                        </td>
                        <td>
                            {if $vorlagen[vl_ind].preis1 < 0}
                            {$vorlagen[vl_ind].preis1*-1} %
                            {else}
                            {$vorlagen[vl_ind].preis1|number_format:2:",":"."} &euro;
                            {/if}
                        </td>
                        <td align="center">
                            <a href="{$smarty.server.SCRIPT_NAME}?action=delete&ID={$vorlagen[vl_ind].ID}"><img src="/images/navigation/trashcan.gif" alt="löschen"/></a>
                        </td>
                    </tr>
                    {sectionelse}
                    <tr class="rechts">
                        <td colspan="3">Keine Vorlagen gefunden!</td>
                    </tr>
                    {/section}
                    <tr class="links" align="center">
                        <td colspan="4">
                            <form>
                                <input type="hidden" name="shop_id" value="{$shop_id}">
                                <input type="hidden" name="action" value="edit">
                                <input type="submit" value="neue Gutscheinvorlage">
                            </form>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>