<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Flight_Inspector.aspx.cs" Inherits="VMT.Flight_Inspector" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style2 {
            width: 100%;
            padding: 3px;
        }

        .auto-style3 {
            width: 100%;
            border: 1px solid #014567;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphJavaScriptContentPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphPageTitleContentPlaceHolder" runat="server">
    <div id="CssPageTitle">
        <h1>Flight Type Inspector Assignment
        </h1>
    </div>
    <div id="SubPageTitle">
        <!-- OPTIONAL SUB PAGE TITLE -->

    </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphMainContentPlaceHolder" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
            <div id="loaderdiv">
                <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel2" DynamicLayout="true">
                    <ProgressTemplate>

                        <img src="resource_gallery/graphics/loader.gif" class="ajax-loader">
                    </ProgressTemplate>
                </asp:UpdateProgress>

            </div>
            <div style="text-align: right;"><a href="default.aspx">Home</a> <strong>&#8249;&#8249;</strong> <a href="Administration.aspx">Administration</a> <strong>&#8249;&#8249;</strong>Flight Type Inspector Assignment</div>
            <div style="text-align: left; width: 100%;">
                <fieldset class="masterform">
                    <legend>Select Flight Type</legend>
                    <div style="width: 100%; height: 60px;">

                        <table class="auto-style2">
                            <tr>
                                <td style="width: 40%">Flight Type</td>
                                <td style="width: 40%"> Inspector</td>
                                <td style="width: 20%">&nbsp;</td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:DropDownList ID="ddl_FlightRecord" runat="server">
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddl_Inspector" runat="server" Width="130px">
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    <asp:Button ID="btnSave" runat="server" CssClass="FormButton" Text="Go" OnClick="btnSave_Click"></asp:Button></td>
                            </tr>
                        </table>

                    </div>
                </fieldset>
            </div>
            <div style="text-align: left; width: 100%;">
                <fieldset class="masterform">
                    <legend>Flight Type Inspector List</legend>


                    <div style="width: 100%; height: 200px; overflow-y: scroll;">

                        <asp:GridView ID="gdvFlightInspector" runat="server" BorderColor="#014567" CellPadding="3" Width="100%" DataKeyNames="OBJECTID" AutoGenerateColumns="False" OnRowDeleting="gdvFlightInspector_RowDeleting">
                            <AlternatingRowStyle BackColor="#E9EFF2" />
                            <Columns>

                                <asp:BoundField DataField="FLIGHT_TYPE_DESC" HeaderText="FLIGHT TYPE">
                                    <ItemStyle Width="50%" />
                                </asp:BoundField>

                                <asp:BoundField DataField="EMPLOYEE_NAME" HeaderText="INSPECTOR">
                                    <ItemStyle Width="50%" />
                                </asp:BoundField>

                                <%--<asp:TemplateField ShowHeader="False" HeaderText="Delete">
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete" ><img src="resource_gallery/graphics/icon_delete.png" /></asp:LinkButton>
                                                </ItemTemplate>
                                            </asp:TemplateField>--%>
                            </Columns>
                            <HeaderStyle BackColor="#98C8DE" Font-Bold="True" />
                            <SelectedRowStyle BackColor="#FFE98F" />
                        </asp:GridView>


                    </div>
                </fieldset>
            </div>

            <div style="text-align: left; width: 100%;">
                <fieldset class="masterform">
                    <legend>Assign Inspector to Flight Type</legend>
                    <div style="width: 100%; height: 140px;">

                        <table class="auto-style2">

                            <tr>
                                <td style="width: 20%"><strong>Flight Type</strong></td>
                                <td style="width: 8%">&nbsp;</td>
                                <td style="width: 20%"><strong>Selected Flight Type</strong></td>
                                <td style="width: 4%">&nbsp;</td>
                                <td style="width: 20%"><strong>Inspector</strong></td>
                                <td style="width: 8%">&nbsp;</td>
                                <td style="width: 20%"><strong>Selected Inspector</strong></td>
                            </tr>
                            <tr>
                                <td style="width: 20%">
                                    <asp:ListBox ID="lst_FlightRecord" runat="server" Rows="6"></asp:ListBox>
                                </td>
                                <td style="width: 8%; text-align: center;">
                                    <asp:Button ID="btn_addFlightRecord" runat="server" CssClass="FormButton" Text="&gt;&gt;" OnClick="btn_addFlightRecord_Click" />
                                    <br />
                                    <br />
                                    <asp:Button ID="btn_remFlightRecord" runat="server" CssClass="FormButton" Text="&lt;&lt;" OnClick="btn_remFlightRecord_Click" /></td>
                                <td style="width: 20%">
                                    <asp:ListBox ID="lst_selFlightRecord" runat="server" Rows="6"></asp:ListBox>
                                </td>
                                <td style="width: 4%">&nbsp;</td>
                                <td style="width: 20%">
                                    <asp:ListBox ID="lst_Employee" runat="server" Rows="6"></asp:ListBox>
                                </td>
                                <td style="width: 8%; text-align: center;">
                                    <asp:Button ID="btn_addEmp" runat="server" CssClass="FormButton" Text="&gt;&gt;" OnClick="btn_addEmp_Click" />
                                    <br />
                                    <br />
                                    <asp:Button ID="btn_remEmp" runat="server" CssClass="FormButton" Text="&lt;&lt;" OnClick="btn_remEmp_Click" /></td>
                                <td style="width: 20%">
                                    <asp:ListBox ID="lst_selEmployee" runat="server" Rows="6"></asp:ListBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 20%">&nbsp;</td>
                                <td style="width: 8%">&nbsp;</td>
                                <td style="width: 20%">&nbsp;</td>
                                <td style="width: 4%">&nbsp;</td>
                                <td style="width: 20%">&nbsp;
                                    <%--<asp:Button ID="btn_expExcel" runat="server" CssClass="FormButton" Text="Export to Excel" />--%>
                                </td>
                                <td style="width: 8%">&nbsp;</td>
                                <td style="width: 20%">
                                    <asp:Button ID="btnApply" runat="server" CssClass="FormButton" Text="Apply" OnClick="btnApply_Click" /></td>
                            </tr>
                        </table>

                    </div>
                </fieldset>
            </div>

        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
