![]() |
|
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Now what if 2 cell definitions exist for the same cell? For example there is a definition of "ALL" and one for "N" (north row). The later definition overwrites the previous ones, except if it's set to "transparent", then the definitions get "merged". Example:We have some data saved in a comma-separated-values style file. We read that in using the Bs_CsvUtil class. Instead, the data could come from a db table or from anywhere you like.CSV Data: ;1997;1998;1999;2000;2001;2002;2003 us;460;480;520;510;525;532;550 ca;120;125;130;90;95;92;115 uk;160;175;210;195;200;198;220 de;190;230;245;232;210;190;180 fr;140;142;143;165;162;152;160 ch;50;60;55;62;53;57;63 Then we have defined some styles. We can use the styles editor to simplify this task. Styles:
[style]
ALL = color:black; weight:normal; font-size:12px; font-style:normal;
font-family:Verdana,Arial; border-bottom:thin solid #58A29E;
ZC_1 = background-color:white;
ZC_0 = background-color:#DBEFEB;
E = background-color:white; border-right:thin solid #58A29E;
W = background-color:#54BA99; border-left:thin solid #58A29E;
N = color:white; background-color:#58A29E; font-weight:bold;
Here is the PHP code to put this together: PHP Code:
<?phpAnd finally the output:
|
Documentation:
Download:This class ships with the BlueShoes Framework. See the download page.Let us knowHave you done something interesting with BlueShoes or one of its components? |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||