| 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>
|
| 2 |
lars |
15 |
<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>
|
| 1 |
lars |
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>
|
| 2 |
lars |
21 |
{if $artikel[a_ind].preis_kp && $preis <> 0}
|
|
|
22 |
{$artikel[a_ind].preis_kp|number_format:2:",":"."} €
|
|
|
23 |
(
|
|
|
24 |
<a href="javscript:void(0);" style="cursor:pointer" onmouseover="return overlib('Originalpreis',CAPTION,'Originalpreis',WIDTH,100);" onmouseout="return nd();" onclick="return false;">
|
| 1 |
lars |
25 |
{if $preis >= 0}
|
| 2 |
lars |
26 |
{$preis|number_format:2:",":"."} €
|
| 1 |
lars |
27 |
{elseif $preis <0}
|
|
|
28 |
{$preis|abs|number_format:2:","} %
|
|
|
29 |
{else}
|
|
|
30 |
{/if}
|
| 2 |
lars |
31 |
</a>
|
|
|
32 |
)
|
|
|
33 |
{else}
|
|
|
34 |
{if $preis >= 0}
|
|
|
35 |
{$preis|number_format:2:",":"."} €
|
|
|
36 |
{elseif $preis <0}
|
|
|
37 |
{$preis|abs|number_format:2:","} %
|
|
|
38 |
{else}
|
|
|
39 |
{/if}
|
|
|
40 |
{/if}
|
| 1 |
lars |
41 |
</td>
|
|
|
42 |
{/if}
|
|
|
43 |
{/for}
|
|
|
44 |
</tr>
|
|
|
45 |
{/section}
|
| 2 |
lars |
46 |
</table>
|