In addition, ASM allows you to do a number of transformations to the output HTML. You define a number of ``blocks'' to your reports. Anyone who has used a reporting tool (eg: Microsoft Access or Crystal) will recognise these.
$HEAD
<h2>$OwnerName</h2>
$FOOT
<p>Number of owners with name '$OwnerName': {COUNT.OwnerName}</p>
SQL:
animal.ID, animal.AnimalName, animal.ShelterCode,
internalLocation.LocationName
FROM animal
INNER JOIN internallocation ON
animal.ShelterLocation = internallocation.ID
WHERE animal.Archived = 0
ORDER BY internalLocation.LocationName
HEADER$$
$$GROUP_LocationName
$$HEAD
<h2>$LocationName</h2>
<table>
<tr>
<th>Name</th>
<th>Code</th>
<th>Picture</th>
</tr>
$$FOOT
</table>
<p><b>Total at $LocationName: {COUNT.AnimalName}</b></p>
GROUP$$
$$BODY
<tr>
<td>$AnimalName</td>
<td>$ShelterCode</td>
<td><img src={IMAGE.$ID} width=300 height=200 /></td>
</tr>
BODY$$
$$FOOTER
FOOTER$$
http://sheltermanager.sf.net