Thread: Nifty Corners?
View Single Post
  #21  
Old 12-11-2005, 12:45 PM
 
steveparks steveparks is offline
 

Advanced Member
  
Join Date: Jan 2003
Location: UK
Posts: 87
 

Default

here is an extract of my menu.tpl
Code:
<DIV style="padding-left: 5px;"> {php} $menuborder = new PhpMyBorder(); echo $menuborder -> begin("180","ffffff","ffffff"); //(width, fillcolor, edgecolor) {/php} <TABLE border="0" cellpadding="0" cellspacing="0" width="100%"> ......... ........ </TABLE> {php} echo $menuborder -> end(); {/php} </DIV>

you do a very similar thing for the dialog.tpl:
Code:
{* $Id: dialog.tpl,v 1.19 2004/06/24 09:53:29 max Exp $ *} {if $printable ne ''} {include file="dialog_printable.tpl"} {else} {php} $pmbdialogborder = new PhpMyBorder(); echo $pmbdialogborder -> begin("590","FFFFFF","FFFFFF"); // (width, fillcolor, edgecolor) {/php} <TABLE border="0" cellpadding="0" cellspacing="0" {$extra}> ...... ...... </TABLE> {php} echo $pmbdialogborder -> end(); {/php} {/if}

remember to include the class file somewhere where it will get called - i just called it from the end of func.php.


cheers
steve
__________________
--------------
RHEL3/Apache2/PHP4/MySQL4/Plesk7.5.3
X-Cart 4.0.16 - Live
X-Affiliate
X-AOM
ez-checkout
ez-upsell
--------------
Reply With Quote