Forum Moderators: coopster
Basically, I am a part of a childrens charity organization with local branches throuhout U.K. For our website i need to setup a sort of page where each branch can login to an admin area and add their branch contact details.
For example: if a new branch was to open in Liverpool, the branch manager should be given a username and password to add and maintain his/her branch details to the website. So, Basically when the manager ads the his branch details, he/she should be prompted to input the contact details and exact address of the branch including zip/postcode and he/she should also have the feature to input keyword postcodes. For example: if the actual branch is in NW2, he/she may want to add NW3 and NW2 as as a keyword, so therefore when someone goes to the site to find a local branch. if they type in NW3, since this branch manager specified NW3 as part of his branch, the script should give the visitor contact information for that branch.
I am in urgent need of getting a script like this as soon as possible. Can anyone plzzzzzzzzzzzzzzzzzz help me? or suggest any similar opensource scripts like this that i may be able to use?
I really appreciate anyones help
Many Many Thanks
Cheers
Linda
the branch manager should be given a username and password to add and maintain his/her branch details to the website
sounds like a Content Management System (CMS) that is user based.
the feature to input keyword postcodes
So a page/branch keyword association that is searchable, maybe take a look at the search scripts on those sites nosanity mentioned.
I would look at CMS first, once you get that implemented (with search possibilities in mind) you can worry about the search itself.
Your best bet is to write it yourself, or have someone to write it for you. What you are looking for is usually part of a larger project such as project managment colaberation software, but not generally found by itself.
The first thing is you will need a database to store the data into.
The database will have all the contact information in the first table, and the search terms in the second table.
Next, you will need to write a script that is just a form, and a form processor. The form will display the form to update their contact information, the form processor tests the validity of each form element, then places the data in the database.
Then you will want to add a login page, and a login processor. Your login page displays the pretty form, the login processor checks the database for the username and password, and would probably set a variable of the locations ID. (Which would be used by the update contact form).
Third, now that you have the data in the database, you want the public to retrieve parts of it. You will need to add a "find location" page or something similar. This would be able to list all locations, or search based on location name, contact, or keywords.
That's essentially it...and remember, we are here with you for any question you might have with PHP [php.net].
noSanity