Forum Moderators: coopster
Well first off i have to be honest that i'm not a world scripter and just working for about 2 months with php so this is why i need your help. I have the next problem, but first look of to the website/server setup:
websitelink is: www.example.nl/cms/blocks/home.php
directory:
--> dir css
**********
menu.css
style.css
**********
-->dir images
-->dir includes
**********
header.php
footer.php
functions.php
--> dir blocks
**********
home.php
**********
---->dir includes
**********
menu.html
**********
---->dir leden
**********
add.php
edit.php
remove.php
view.php
**********
---->dir nieuws
**********
add.php
edit.php
remove.php
view.php
**********
Now here is the problem. I'm making a cms for a judoclub wich will be able to add, edit, remove and view nieuws, images, members, payments etc. Like you can see in the directory setup i'm using a html menu wich is styled with css. The menu.html is placed in www.example.nl/cms/blocks/includes/menu.html and the menu css is placed inside www.example.nl/cms/css/menu.css witch is include inside www.example.nl/cms/includes/header.php.
I would like to use 1 menu. now the problem is that i don't know how to use any function or php stuff wich will enable me to use this menu to browse through the site.
For viewing the nieuws (news) from the home.php a link would be something like that: "nieuws/view.php" but when i'm located in the nieuws directory it would be something like "view.php" and "../home.php" to get out of the directory. The same problem rises when i want to go from the nieuws directory to the leden directory. the link would be something like this "../leden/view.php".
The problem is that I have 1 main page (after login) wich is home.php. All the content will be kept inside subdirs for cleaning the website and the directory's.
Now can anyone help me making the code or get it right that i can use this particular menu without making 5 or 6 different menu's wich i need to include in the subdir's.
Hope you understand my problem, staying with best regards,
Bjorn Gulpen
[edited by: coopster at 4:57 pm (utc) on Dec. 9, 2006]
[edit reason] generalized url TOS [webmasterworld.com] [/edit]