Hi,
I am trying to create a report page for several teams. Each team runs the
same reports but the reports use different values.
For a while this was getting insane everytime I updated the queries I had to
change them in many places. Then I started using server side includes to
keep me from changing some items in multiple places.
There is still some double (quadruple) updating going on though when I make
some other basic changes so I was hoping to use a pull down menu on the web
page so visitors can select their team and then have the page refresh itself
with the correct queries for that team.
A simplified example of the server side include statement in the file is:
<a href="http://myserver.com/main/gecko/list?<!--#echo
var="COMPONENTS_TeamA" -->"> All types - including enhancements </a>
What I was hoping was to use the pulldown menu such that if they selected
TeamB that the above would change to TeamB from TeamA and refresh the page
to pick up the new definitions. I have each teams definitions defined in
their own .shtml file in hopes that I can include the proper file on the
fly.
If I was not already lost/off base - this is where I know I am lost.
I was trying to play around with a pull down menu to select the team and
then use some server side include to pull in the right include file.
Below was my attempt at trying this but I quickly ran into dead ends and
could not find the right info on the web:
<form>
<SELECT name="team_select">
<OPTION selected VALUE="TeamA">TeamA
<OPTION VALUE="TeamB">TeamB
<OPTION VALUE="TeamC">TeamC
<OPTION VALUE="TeamD">TeamD
</SELECT></p>
<some how need to refresh the page here to pick up the correct server side
include info below >
<!--#if team_select="TeamA" -->
<!--#include file="TeamA_defn.shtml" -->
<!--#elif team_select="TeamB" -->
<!--#include file="TeamB_defn.shtml" -->
<!--#elif team_select="TeamC" -->
<!--#include file="TeamC_defn.shtml" -->
<!--#else -->
<!--#include file="TeamD_defn.shtml" -->
<!--#endif -->
</form>
I'm not sure if I have explained well enough yet what I am trying to do or
what I tried to do. Does anyone have any suggestions I might try? Do you
need more info?
Thanks for any tips you can point me too.
Glenn