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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<!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>
    <script type="text/javascript">
        var DropDownListDiscountID = "<%= DropDownListDiscount.ClientID %>";
        var LinkButtonManagerEnableID = "<%=LinkButtonManagerEnable.ClientID %>";
    </script>
    <style type="text/css">
        .style1
        {
            width: 99%;
            border: 1px solid #F0F0F0;
        }
        .style2
        {
            width: 96px;
        }
        .style3
        {
            width: 141px;
        }
        .style4
        {
            width: 33%;
        }
        .style6
        {
            width: 81px;
        }
    </style>
<script language="javascript" type="text/javascript">
// <!CDATA[

function Password_onclick() {

}

// ]]>
</script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:Label ID="LabelTitle" runat="server" Text="Przykładowa strona zamówienia" 
        Font-Names="Segoe UI" Font-Size="20pt"></asp:Label>
    <h2>Dane zamówienia</h2>
    <div>
    
        <table class="style4">
            <tr>
                <td class="style6">
                    Klient:</td>
                <td>
                    <asp:DropDownList ID="DropDownList1" runat="server">
                        <asp:ListItem>Wybierz</asp:ListItem>
                        <asp:ListItem>XYZ Industries</asp:ListItem>
                        <asp:ListItem>UVW Industries</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style6">
                    Produkt:</td>
                <td>
                    <asp:DropDownList ID="DropDownList2" runat="server">
                        <asp:ListItem>Wybierz</asp:ListItem>
                        <asp:ListItem>Bronze Bushings</asp:ListItem>
                        <asp:ListItem>Gold Bushings</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style6">
                    Liczba:</td>
                <td>
                    <asp:TextBox ID="TextBoxQty" runat="server" Width="53px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                  <td class="style6">
                    Rabat:</td>
                <td>
                    <asp:DropDownList ID="DropDownListDiscount" runat="server" 
                        style="margin-left: 0px">
                        <asp:ListItem>0%</asp:ListItem>
                        <asp:ListItem>10%</asp:ListItem>
                        <asp:ListItem>20%</asp:ListItem>
                    </asp:DropDownList>
                    <asp:LinkButton ID="LinkButtonManagerEnable" runat="server">Włącz</asp:LinkButton>
                </td>
            </tr>
            </table>
    
    </div>
    <div>
        <table class="style4">
            <tr>
                <td align="right">
                    <input id="Button1" type="button" value="Zapisz" /><input id="Button2" 
                        type="button" value="Zamknij" /></td>
            </tr>
        </table>
    </div>
    <div>
        <asp:Label ID="LabelSecurityMessage" runat="server" Text="" ForeColor="Red"></asp:Label>
    </div>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
        <Services>
            <asp:ServiceReference Path="~/OrderProcessing.svc" />
        </Services>
        <Scripts>
            <asp:ScriptReference Path="~/OrderEntry.js" />
        </Scripts>
    </asp:ScriptManager>
    <asp:Panel ID="PanelManagerLogin" runat="server" Width="290px" 
        BackColor="#EEEEEE">
        <asp:Panel ID="PanelLoginHeader" runat="server" 
            Style="cursor: move;" 
            Height="20px" Width="288px" BackColor="#3399FF" HorizontalAlign="Center">
                <asp:Label ID="LabelLoginHeader" runat="server" Text="Login" ForeColor="White"></asp:Label>
        </asp:Panel>
        <table class="style1">
            <tr>
                <td class="style2">
                    User Name:</td>
                <td class="style3">
                    <input ID="LoginUserName" type="text" /></td>
            </tr>
            <tr>
                <td class="style2">
                    Password:</td>
                <td class="style3">
                    <input ID="LoginPassword" type="password" onclick="return Password_onclick()" /></td>
            </tr>
            <tr>
                <td colspan="2" align="right">
                    <input ID="ButtonLoginOk" type="button" value="Ok" />
                    <input ID="ButtonLoginCancel" type="button" value="Canel" /></td>
             </tr>
        </table>
    </asp:Panel>
    <cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" 
        CancelControlID="ButtonLoginCancel" Drag="True" DropShadow="True" 
        OkControlID="ButtonLoginOk" onokscript="ManagerLogin()" 
        PopupControlID="PanelManagerLogin" PopupDragHandleControlID="PanelLoginHeader" 
        TargetControlID="LinkButtonManagerEnable">
    </cc1:ModalPopupExtender>
    </form>
</body>
</html>
