yet another scriptpath problem

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
User avatar
bonewalker
Super Advanced
Super Advanced
Posts: 40
Joined: Tue Aug 19, 2003 10:35 pm

Post by bonewalker »

Hi Guys,

Ran into a snag. Can anyone tell me what I am doing wrong?
A few messages up you'll see one from me indicating you can actually use any suffix you need depending on how you're putting your menu together.
The quote above was true. I changed the extension of my menu_data to .php, then called that file, and the menu worked fine.

However, when I actually put some php code into the page, the menu does not appear, and I get no php error messages or anything.

Any ideas? My code is below:

Code: Select all

<?
include "dbconnect.php";
echo "file loaded";
$sql="select * from directories order by lname";
$result = db_query($sql); 
	while ($record = get_record($result))
	{
	$lname=$record[lname];
	$fname=$record[fname];
	$ext=$record[extension];
	$email=$record[email];
	$dept_id=$record[dept_id];
	$send_quote.= "aI(\"text=$lname,$fname $ext;url=mailto:$email;separatorsize=1;itemwidth=25;align=center\")";
	}
?>

effect="Fade(duration=0.2);Alpha(style=0,opacity=88);Shadow(color='#777777', Direction=135, Strength=5)"
_menuCloseDelay=500;
_menuOpenDelay=150;
_scrollAmount=3;
_scrollDelay=20;
_followSpeed=5;
_followRate=40;
_subOffsetTop=4;
_subOffsetLeft=0;



with(style1=new mm_style()){
offcolor="#ffffff";
offbgcolor="#CD5806";
oncolor="#ffffff";
onbgcolor="#00204e";
bordercolor="#666699";
borderstyle="solid";
bordercolor="#666699";
fontsize=10;
fontstyle="normal";
fontweight="bold";
fontfamily="Verdana, Arial";
padding=5;
subimage="";
high3dcolor="#66ffff";
low3dcolor="#000099";
pagecolor="Purple";
pagebgcolor="pink";
headercolor="#ffffff";
headerbgcolor="#000099";
separatorcolor="#333333";

}

with(milonic=new menuname("mainmenu")){
borderwidth=1;
style=style1;
alwaysvisible=1;
alignment="left";
followscroll=0;
orientation="vertical";
aI("text=B&nbsp;&nbsp;showmenu=b;separatorsize=1;itemwidth=25;align=center")
aI("text=C&nbsp;&nbsp;showmenu=c;separatorsize=1;itemwidth=25;align=center")
aI("text=E&nbsp;&nbsp;showmenu=e;separatorsize=1;itemwidth=25;align=center")
aI("text=F&nbsp;&nbsp;showmenu=f;separatorsize=1;itemwidth=25;align=center")
aI("text=G&nbsp;&nbsp;showmenu=g;separatorsize=1;itemwidth=25;align=center")
aI("text=H&nbsp;&nbsp;showmenu=h;separatorsize=1;itemwidth=25;align=center")
aI("text=N&nbsp;&nbsp;showmenu=n;separatorsize=1;itemwidth=25;align=center")
aI("text=P&nbsp;&nbsp;showmenu=p;separatorsize=1;itemwidth=25;align=center")
aI("text=S&nbsp;&nbsp;showmenu=s;separatorsize=1;itemwidth=25;align=center")
}

with(milonic=new menuname("b")){
itemwidth=175;
borderwidth=1;
style=style1;
alignment="left";
aI("text=Joe Blow - 387;separatorsize=1")
}

with(milonic=new menuname("c")){
itemwidth=175;
borderwidth=1;
style=style1;
alignment="left";
aI("text=Joe Chapman - 355;separatorsize=1")
aI("text=Computer Services - 355;showmenu=cs;separatorsize=1")
}

with(milonic=new menuname("e")){
itemwidth=175;
borderwidth=1;
style=style1;
alignment="left";
aI("text=Joe Emerson - 510;separatorsize=1")
aI("text=Joan Emel - 457;separatorsize=1")
<?echo $send_quote;?>
}
I didn't post all the code. But you will notice the php script at the top that makes the database query and assigns the results to a variable called $send_quote. Under menu "e", I tried to echo $sendquote.

Thanks for any help.

Bonewalker
User avatar
bonewalker
Super Advanced
Super Advanced
Posts: 40
Joined: Tue Aug 19, 2003 10:35 pm

Problem Solved

Post by bonewalker »

Nevermind!

Solved my own problem. :oops:

I had forgotten to start a new line at the end of each item.

Bonewalker
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Great that you solved it yourself :!: Not that we can't, but it's got to feel a lot better... :D
John
Post Reply