CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 show/hide the whole table

Print topic Send  topic

Author Message
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?

View profile  Send private message
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


View profile  Send private message
bigtoe

Posts: 115
Posted: 10/23/2004, 2:49 AM

Thanks.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.