potrebujem spravit sucet celeho stlpca s oznacenim added a deducted v nette framework vie mi niekto poradit ako na to?? dakujem
Kód: Vybrať všetko
<table>
<tr>
<th width="70">Kód</th>
<th width="100">Dátum</th>
<th width="100">Príjem</th>
<th width="100">Výdaj</th>
<th width="100">Zákazník</th>
</tr>
{foreach $products as $pr}
<tr class="items">
<td><span>{$pr["code"]}</span></td>
<td><span>{$pr["date"]}</span></td>
<td><span>{$pr["added"]}</span></td>
<td><span>{$pr["deducted"]}</span></td>
<td><span>{$pr["name"]}</span></td>
</tr>
{/foreach}
<tr>
<td style="visibility:hidden;"></td>
<td><span><div style="float:right;">Spolu:</div></span></td>
<td><span></span></td>
<td><span></span></td>
<td><span>Celkom: {$pr["added"]-$pr["deducted"]}</span></td>
</tr>
</table>