Ran into a snag. Can anyone tell me what I am doing wrong?
The quote above was true. I changed the extension of my menu_data to .php, then called that file, and the menu worked fine.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.
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 showmenu=b;separatorsize=1;itemwidth=25;align=center")
aI("text=C showmenu=c;separatorsize=1;itemwidth=25;align=center")
aI("text=E showmenu=e;separatorsize=1;itemwidth=25;align=center")
aI("text=F showmenu=f;separatorsize=1;itemwidth=25;align=center")
aI("text=G showmenu=g;separatorsize=1;itemwidth=25;align=center")
aI("text=H showmenu=h;separatorsize=1;itemwidth=25;align=center")
aI("text=N showmenu=n;separatorsize=1;itemwidth=25;align=center")
aI("text=P showmenu=p;separatorsize=1;itemwidth=25;align=center")
aI("text=S 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;?>
}
Thanks for any help.
Bonewalker