CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 dynamic MENU

Print topic Send  topic

Author Message
marc
Posted: 08/13/2001, 1:37 AM

This is a multi-part message in MIME format.

------=_NextPart_000_001B_01C1232F.1B9A0BC0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

hello

i want to have different MENU depending of the level of the login user, =
is
it possible and if yes how?

i tried the next code but it's not work
<? if userRights=3D5 {?> in the header of form menuclient and <?}?> in =
the footer=20
<? if userRights=3D10 {?> in the header of form menuentreprise and =
<?}?> in the footer=20
<? if userRights=3D50 {?> in the header of form menuentreprise and =
<?}?> in the footer=20
=20
=20
but then i obtain the following result
=20
{Formmenuclient} {Formmenuentreprise} =20
{Formmenuadministrateur} =20


what's wrong?
=20
And when i directly make the modification in menu.php3 with the =
following
if userRights=3D5 {menuclient_show();}
if userRights=3D10 {menuentreprise_show();}
if userRights=3D50 {menuadministrateur_show();}
i obtain (with a client)

CLIENT=20
=20
Form1=20
=20
=20
Form1=20
=20
=20

I need some help



------=_NextPart_000_001B_01C1232F.1B9A0BC0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#fffff0>
<DIV><FONT face=3DArial size=3D2>hello<BR><BR>i want to have different =
MENU=20
depending of the level of the login user, is<BR>it possible and if yes=20
how?<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>i tried the next code but it's not =

work</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><STRONG><? if userRights=3D5 {?>=20
</STRONG><EM>in the header of  form menuclient and =
</EM><STRONG><?}?>=20
</STRONG><EM>in the footer </EM></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2><STRONG><? if userRights=3D10 {?> =

</STRONG><EM>in the header of  form menuentreprise and=20
</EM><STRONG><?}?> </STRONG><EM>in the footer=20
</EM></FONT></DIV></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2><STRONG><? if userRights=3D50 {?> =

</STRONG><EM>in the header of  form menuentreprise and=20
</EM><STRONG><?}?> </STRONG><EM>in the footer=20
</EM></FONT></DIV></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>but then i obtain the following =
result</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> {Formmenuclient} <?}?>
<TABLE>
<TBODY>
<TR>
<TD vAlign=3Dtop><FONT size=3D2>{Formmenuentreprise}=20
<?}?></FONT></TD></TR></TBODY></TABLE>
<TABLE>
<TBODY>
<TR>
<TD vAlign=3Dtop><?if ($UserRights=3D=3D10) {=0A=
echo "Bonjour DEUS ES MACHINA";?><FONT=20
size=3D2>{Formmenuadministrateur} =
</FONT></TD></TR></TBODY></TABLE></FONT></DIV>
<DIV><FONT face=3DArial><BR></FONT><FONT face=3DArial><FONT =
size=3D2>what's=20
wrong?</FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2></FONT></FONT> </DIV>
<DIV><FONT face=3DArial><FONT size=3D2>And when i directly make the =

modification in menu.php3 with the following</FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2>if userRights=3D5 =20
{menuclient_show();}<BR><FONT face=3DArial><FONT size=3D2>if =
userRights=3D10 =20
{</FONT></FONT>menuentreprise_show();}<BR><FONT face=3DArial><FONT =
size=3D2>if=20
userRights=3D50  {</FONT></FONT>menuadministrateur_show();}<BR>i =
obtain (with=20
a client)</FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial><FONT size=3D2>
<TABLE>
<TBODY>
<TR>
<TD vAlign=3Dtop>
<TABLE>
<TBODY>
<TR>
<TD style=3D"BACKGROUND-COLOR: #99ccff"><A=20
href=3D"http://www.pointtravaux.com/{Field1}"><FONT=20
style=3D"COLOR: #000000; FONT-SIZE: 10pt"><FONT=20
=
size=3D1>CLIENT</FONT></FONT></A></TD></TR></TBODY></TABLE></TD></TR></TB=
ODY></TABLE>
<TABLE>
<TBODY>
<TR>
<TD vAlign=3Dtop>
<TABLE>
<TBODY>
<TR>
<TD=20
style=3D"BACKGROUND-COLOR: #0c627e; COLOR: #ffffff; =
TEXT-ALIGN: center"><FONT=20
style=3D"COLOR: #ffffff; FONT-SIZE: 12pt; FONT-WEIGHT: =
bold">Form1</FONT></TD></TR>
<TR>
<TD style=3D"BACKGROUND-COLOR: #99ccff"><A=20
href=3D"http://www.pointtravaux.com/{Field1}"><FONT=20
style=3D"COLOR: #000000; FONT-SIZE: =
10pt"><ENTREPRISE></FONT></A></TD></TR></TBODY></TABLE></TD></TR></TBODY>=
</TABLE>
<TABLE>
<TBODY>
<TR>
<TD vAlign=3Dtop>
<TABLE>
<TBODY>
<TR>
<TD=20
style=3D"BACKGROUND-COLOR: #0c627e; COLOR: #ffffff; =
TEXT-ALIGN: center"><FONT=20
style=3D"COLOR: #ffffff; FONT-SIZE: 12pt; FONT-WEIGHT: =
bold">Form1</FONT></TD></TR>
<TR>
<TD style=3D"BACKGROUND-COLOR: #99ccff"><A=20
href=3D"http://www.pointtravaux.com/{Field1}"><FONT=20
style=3D"COLOR: #000000; FONT-SIZE: 10pt"><SUPER=20
=
UTILISATEUR></FONT></A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABL=
E></FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2>I need some=20
help<BR><BR></DIV></FONT></FONT></BODY></HTML>

------=_NextPart_000_001B_01C1232F.1B9A0BC0--
Alexey Alexapolsky
Posted: 08/13/2001, 1:49 AM

This is a multi-part message in MIME format.

------=_NextPart_000_0016_01C123ED.BDC4D7E0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

please see tips and articles section in gotocode.com

--=20
Alex
CC


marc <marc@spokcomputers.com> wrote in message =
news:9l83k6$17e$1@news.codecharge.com...
hello

i want to have different MENU depending of the level of the login =
user, is
it possible and if yes how?

i tried the next code but it's not work
<? if userRights=3D5 {?> in the header of form menuclient and <?}?> =
in the footer=20
<? if userRights=3D10 {?> in the header of form menuentreprise and =
<?}?> in the footer=20
<? if userRights=3D50 {?> in the header of form menuentreprise and =
<?}?> in the footer=20
=20
=20
but then i obtain the following result
=20
{Formmenuclient} {Formmenuentreprise} =20
{Formmenuadministrateur} =20


what's wrong?
=20
And when i directly make the modification in menu.php3 with the =
following
if userRights=3D5 {menuclient_show();}
if userRights=3D10 {menuentreprise_show();}
if userRights=3D50 {menuadministrateur_show();}
i obtain (with a client)

CLIENT=20
=20
Form1=20
=20
=20
Form1=20
=20
=20

I need some help



------=_NextPart_000_0016_01C123ED.BDC4D7E0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2919.6307" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#fffff0>
<DIV><FONT size=3D2>please see tips and articles section in=20
gotocode.com</FONT></DIV>
<DIV><BR>-- <BR>Alex<BR><FONT size=3D2>CC</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>marc <<A=20
href=3D"mailto:marc@spokcomputers.com">marc@spokcomputers.com</A>> =
wrote in=20
message <A=20
href=3D"news:9l83k6$17e$1@news.codecharge.com">news:9l83k6$17e$1@news.cod=
echarge.com</A>...</DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
<DIV><FONT face=3DArial size=3D2>hello<BR><BR>i want to have different =
MENU=20
depending of the level of the login user, is<BR>it possible and if yes =

how?<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>i tried the next code but it's =
not=20
work</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><STRONG><? if userRights=3D5 =
{?>=20
</STRONG><EM>in the header of  form menuclient and=20
</EM><STRONG><?}?> </STRONG><EM>in the footer </EM></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2><STRONG><? if userRights=3D10 =
{?>=20
</STRONG><EM>in the header of  form menuentreprise and=20
</EM><STRONG><?}?> </STRONG><EM>in the footer=20
</EM></FONT></DIV></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2><STRONG><? if userRights=3D50 =
{?>=20
</STRONG><EM>in the header of  form menuentreprise and=20
</EM><STRONG><?}?> </STRONG><EM>in the footer=20
</EM></FONT></DIV></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>but then i obtain the following=20
result</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> {Formmenuclient} <?}?>
<TABLE>
<TBODY>
<TR>
<TD vAlign=3Dtop><FONT size=3D2>{Formmenuentreprise}=20
<?}?></FONT></TD></TR></TBODY></TABLE>
<TABLE>
<TBODY>
<TR>
<TD vAlign=3Dtop><?if ($UserRights=3D=3D10) {=0A=
echo "Bonjour DEUS ES MACHINA";?><FONT=20
size=3D2>{Formmenuadministrateur} =
</FONT></TD></TR></TBODY></TABLE></FONT></DIV>
<DIV><FONT face=3DArial><BR></FONT><FONT face=3DArial><FONT =
size=3D2>what's=20
wrong?</FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2></FONT></FONT> </DIV>
<DIV><FONT face=3DArial><FONT size=3D2>And when i directly make =
the=20
modification in menu.php3 with the following</FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2>if userRights=3D5 =20
{menuclient_show();}<BR><FONT face=3DArial><FONT size=3D2>if =
userRights=3D10 =20
{</FONT></FONT>menuentreprise_show();}<BR><FONT face=3DArial><FONT =
size=3D2>if=20
userRights=3D50  {</FONT></FONT>menuadministrateur_show();}<BR>i =
obtain=20
(with a client)</FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial><FONT size=3D2>
<TABLE>
<TBODY>
<TR>
<TD vAlign=3Dtop>
<TABLE>
<TBODY>
<TR>
<TD style=3D"BACKGROUND-COLOR: #99ccff"><A=20
href=3D"http://www.pointtravaux.com/{Field1}"><FONT=20
style=3D"COLOR: #000000; FONT-SIZE: 10pt"><FONT=20
=
size=3D1>CLIENT</FONT></FONT></A></TD></TR></TBODY></TABLE></TD></TR></TB=
ODY></TABLE>
<TABLE>
<TBODY>
<TR>
<TD vAlign=3Dtop>
<TABLE>
<TBODY>
<TR>
<TD=20
style=3D"BACKGROUND-COLOR: #0c627e; COLOR: #ffffff; =
TEXT-ALIGN: center"><FONT=20
style=3D"COLOR: #ffffff; FONT-SIZE: 12pt; FONT-WEIGHT: =
bold">Form1</FONT></TD></TR>
<TR>
<TD style=3D"BACKGROUND-COLOR: #99ccff"><A=20
href=3D"http://www.pointtravaux.com/{Field1}"><FONT=20
style=3D"COLOR: #000000; FONT-SIZE: =
10pt"><ENTREPRISE></FONT></A></TD></TR></TBODY></TABLE></TD></TR></TBODY>=
</TABLE>
<TABLE>
<TBODY>
<TR>
<TD vAlign=3Dtop>
<TABLE>
<TBODY>
<TR>
<TD=20
style=3D"BACKGROUND-COLOR: #0c627e; COLOR: #ffffff; =
TEXT-ALIGN: center"><FONT=20
style=3D"COLOR: #ffffff; FONT-SIZE: 12pt; FONT-WEIGHT: =
bold">Form1</FONT></TD></TR>
<TR>
<TD style=3D"BACKGROUND-COLOR: #99ccff"><A=20
href=3D"http://www.pointtravaux.com/{Field1}"><FONT=20
style=3D"COLOR: #000000; FONT-SIZE: 10pt"><SUPER=20
=
UTILISATEUR></FONT></A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABL=
E></FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2>I need some=20
help<BR><BR></DIV></BLOCKQUOTE></FONT></FONT></BODY></HTML>

------=_NextPart_000_0016_01C123ED.BDC4D7E0--

   


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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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