Subversion-Projekte lars-tiefland.content-management

Revision

Zur aktuellen Revision | Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<table width="800">
2
    <tr class="links">
3
        <th width="10%">ID</th>
4
        <th width="40%">Name</th>
5
        {for $p_ind=1;$p_ind<10;$p_ind++}
6
        {assign var="feld" value="preis$p_ind"}
7
        {if isset($web_rechte.online_shop.artikel.$feld)}
8
        <th align="left">{$web_rechte.online_shop.artikel.$feld}</th>
9
        {/if}
10
        {/for}
11
    </tr>
12
    {section loop=$artikel name=a_ind}
13
        <tr class="{cycle values="rechts,links"}">
14
            <td>{$artikel[a_ind].ID}</td>
15
            <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>
16
            {for $p_ind=1;$p_ind<10;$p_ind++}
17
            {assign var="feld" value="preis$p_ind"}
18
            {assign var="preis" value=$artikel[a_ind].$feld}
19
            {if isset($web_rechte.online_shop.artikel.$feld)}
20
            <td>
21
                {if $preis >= 0}
22
                {$preis} &euro;
23
                {elseif $preis <0}
24
                {$preis|abs|number_format:2:","} %
25
                {else}&nbsp;
26
                {/if}
27
            </td>
28
            {/if}
29
            {/for}
30
        </tr>
31
    {/section}
32
</table>