%@ page session=false %>
<%@ page import = "java.util.*" %>
<%@ page import = "java.net.*" %>
<%-- This is Java stuff to create a lookup table. As we test/develop with other sites, we add coding for them --%>
<%
Hashtable topsiteID = new Hashtable(); // build hashtable
topsiteID.put("txcn", "txcntemplate_top.jsp");
topsiteID.put("nwcn", "nwcntemplate_top.jsp");
topsiteID.put("dallasnews","dallasnewstemplate_top.jsp");
topsiteID.put("kmov","kmovtemplate_top.jsp");
topsiteID.put("krem","kremtemplate_top.jsp");
topsiteID.put("king5","king5template_top.jsp");
topsiteID.put("pe","petemplate_top.jsp");
topsiteID.put("kgw","kgwtemplate_top.jsp");
topsiteID.put("kmsb","kmsbtemplate_top.jsp");
topsiteID.put("azfamily","azfamilytemplate_top.jsp");
topsiteID.put("ktvb","ktvbtemplate_top.jsp");
topsiteID.put("kskn","kskntemplate_top.jsp");
topsiteID.put("whas","whastemplate_top.jsp");
topsiteID.put("wwl","wwltemplate_top.jsp");
topsiteID.put("khou","khoutemplate_top.jsp");
topsiteID.put("kvue","kvuetemplate_top.jsp");
topsiteID.put("mysanantonio","mysanantoniotemplate_top.jsp");
topsiteID.put("denton","dentontemplate_top.jsp");
topsiteID.put("wvec","wvectemplate_top.jsp");
topsiteID.put("nbc6","nbc6template_top.jsp");
topsiteID.put("projo","projotemplate_top.jsp");
topsiteID.put("wfaa","wfaatemplate_top.jsp");
topsiteID.put("arlington","arlingtontemplate_top.jsp");
%>
<% String rsiteid="";
Cookie cookies[] = request.getCookies();
Cookie cookie = null;
if (cookies != null) {
for (int i=0; i < cookies.length; ++i) {
if (cookies[i].getName().equals("Siteid")) {
cookie = cookies[i];
rsiteid = URLDecoder.decode(cookie.getValue());
break;
} else {}
}
}
if (rsiteid == "") rsiteid = "dallasnews";
String Thisisthetoptemplateid = (String)topsiteID.get(rsiteid);
%>
<%-- This JSP coding does a server-side include of the HTML which represents the top template --%>
<%@ page session=false %>
<%@ page import = "java.util.*" %>
<%@ page import = "java.net.*" %>
<%-- This is Java stuff to create a lookup table. As we test/develop with other sites, we add coding for them --%>
<%
Hashtable topsiteID = new Hashtable(); // build hashtable
topsiteID.put("txcn", "txcntemplate_bot.jsp");
topsiteID.put("nwcn", "nwcntemplate_bot.jsp");
topsiteID.put("dallasnews","dallasnewstemplate_bot.jsp");
topsiteID.put("kmov","kmovtemplate_bot.jsp");
topsiteID.put("krem","kremtemplate_bot.jsp");
topsiteID.put("king5","king5template_bot.jsp");
topsiteID.put("pe","petemplate_bot.jsp");
topsiteID.put("kgw","kgwtemplate_bot.jsp");
topsiteID.put("kmsb","kmsbtemplate_bot.jsp");
topsiteID.put("azfamily","azfamilytemplate_bot.jsp");
topsiteID.put("ktvb","ktvbtemplate_bot.jsp");
topsiteID.put("kskn","kskntemplate_bot.jsp");
topsiteID.put("whas","whastemplate_bot.jsp");
topsiteID.put("wwl","wwltemplate_bot.jsp");
topsiteID.put("khou","khoutemplate_bot.jsp");
topsiteID.put("kvue","kvuetemplate_bot.jsp");
topsiteID.put("mysanantonio","mysanantoniotemplate_bot.jsp");
topsiteID.put("denton","dentontemplate_bot.jsp");
topsiteID.put("wvec","wvectemplate_bot.jsp");
topsiteID.put("nbc6","nbc6template_bot.jsp");
topsiteID.put("projo","projotemplate_bot.jsp");
topsiteID.put("wfaa","wfaatemplate_bot.jsp");
topsiteID.put("arlington","arlingtontemplate_bot.jsp");
%>
<% String rsiteid="";
Cookie cookies[] = request.getCookies();
Cookie cookie = null;
if (cookies != null) {
for (int i=0; i < cookies.length; ++i) {
if (cookies[i].getName().equals("Siteid")) {
cookie = cookies[i];
rsiteid = URLDecoder.decode(cookie.getValue());
break;
} else {}
}
}
if (rsiteid == "") rsiteid = "dallasnews";
String Thisisthetoptemplateid = (String)topsiteID.get(rsiteid);
%>
<%-- This JSP coding does a server-side include of the HTML which represents the top template --%>