You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Joerg Jaspert <mo...@german.ath.cx> on 2002/02/27 22:40:37 UTC

Automatic Table with rotating color

Hi

Is there a way to get every 2 line of an autogenerated Table (with
$row) in another Color with Embperl 1.x ?
I have a BIG Table (many Columns) and its hard to read the table
without it.

-- 
begin  OjE-ist-scheisse.txt
bye, Joerg
Registered Linux User #97793 @ http://counter.li.org
end

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: Automatic Table with rotating color

Posted by Joerg Jaspert <mo...@german.ath.cx>.
"Gerald Richter" <ri...@ecos.de> writes:

>     <tr bgcolor="[+ $row % 2 == 0?'#eeeeee':'#cccccc' +]">

Nice. Thx. Exact what i want. :)

And: Thanks for the Answer about Apache::DBI & Co. (Dont want to start
a new Mail for it :) ).

-- 
begin  OjE-ist-scheisse.txt
bye, Joerg
Registered Linux User #97793 @ http://counter.li.org
end

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: Automatic Table with rotating color

Posted by Gerald Richter <ri...@ecos.de>.
Hi
> 
> Is there a way to get every 2 line of an autogenerated Table (with
> $row) in another Color with Embperl 1.x ?
> I have a BIG Table (many Columns) and its hard to read the table
> without it.
> 

I use something like:

<table>
    <tr bgcolor="[+ $row % 2 == 0?'#eeeeee':'#cccccc' +]">
        .....
    </tr>
</table>

Gerald


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org