<%@ Page language="c#" Inherits="VoServices.Footprint.Web.region" CodeFile="region.aspx.cs" ValidateRequest="false" MasterPageFile="~/Wide.master" %>

<asp:Content ContentPlaceHolderID="ContentPlaceHolderMain" runat="server">

				    <form runat="server">					
						<table align=center width="95%">
						
						<tr>
						<td width="48%" style="text-align: left"><p><asp:Label ID="lblLeft" runat="server" Text="Region:" /></p></td>
						<td></td>
						<td width="48%" style="text-align: left"><p><asp:Label ID="lblRight" runat="server" Text="Points:" /></p></td>
						</tr>
						
						<tr>
						<td><asp:TextBox ID="tbLeft" runat="server" Width="450" TextMode="MultiLine" Wrap="false" Rows="7"></asp:TextBox></td>
						<td></td>
						<td><asp:TextBox ID="tbRight" runat="server" Width="450" TextMode="MultiLine" Wrap="false" Rows="7"></asp:TextBox></td>
						</tr>

                        <tr>
                        <td align="right">
                        <asp:Button ID="btnClear" runat="server" Text="Clear" BorderColor="Red" BorderStyle="Double" OnClick="btnClear_Click" />
                        &nbsp;&nbsp;&nbsp;
                        <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" />
                        </td>
                        <td></td>
						<td style="text-align: left">
                        <asp:Button ID="btnTest1" runat="server" Text="Test 1" OnClick="btnTest1_Click" />
                        <asp:Button ID="btnTest2" runat="server" Text="Test 2" OnClick="btnTest2_Click" />
                        <asp:Button ID="btnTest3" runat="server" Text="Test 3" OnClick="btnTest3_Click" />
						</td>
						</tr>   

           				</table>
           				
           				<table runat="server" id="tblResult" visible="false">
           				<tr width="95%" align="center">
           				<td> </td>
           				<td width="74%" align="center"><asp:Image runat="server" ID="imgPlot" Visible="true" ImageUrl="gifbytes.aspx" /></td>
           				<td> </td>
           				</tr>

           				<tr width="95%" align="center">
           				<td></td>
           				<td width="74%" align="left"><p><asp:Label ID="lblBottom" runat="server" Font-Bold="False" Text="Simplified STC Region:" /></p></td>
           				<td></td>
           				</tr>
           				
           				<tr width="95%" align="center">
           				<td></td>
           				<td width="74%" align="center"><asp:TextBox ID="tbBottom" runat="server" Width="768" TextMode="MultiLine" Visible="true" Rows="13"></asp:TextBox></td>
           				<td></td>
           				</tr>
						</table>

                        <table width="768" align="center">
                        <tr><td> </td></tr>
                        <tr><td>
                        <h2 style="text-align: left">How to use this page?</h2>
                        <p style="text-align: justify">
                        On this page, one can submit a footprint description
                        for validation and/or simplification. The "Region" 
                        textbox can take a region description in the STC format
                        (xml) or plain text, internal representation. Valid 
                        are visualized and the area of the specified region
                        is computed.
                        If a list locations is given in the textbox on the right 
                        labeled "Points",
                        the coordinates will be checked against the footprint.
                        The image will reflect the points and the coordinate
                        list is updated with True/False values that say if
                        the point is inside the given footprint.
                        </p>
                        <p style="text-align: left">
                        Use the test buttons to populate the textboxes with
                        working examples and click "Submit"!
                        </p>
                        </td></tr>
                        </table>
                        </form>
                        
</asp:Content>
