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

<!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">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 114px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <H2>
        Logowanie z wykorzystaniem interfejsu API</H2>
    <div>
        <table class="style1">
            <tr>
                <td class="style2">
                    Nazwa użytkownika:</td>
                <td>
                    <asp:TextBox ID="TextBoxUserName" runat="server" Width="212px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    Hasło:</td>
                <td>
                    <asp:TextBox ID="TextBoxPassword" runat="server" TextMode="Password" 
                        Width="209px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:CheckBox ID="CheckBoxRememberMe" runat="server" 
                        Text="Zapamiętaj moje dane" />
                </td>
            </tr>
            <tr>
                <td class="style2">
                    &nbsp;</td>
                <td>
                    <asp:Button ID="ButtonLogin" runat="server" Text="Zaloguj" 
                        onclick="ButtonLogin_Click" />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Label ID="LabelInvalidLogin" runat="server" 
                        Text="Nieprawidłowe dane, spróbuj ponownie" Visible="False" ForeColor="Red"></asp:Label></td>
            </tr>
        </table>
    </div>
    <p></p>
    <p></p>
    <H2>
        
        Logowanie z wykorzystaniem kontrolki Login</H2>
    <div>
        <asp:Login ID="Login1" runat="server" BackColor="#F7F6F3" BorderColor="#E6E2D8" 
            BorderPadding="4" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" 
            Font-Size="0.8em" ForeColor="#333333">
            <TextBoxStyle Font-Size="0.8em" />
            <LoginButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid" 
                BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284775" />
            <InstructionTextStyle Font-Italic="True" ForeColor="Black" />
            <TitleTextStyle BackColor="#5D7B9D" Font-Bold="True" Font-Size="0.9em" 
                ForeColor="White" />
        </asp:Login>
    </div>
    </form>
</body>
</html>
