CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 different CSS files for each user

Print topic Send  topic

Author Message
Yusuf Akyol
Posted: 02/11/2002, 12:31 AM

Hi,
How can I code in PHP4 for selecting and using different CSS files for each user ?
Thanks.
Best regards.
CodeCharge Support
Posted: 02/11/2002, 4:16 AM

Yusuf,
you should generate site several times, each time selecting different styles on Site/Style and renaming generated Site.css. Lets say you get: Site1.css, Site2.css, Site3.css.
If you use templateless version create Custom Show Page event and define .css file depending on value of session variable UserID.
E.g.:
switch (get_session("UserID"))
{
case 1:
$css = "Site1.css";
break;
case 2:
$css = "Site2.css";
break;
case 3:
$css = "Site3.css";
break;

}
<link rel="stylesheet" href="<?=$css ?>" type="text/css">

   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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