Subversion-Projekte lars-tiefland.content-management

Revision

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

<table width="800">
    <tr class="links">
        <th width="10%">ID</th>
        <th width="40%">Name</th>
        {for $p_ind=1;$p_ind<10;$p_ind++}
        {assign var="feld" value="preis$p_ind"}
        {if isset($web_rechte.online_shop.artikel.$feld)}
        <th align="left">{$web_rechte.online_shop.artikel.$feld}</th>
        {/if}
        {/for}
    </tr>
    {section loop=$artikel name=a_ind}
        <tr class="{cycle values="rechts,links"}">
            <td>{$artikel[a_ind].ID}</td>
            <td><a style="cursor:pointer" {if $bestellung} href="/Warenwirtschaft/bestellung_liste_manu.php?action=add&ID={$artikel[a_ind].ID}&Bestellung={$bestellung}"{else} href="javascript:void();" onclick="addInput('{$artikel[a_ind].kurzbezeichnung}', '{$artikel[a_ind].preis_mb}', '{$artikel[a_ind].ID}' );"{/if}>{$artikel[a_ind].kurzbezeichnung}</a></td>
            {for $p_ind=1;$p_ind<10;$p_ind++}
            {assign var="feld" value="preis$p_ind"}
            {assign var="preis" value=$artikel[a_ind].$feld}
            {if isset($web_rechte.online_shop.artikel.$feld)}
            <td>
                {if $preis >= 0}
                {$preis} &euro;
                {elseif $preis <0}
                {$preis|abs|number_format:2:","} %
                {else}&nbsp;
                {/if}
            </td>
            {/if}
            {/for}
        </tr>
    {/section}
</table>