What I'm trying to accomplish: take the functionality below (see picture) and do the same without using a MapServer template (if this is even possible).
I currently have a mapfile, and an openlayers file. All the data is being displayed correctly.
In my mapfile, I reference a database. I call out that database by a column name so what is what's used for the label on the map. Quite simple.
Now, the thing here is that I'm accessing just a standard php/html file. Not a mapserver template, like:
http://192.168.2.164/cgi-bin/mapserv.exemap=%2Ftmp%2Fnavhome%2Fnavcore%2Ftemplates3%2FAllAirports.map&mode=nquery&imgext=-180.000000+-107.943706+180.000000+107.943706&imgxy=640+384&zoom=0&qlayer=Cities&layers=world&searchmap=true&img.x=705&img.y=347
Example: 123.456.7.890/mymap.php in the browser is what I want. Not the above.
Now if I wanted to accomplish this using a MapServer template (correct me if I'm wrong on my terminology), this has proven to be quite easy, because you can reference
map_body.html
map_header.html
map_footer.html
in your Mapfile. In those files you can do some javascript and whatnot, reference the columns in the DB and it works. See below for an example of this (top left is the onClick functionality when you click on a point on the map, where the mouse is is just the mouseover).
See below: this is what I want to do without the cumbersome MapServer functionality, ie sluggish navigation buttons
So what I'm trying to wrap my head around is: how do you set up the database references in your .html/php file? Or, how do you reference the templates (map_body.html, map_header.html, map_footer.html) from your MapFile in your OpenLayers file?