bigtoe
Posts: 115
|
| Posted: 10/04/2004, 10:50 PM |
|
How can I hide (visible=false) a table such that all its contents:
rows
columns
controls
...
Are all hidden.
Then how do I make the whole table visible again?
|
 |
 |
thomas2340
Posts: 55
|
| Posted: 10/05/2004, 12:11 AM |
|
hi, its simple, iam using a style for it, in my case, if a user is logged in i show the table, if logged out not.
put this in the before show event:
global $Tpl;
if (CCGetSession("UserID") == "") {
$Tpl->SetVar("ShowMemberOnly", "display:none");
}
else {
$Tpl->SetVar("ShowMemberOnly", "");
}
and this into the html page
<table style="{ShowMemberOnly}" width="150" border="0" cellpadding="0" cellspacing="0" id="userNavi">
regards thomas
|
 |
 |
bigtoe
Posts: 115
|
| Posted: 10/23/2004, 2:49 AM |
|
Thanks.
|
 |
 |
|