Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<!--- Query for displaying the institutions, city, and state. --->
<cfquery name="GetResults" datasource="#application.dsn#">
SELECT cl_name, cl_city, cl_web_url
FROM Corp_Location
ORDER BY cl_name, cl_city
</cfquery>
<html>
<head>
<title>IMBA</title>
</head>
<body>
<!--- Build table for results --->
<table align="center"
cellspacing="2"
cellpadding="2"
border="8"
frame="border">
<th bgcolor="#FF8000">Company Name</th>
<th bgcolor="#FF8000">City</th>
<cfset colorRow = 1>
<cfoutput query="GetResults" group="cl_name">
<tr>
<td bgcolor="<cfif colorRow MOD 2 EQ 0>##ff9900<cfelse>##FFFFFF</cfif>">#cl_name#</td>
<td align="center" bgcolor="<cfif colorRow MOD 2 EQ 0>##ff9900<cfelse>##FFFFFF</cfif>">
<cfset cityNum = 0>
<cfset cityList = "">
<cfoutput>
[b]<cfset cityList = listAppend(cityList,cl_city)>[/b]
</cfoutput>
<cfset loopLen = listLen(#cityList#)>
<cfloop from = "1" to="#loopLen#" index = "thisCity">
#listGetAt(cityList, thisCity)#
<cfif thisCity Mod 3 eq 0><br></cfif>
</cfloop>
</tr>
<cfset colorRow = colorRow+1>
</cfoutput>
</table>
<cfset colorRow = 1>
<cfset colorRow = 1>
<cfset ArrColor=ListToArray("##ff9900,##ffffff")>
<td bgcolor="<cfif colorRow MOD 2 EQ 0>##ff9900<cfelse>##FFFFFF</cfif>">#cl_name#</td>
<td align="center" bgcolor="<cfif colorRow MOD 2 EQ 0>##ff9900<cfelse>##FFFFFF</cfif>">
<td bgcolor="#ArrColor[(colorRow mod 2) + 1]#">#cl_name#</td>
<td align="center" bgcolor="#ArrColor[(colorRow mod 2) + 1]#">
<cfset cityList = listAppend(cityList,cl_city)>
<cfif not listfindnocase(citlist,cl_city)>]<cfset cityList = listAppend(cityList,cl_city)></cfif>
<cfif not listfindnocase(cityList,cl_city)>]<cfset cityList = listAppend(cityList,cl_city)></cfif>