Hi I’ve been using the smarty template engine to separate my presentation code from my logic code. It all worked well until I decided to incorporate a dropdown menu using Javascript as soon as I did this I got the following error message.
Fatal error: Smarty: [in about.tpl line 9]: syntax error: unbalanced parenthesis in if statement (Smarty_Compiler.class.php, line 1110) in c:\PHP\includes\Smarty_Compiler.class.php on line 1857
I’ve tried adding and removing parenthesis in logical places to fix the problem but nothing seems to work. Here is a snippet of the offending code any suggestions?
<script language="JavaScript" type="text/JavaScript">
function mmLoadMenus() {
if (window.mm_menu_0302213734_0) return;
window.mm_menu_0302213734_0 = new Menu("root",184,18,"Verdana, Arial, Helvetica, sans-serif",12,"#000000","#666666","#B1B2B1","#FFFFFF","left","middle",3,0,300,-5,7,true,true,true,0,true,true);
mm_menu_0302213734_0.addMenuItem("Our Background","window.open('background.php', 'self');");
mm_menu_0302213734_0.addMenuItem("Our Philosophy","window.open('philosophy.php', 'self');");
mm_menu_0302213734_0.addMenuItem("Our Core Values","window.open('values.php', 'self');");
mm_menu_0302213734_0.addMenuItem("Our Corporate Objectives","window.open('objectives.php', 'self');");
mm_menu_0302213734_0.addMenuItem("Our Team","window.open('team.php', '_self');");
mm_menu_0302213734_0.hideOnMouseOut=true;
mm_menu_0302213734_0.bgColor='#666666';
mm_menu_0302213734_0.menuBorder=0;