[PHPTAL] Table column with difference value

Krzysztof Zaleski cshyshtof at gmail.com
Wed Mar 26 22:02:10 CET 2008


This works fine :-) Thanks.

2008/3/23, Iván -DrSlump- Montes <drslump at pollinimini.net>:
>
> I haven't tried it but perhaps something like this can give you the
> result:
>
> <tr tal:repeat="item data">
>   <td tal:content="item/total">Total</td>
>   <td tal:content="php: lastTotal">Last Total</td>
>   <?php $ctx->lastTotal = $ctx->item['total']; ?>
> </tr>
>
> or
>
> <tr tal:repeat="item data">
>   <td tal:content="item/total">Total</td>
>   <td>
>     <?php
>         echo $lastTotal;
>         $lastTotal = $ctx->item['total'];
>     ?>
>   </td>
> </tr>
>
> ivan
>
>
> On Sun, Mar 23, 2008 at 11:19 PM, Krzysztof Sikorski
> <dreamer.pl at gmail.com> wrote:
> > > If I could do something like tal:php :-) it would be perfect.
> >  Your can use php code in expressions:
> >  http://phptal.motion-twin.com/manual/en/split/ar05s07.html#tales-php
> >
> >  _______________________________________________
> >  PHPTAL mailing list
> >  PHPTAL at lists.motion-twin.com
> >  http://lists.motion-twin.com/mailman/listinfo/phptal
> >
>
> _______________________________________________
> PHPTAL mailing list
> PHPTAL at lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>



-- 
Krzysztof Zaleski
CCNP, JNCIS
Tel.: +48 667 668 428
E-mail: cshychtof at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/phptal/attachments/20080326/ff8ca4db/attachment.htm


More information about the PHPTAL mailing list