X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   admin / user layout variance - looking for code (https://forum.x-cart.com/showthread.php?t=22124)

tom7678 05-28-2006 10:13 PM

admin / user layout variance - looking for code
 
I am setting my admin section to a width of x and my customer section to a width of y.

considering the rectangle_top.tpl template controlls both sections I was looking for an example of code using the {if} statement that will allow for the differenciation.

thanks in advance.

balinor 05-29-2006 04:37 AM

{if $usertype eq "C"}

display customer code

{else}

display admin code

{/if}

tom7678 05-29-2006 06:57 AM

Quote:

Originally Posted by balinor
{if $usertype eq "C"}

display customer code

{else}

display admin code

{/if}


Thank you.


All times are GMT -8. The time now is 02:28 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.