<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PatientForm.aspx.cs" Inherits="SLPersonProject.PatientForm" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    <style type="text/css">
        body
        {
            font-family: Segoe UI;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Name="SilverlightControl.js" />
            <asp:ScriptReference Path="SLPerson.js" />
        </Scripts>
    </asp:ScriptManager>
    <h1>
        Patient Form</h1>
    <div>
        <table border="1">
            <tr>
                <td>
                    First name:
                </td>
                <td>
                    <asp:TextBox ID="FirstName" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="FirstName"
                        ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Last name:
                </td>
                <td>
                    <asp:TextBox ID="LastName" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="LastName"
                        ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    Where does it hurt?
                </td>
            </tr>
            <tr>
                <td style="width: 125px">
                    <asp:CheckBox ID="headCheckBox" runat="server" Text="Head" OnClick="$find('Xaml1').toggleVisibility('head')" />
                    <br />
                    <asp:CheckBox ID="leftarmCheckBox" runat="server" Text="Left arm" OnClick="$find('Xaml1').toggleVisibility('leftarm')" />
                    <br />
                    <asp:CheckBox ID="rightarmCheckBox" runat="server" Text="Right arm" OnClick="$find('Xaml1').toggleVisibility('rightarm')" />
                    <br />
                    <asp:CheckBox ID="torsoCheckBox" runat="server" Text="Torso" OnClick="$find('Xaml1').toggleVisibility('torso')" />
                    <br />
                    <asp:CheckBox ID="leftlegCheckBox" runat="server" Text="Left leg" OnClick="$find('Xaml1').toggleVisibility('leftleg')" />
                    <br />
                    <asp:CheckBox ID="rightlegCheckBox" runat="server" Text="Right leg" OnClick="$find('Xaml1').toggleVisibility('rightleg')" />
                </td>
                <td>
                    <asp:Silverlight runat="server" ID="Xaml1" Height="475" Width="367" Source="SLPerson.xaml"
                        ClientType="Custom.SLPerson"></asp:Silverlight>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="right">
                    <asp:Button ID="SubmitButton" runat="server" Text="Submit Doctor Request" PostBackUrl="~/Complete.aspx" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
