zecinho
Posts: 24
|
| Posted: 02/23/2010, 5:51 AM |
|
Has somene get work a dynamic table background? I could get dynamic image inside a Label with HTML content but I can't get work a table background.
_________________
Jose Maldonado |
 |
 |
datadoit
|
| Posted: 02/23/2010, 7:21 AM |
|
Use the $Tpl variable to accomplish this.
In the table's BeforeShow event:
global $Tpl;
if (this) {
$Tpl->SetVar("Background", "#efefef");
}
else {
$Tpl->SetVar("Background", "egegeg");
}
In the HTML:
<table bgcolor="{Background}">
|
|
|
 |
zecinho
Posts: 24
|
| Posted: 02/23/2010, 9:05 AM |
|
What a cool piece of code. This solve the problem. Thanks datadoit !!
_________________
Jose Maldonado |
 |
 |
guiags
Posts: 29
|
| Posted: 02/24/2010, 1:15 AM |
|
Hi
And what am i suppose to do if i want to change the background of some rows (according to their content)
|
 |
 |
|