Subversion-Projekte lars-tiefland.content-management

Revision

Revision 1 | 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 $smarty.post.b_id} 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|replace:"'":""}', '{$artikel[a_ind].preis_kp|default:$artikel[a_ind].preis_mb}', '{$artikel[a_ind].ID}' );"{/if}>{$artikel[a_ind].kurzbezeichnung|replace:"'":""}</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 $artikel[a_ind].preis_kp && $preis <> 0}
                {$artikel[a_ind].preis_kp|number_format:2:",":"."} &euro;
                (
                <a href="javscript:void(0);" style="cursor:pointer" onmouseover="return overlib('Originalpreis',CAPTION,'Originalpreis',WIDTH,100);" onmouseout="return nd();" onclick="return false;">
                {if $preis >= 0}
                {$preis|number_format:2:",":"."} &euro;
                {elseif $preis <0}
                {$preis|abs|number_format:2:","} %
                {else}&nbsp;
                {/if}
                </a>
                )
                {else}
                {if $preis >= 0}
                {$preis|number_format:2:",":"."} &euro;
                {elseif $preis <0}
                {$preis|abs|number_format:2:","} %
                {else}&nbsp;
                {/if}
                {/if}
            </td>
            {/if}
            {/for}
        </tr>
    {/section}
</table>