#! /bin/ksh

html-header Countries

echo "
This report is a quick reference format of the HCI programs,
sorted by their country of location.  Each line includes:
<ul>
 <li>the country of the program (within the United States,
   programs are sorted by their two-letter state abbreviation)
 <li>the <b><i>code</i></b> for the program, based on the insitution and unit
 <li>the <b><i>shortname</i></b> for the institution and academic unit
</ul>
"

echo "<table border=0>"

for file in ${*-Data/*}
do
	codename=${file##*/}
	template="<tr valign=top><td>%country</td><td><a href=$file>$codename</a></td><td>%shortname</td>"
	sssearch section=unit $file |
		ssformat -t "$template"
done | sort

echo "</table>"

echo "</body></html>"

exit 0
