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.
<table align="center"
cellspacing="2"
cellpadding="2"
border="8"
frame="border">
<th bgcolor="#FF8000">Company Name</th>
<th bgcolor="#FF8000">City</th>
<cfoutput query="GetResults" group="cl_name">
<tr><cfif GetResults.CurrentRow MOD 2 EQ 0>
<td bgcolor="#CCCCCC"></td>
<cfelse>
<td bgcolor="white"></td>
</cfif>
</tr>
<cfset cit="">
<td align="center">#cl_name#</td>
<cfoutput group="cl_city">
<cfset cit=listappend(cit,cl_city)></cfoutput>
<td align="center">(#cit#)</td>
</cfoutput>
</table>
<cfoutput group="cl_city" [b]maxrows="3"[/b]>
<cfset cit=listappend(cit,cl_city)></cfoutput>
<cfoutput group="cl_city">
<cfif listlen(cit) lt 3><cfset cit=listappend(cit,cl_city)></cfif></cfoutput>
<table align="center"
cellspacing="2"
cellpadding="2"
border="8"
frame="border">
<th bgcolor="#FF8000">Company Name</th>
<th bgcolor="#FF8000">City</th>
<cfoutput query="GetResults" group="cl_name">
<tr><cfif GetResults.CurrentRow MOD 2 EQ 0>
<td bgcolor="ff9900"></td>
<cfelse>
<td bgcolor="white"></td>
</cfif>
</tr>
<cfset display="">
<td align="center">#cl_name#</td>
<cfoutput group="cl_city">
<cfset display = listappend(display,cl_city)>
</cfoutput>
<td align="center">#display#
<cfif listlen(display) mod 3 eq 0><br>
</cfif>
</td>
</cfoutput>
</table>
<cfoutput group="cl_city" maxrows="3">
<cfif listlen(cit) neq 0 and listlen(cit) mod 3 eq 0>
<cfset cit=listappend(cit,cl_city & "<br>")>
<cfelse><cfset cit=listappend(cit,cl_city)></cfif>
</cfoutput>
<cfset cit=replace(cit,"<br>,","<br>","ALL")>
<!--- Query for displaying the institutions, city, and state. --->
<cfquery name="GetResults" datasource="IMBA">
SELECT cl_name, cl_city, cl_web_url
FROM Corp_Location
GROUP BY cl_name, cl_city, cl_web_url
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>
<cfoutput query="GetResults" group="cl_name">
<tr><cfif GetResults.CurrentRow MOD 2 EQ 0>
<td bgcolor="ff9900"></td>
<cfelse>
<td bgcolor="white"></td>
</cfif>
</tr>
<cfset display="">
<td align="center">#cl_name#</td>
<cfoutput group="cl_city" maxrows="3">
<cfif listlen(display) neq 0 AND listlen(display mod 3 eq 0)>
<cfset display = listappend(display,cl_city & "<br>")>
<cfelse>
<cfset display = listappend(display,cl_city)>
</cfif>
</cfoutput>
<cfset display = replace(display, "<br>,","<br>","ALL")>
</cfoutput>
</table>
</body>
</html>
<cfif listlen(display) neq 0 AND listlen(display) mod 3 eq 0>
<html>
<head>
<title>IMBA</title>
</head>
<body>
<table align="center"
cellspacing="2"
cellpadding="2"
border="8"
frame="border">
<th bgcolor="#FF8000">Company Name</th>
<th bgcolor="#FF8000">City</th>
<tr>
<td bgcolor="#FFFFFF">a</td>
<td align="center">
1,
2,
3,
<br>
</tr>
<tr>
<td bgcolor="#ff9900">b</td>
<td align="center">
4,
5,
6,
<br> 7,
8,
</tr>
</table>
</body>
</html>
<!--- 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>
<cfset cityList = cityList & cl_city & ",">
</cfoutput>
<cfset loopLen = listLen(#cityList#)>
<cfloop from = "1" to="#loopLen#" index = "thisCity">
#listGetAt(cityList, thisCity)#
<cfif thisCity neq listLen(#cityList#)>,</cfif>
<cfif thisCity Mod 3 eq 0><br></cfif>
</cfloop>
</tr>
<cfset colorRow = colorRow+1>
</cfoutput>
</table>
</body>
</html>