<?xml version="1.0"?>
<appml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.refsnesdata.no/appml.xsd">
<title>CUSTOMERS</title>
<database>
	<connection>northwind</connection>
	<maintable>customers</maintable>
	<keyfield type="text">customerid</keyfield>
</database>
<filters>
	<orderby>Companyname</orderby>
	<query>
		<field>CustomerID</field>
	</query>
	<query>
		<field>Companyname</field>
		<label>CustomerName</label>
	</query>
	<query>
		<field>City</field>
		<sql>select distinct city from customers order by city</sql>
	</query>
	<query>
		<field>Country</field>
		<sql>select distinct country from customers order by country</sql>
	</query>
	<orderselect>
		<field name="companyname">CustomerName</field>
		<field>ContactName</field>
		<field>City</field>
		<field>Country</field>
	</orderselect>
</filters>

<htmlreport>
<sql>
SELECT CustomerID,Companyname AS [Customer Name],ContactName AS [Contact Name],City,Country
FROM Customers 
</sql>
</htmlreport>

<htmllist>
<sql>
SELECT CustomerID,Companyname AS [Customer Name],ContactName AS [Contact Name],City,Country,
customerid as Orders
FROM Customers 
</sql>
<td id="orders">
	<a href="app_htmllist.asp?appname=northwind/orders&amp;filter=customers.customerid&amp;value=#orders#" target="_blank">Orders</a>
</td>
</htmllist>

<htmlform>
<sql>
SELECT customerid,companyname,contactname,contacttitle,address,city,region,postalcode,
country,phone,fax
FROM Customers 
</sql>

<elements>
	<field name="customerid">
		<required/>
	</field>
</elements>

<form>
<br/>
<table width="50%">
<tr>
<td>
	<fieldset>
		<legend style="color:darkblue">Customer Information</legend>
		<br/>
		<table>
			<tr>
				<td>CustomerID:</td>
				<td colspan="3">
					<input size="5" maxlength="5" id="customerid"/>
				</td>
			</tr>
			<tr>
				<td>Customer Name:</td>
				<td colspan="3">
					<input size="40" maxlength="40" id="companyname"/>
				</td>
			</tr>
			<tr>
				<td>Contact Name:</td>
				<td colspan="3">
					<input size="30" maxlength="30" id="contactname"/>
				</td>
			</tr>
			<tr>
				<td>Title:</td>
				<td colspan="3">
					<input size="30" maxlength="30" id="contacttitle"/>
				</td>
			</tr>
			<tr>
				<td>Address:</td>
				<td colspan="3">
					<input size="60" maxlength="60" id="address"/>
				</td>
			</tr>
			<tr>
				<td>City:</td>
				<td>
					<input size="15" maxlength="15" id="city"/>
				</td>
				<td>Region:</td>
				<td>
					<input size="15" maxlength="15" id="region"/>
				</td>
			</tr>
			<tr>
				<td>PostalCode:</td>
				<td>
					<input size="15" maxlength="10" id="postalcode"/>
				</td>
				<td>Country:</td>
				<td>
					<input size="15" maxlength="15" id="country"/>
				</td>
			</tr>
			<tr>
				<td>Phone:</td>
				<td>
					<input size="24" maxlength="24" id="phone"/>
				</td>
				<td>Fax:</td>
				<td>
					<input size="24" maxlength="24" id="fax"/>
				</td>
			</tr>
		</table>
	<br/>
	</fieldset>
</td>
</tr>
</table>
</form>
</htmlform>
</appml>
