CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 Menu Item

Print topic Send  topic

Author Message
Steven Quek
Posted: 06/04/2002, 10:48 PM

How can i conditional enable/disable menu item
This could based on the login user.

Alexey Alexapolsky
Posted: 06/05/2002, 12:04 AM

1) Enclose a given item into template block , like

<!-- BEGIN myblock -->
<td bgcolor="#f0f0f0"><a href="{add_bug_link_Src}"><font style="COLOR:
#000000; FONT-FAMILY: Arial, Tahoma, Verdana, Helvetica; FONT-SIZE:
10pt"><img border="0" src="images/icon_add.gif"></font></a></td>
<!-- END myblock -->

2) Get user rights from CCGetGroupID

4) If rights are insufficient, then set template variable to empty string ,
e.g.

global $Tpl;
if ($condition)

$Tpl->setvar("myblock","");
}

--
Alex
CodeCharge Developer


"Steven Quek" <skquek@pacific.net.sg> wrote in message
news:adk8n8$qt8$1@news.codecharge.com...
> How can i conditional enable/disable menu item
> This could based on the login user.
>
>

Steven Quek
Posted: 06/05/2002, 8:28 PM

I'm using the asp.


"Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
news:adkd5p$3ka$2@news.codecharge.com...
> 1) Enclose a given item into template block , like
>
> <!-- BEGIN myblock -->
> <td bgcolor="#f0f0f0"><a href="{add_bug_link_Src}"><font style="COLOR:
> #000000; FONT-FAMILY: Arial, Tahoma, Verdana, Helvetica; FONT-SIZE:
> 10pt"><img border="0" src="images/icon_add.gif"></font></a></td>
> <!-- END myblock -->
>
> 2) Get user rights from CCGetGroupID
>
> 4) If rights are insufficient, then set template variable to empty string
,
> e.g.
>
> global $Tpl;
> if ($condition)
>
> $Tpl->setvar("myblock","");
> }
>
> --
> Alex
> CodeCharge Developer
>
>
> "Steven Quek" <skquek@pacific.net.sg> wrote in message
>news:adk8n8$qt8$1@news.codecharge.com...
> > How can i conditional enable/disable menu item
> > This could based on the login user.
> >
> >
>
>


   


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

MS Access to Web

Convert MS Access to Web.
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.