---
In-Line Contextual Advertising Manager
---
Three files - one that is an administrative area,one that is an include that activates the text ads on the page (PHP), and one that is a PHP file that acts as a Javascript (so that people can include the script on an HTML only page with <script>.
For the administrative area, the admin should be able to...
-Add new text ads by keyword. Fields should be "keywords" (comma seperated), "title" (max of 40 chars), "description line 1" (max. of 30 chars), "description line 2", (max of 30 chars), "display URL" (max 30 chars), and "link url". When adding new keyword(s), there should be a confirmation page which shows what the ad will look like and function like, and should have a "back" (edit) button and a "add advertisement" button.
-View / edit / delete existing ads (a list of current ads should come up immediately after logging into the administrative area, and there should be edit / delete links next to them.
-Have an option to allow users to turn off the ads.
For the include pages, the code should turn all applicable keywords on the page (except those already linked) into links that popup the little hover windows as shown in the animated image here: [login to view URL]
Those hover windows should have the information pulled from the database for the specific keyword. The entire tan section of the box should be a link to the "link url". The "What's This?" at the top right of the ad should open up a new window (can be part of the PHP include page) that explains how the ads work. If the administrator has "option to turn off ads" allowed, then this page should have a button to set a cookie which blocks the ads from being shown to that specific person (so if they have that cookie when they visit the site the next time, the ads will not show).
Important things to note: The script cannot let multiple entries for the same keyword exist. The administrative area should be password protected. The javascript for HTML pages only MUST do the same thing as the PHP include file, but with Javascript (they need to function the same). The administrative area should be simple with text only - it can be formatted with CSS.