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.
> >
> >
>
>
|
|
|
 |
|