mkmoisen
08-20-2010, 08:41 PM
1) Script Title:
AnyLink JS Drop Down Menu v2.2
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm
3) Describe problem:
How do I tell this link:
<li><a href=\"cim.saddleback.edu\" class=\"menuanchorclass\" rel=\"anylinkmenu1[click]\" rev=\"lr\">".stripslashes($ev["event_title"])."</li>
to tell the CSS to change the links in the dropdown menu each time?
I have an event driven PHP calendar. Currently, the days that have events show the event title and nothing else (description, editing/deleting options, etc).
I want each event to have a drop down menu when clicked with a few options like EDIT DELETE COMPLETED etc. These options would then open a pop up window to edit/delete/confirm complete.
My calendar is automatically created with PHP. For each day, mysql is told to find events for that day, and if they exist to put the event title into a variable for my PHP to place in the day.
Each event also has a unique ID. Here is where I can hopefully get this to work.
How would I make it so that for each event that has a drop down menu, the drop down menu would link to a pop up like /event_edit.php?id=10 ?
This is the link that contains the drop down menu (with PHP):
<li><a href=\"cim.saddleback.edu\" class=\"menuanchorclass\" rel=\"anylinkmenu1[click]\" rev=\"lr\">".stripslashes($ev["event_title"])."</a></li>
This link is automatically placed via for loops for every day that contains an event. the stripslashes($ev["event_title"]) is the event title obviously. I need it so that I can get the PHP to automatically tell that link to include the ID of the event.
That I can do with PHP. What I can't do is to get the link to tell the DHTML the ID name. How would I do that?
Sorry if this is jumbled.
Thank you.
AnyLink JS Drop Down Menu v2.2
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm
3) Describe problem:
How do I tell this link:
<li><a href=\"cim.saddleback.edu\" class=\"menuanchorclass\" rel=\"anylinkmenu1[click]\" rev=\"lr\">".stripslashes($ev["event_title"])."</li>
to tell the CSS to change the links in the dropdown menu each time?
I have an event driven PHP calendar. Currently, the days that have events show the event title and nothing else (description, editing/deleting options, etc).
I want each event to have a drop down menu when clicked with a few options like EDIT DELETE COMPLETED etc. These options would then open a pop up window to edit/delete/confirm complete.
My calendar is automatically created with PHP. For each day, mysql is told to find events for that day, and if they exist to put the event title into a variable for my PHP to place in the day.
Each event also has a unique ID. Here is where I can hopefully get this to work.
How would I make it so that for each event that has a drop down menu, the drop down menu would link to a pop up like /event_edit.php?id=10 ?
This is the link that contains the drop down menu (with PHP):
<li><a href=\"cim.saddleback.edu\" class=\"menuanchorclass\" rel=\"anylinkmenu1[click]\" rev=\"lr\">".stripslashes($ev["event_title"])."</a></li>
This link is automatically placed via for loops for every day that contains an event. the stripslashes($ev["event_title"]) is the event title obviously. I need it so that I can get the PHP to automatically tell that link to include the ID of the event.
That I can do with PHP. What I can't do is to get the link to tell the DHTML the ID name. How would I do that?
Sorry if this is jumbled.
Thank you.