<?xml version="1.0"?>
<appml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.refsnesdata.no/appml.xsd">
<title>SUPPLIERS</title>

<database>
	<connection>northwind</connection>
	<maintable>suppliers</maintable>
	<keyfield>supplierid</keyfield>
</database>

<filters>
	<orderby>Companyname</orderby>
	<query>
		<field>companyname</field>
		<label>Companyname</label>
	</query>
	<query>
		<field>city</field>
		<label>City</label>
	</query>
	<query>
		<field>country</field>
		<label>Country</label>
	</query>
	<orderselect>
		<field>Companyname</field>
		<field>City</field>
		<field>Country</field>
	</orderselect>
</filters>

<htmlreport>
<sql>
SELECT Companyname,Contactname,Address,City,Country
FROM suppliers
</sql>
</htmlreport>

<htmllist>
<sql>
SELECT Companyname,Contactname,Address,City,Country,supplierid as Products
FROM suppliers
</sql>
<td id="Products">
	<a href="app_htmllist.asp?appname=northwind/products&amp;filter=products.supplierid&amp;value=#products#&amp;type=number">Products</a>
</td>
</htmllist>

<htmlform>
<sql>
SELECT Companyname,contactname,contacttitle,address,City,region,postalcode,Country,phone,fax,homepage
FROM suppliers
</sql>

<elements>
	<field name="companyname">
		<required/>
	</field>
	<field name="contactname">
		<required/>
	</field>
</elements>

<form>
	<br/>
	<table width="70%">
		<tr>
			<td>
				<fieldset>
					<legend style="color:darkblue">Supplier information</legend>
					<br/>
					<table>
						<tr>
							<td>Company Name:</td>
							<td>
								<input size="35" maxlength="40" id="companyname"/>
							</td>
						</tr>
						<tr>
							<td>Contact Name:</td>
							<td>
								<input size="35" maxlength="30" id="contactname"/>
							</td>
						</tr>
						<tr>
							<td>Title:</td>
							<td>
								<input size="35" maxlength="30" id="contacttitle"/>
							</td>
						</tr>
						<tr>
							<td>Address:</td>
							<td>
								<input size="60" maxlength="60" id="address"/>
							</td>
						</tr>
						<tr>
							<td>City:</td>
							<td>
								<input size="15" maxlength="15" id="city"/>
							</td>
						</tr>
						<tr>
							<td>Region:</td>
							<td>
								<input size="15" maxlength="15" id="region"/>
							</td>
						</tr>
						<tr>
							<td>Postal Code:</td>
							<td>
								<input size="15" maxlength="10" id="postalcode"/>
							</td>
						</tr>
						<tr>
							<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>
						</tr>
						<tr>
							<td>Fax:</td>
							<td>
								<input size="24" maxlength="24" id="fax"/>
							</td>
						</tr>
						<tr>
							<td>HomePage:</td>
							<td>
								<input size="100" maxlength="100" id="homepage"/>
							</td>
						</tr>
					</table>
					<br/>
				</fieldset>
			</td>
		</tr>
	</table>
</form>
</htmlform>
</appml>
