Time to remove those frames. First a CSS menu have been added in the package's documentation. Then in the website too.
But how to add a CSS menu in the package itself ? Well, I was thinking about :
- Using Object tag
- IFrame
- PHP include
- Template
- SSI
Finally, using template seems to be the good choice. PHP is the easy answer as you could include
a file within a file with 'include' but it requires php to be on the server. It may be true
on Unix but sadly not on Windows (maybe IIS 8 ?).
Server Side Include can do the job but it's pretty old and may have some security concerns. Also, it requires
file to have the shtml extension rather than html and need to be activated in your server.
IFrame and object tag can provide a way to include file but not a drop down CSS menu (will be hide within the window).
The backdraw of using Template is to include the CSS menu in every pages ... but using scripts, this is not a problem.
Also, you'll have now to open the CSS menu in order to select another stats report, the frames had all useful links
from a single clicks.
Once Template have been chosen, there are many ways to integrate them as the CSS Menu need to updated once each
scripts have been ran.
- Scanning all html pages to update the menu
- Using a CGI to add the menu
- Using AJAX
CGI and AJAX allow dynamic CSS menu but require calls to the server each time a request is made...bad idea.
So I've chosen the first item. Once a script is completed, it will scan every html pages already built and will
update the CSS menu. It can take a while if you have thousand of files to parse.