Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Different table sizes for main store & admin pages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-10-2006, 08:00 PM
 
SugarFreeGum SugarFreeGum is offline
 

Newbie
  
Join Date: Nov 2004
Location: Australia
Posts: 8
 

Default Different table sizes for main store & admin pages

Ok,
i've done a fair bit of searching and have found the way to do it, however i need some help with the code.

Basically i have the table size set to 760px i want to keep it this way for the store side of things, but want it set to 100% for the admin side.

so from what i have found i need to put in an IF statement in rectangle_top.tpl. eg. If in admin section use 100% else use 760px.

Could somebody be so kind as to write this little bit of code for me?

Thanks in advance!

x-cart v4.0.14
__________________
X-Cart v4
Reply With Quote
  #2  
Old 08-11-2006, 03:09 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

{if $usertype eq "C"}width="760"{else}width="100%"{/if}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 08-14-2006, 10:45 PM
 
SugarFreeGum SugarFreeGum is offline
 

Newbie
  
Join Date: Nov 2004
Location: Australia
Posts: 8
 

Default

thanks!
__________________
X-Cart v4
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:07 AM.

   

 
X-Cart forums © 2001-2020