<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="EventCode.aspx.cs" Inherits="VMT.EventCode" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphJavaScriptContentPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphPageTitleContentPlaceHolder" runat="server">
    <div id="CssPageTitle">
        <h1>
            Project/Event
        </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 style="text-align:right;"><a href="default.aspx">Home</a> <strong>&#8249;&#8249;</strong> <a href="Administration.aspx">Administration</a> <strong>&#8249;&#8249;</strong> Project/Event</div>
    <div id="wrapper" class="clear">
    
        <div id="left">
            <fieldset class="masterform">
                <legend>Project/Event Detail</legend>
                <div style=" width: 100%; height:300px; ">
                    <table cellpadding="3" class="auto-style1">
                        <tr>
                            <td colspan="2"><strong>Add or Update Project/Event</strong></td>
                        </tr>
                         <tr>
                            <td style="width:50%;">&nbsp;</td>
                            <td>
                                <asp:HiddenField ID="hdn_keyid" runat="server" />
                                <asp:Button ID="btn_create" runat="server" Text="Create New" CssClass="FormButton" OnClick="btn_create_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">&nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width:50%;">&nbsp;</td>
                            <td>&nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width:50%;">Business Unit</td>
                            <td>
                                <asp:DropDownList ID="ddl_BUnit" runat="server" AutoPostBack="True" >
                                    <%--OnDataBound="ddl_BUnit_DataBound" OnSelectedIndexChanged="ddl_BUnit_SelectedIndexChanged">--%>
                                </asp:DropDownList>
                            </td>
                        </tr>
                         <tr>
                            <td style="width:50%;">District</td>
                            <td>
                                <asp:DropDownList ID="ddl_District" runat="server" AutoPostBack="True"> 
                                <%-- OnDataBound="ddl_District_DataBound" OnSelectedIndexChanged="ddl_District_SelectedIndexChanged">--%>
                                </asp:DropDownList>
                            </td>
                        </tr>

                        <tr>
                            <td style="width:50%;">Project/Event</td>
                            <td>
                                <asp:TextBox ID="txt_EventCode" runat="server" MaxLength="30"></asp:TextBox>
                            </td>
                        </tr>
                       
                        <tr>
                            <td style="width:50%;">Project Trim Date</td>
                            <td>
                                <asp:TextBox ID="txt_ProjectTrimDate" runat="server" MaxLength="50"></asp:TextBox>
                            </td>
                        </tr>
                       <tr>
                            <td style="width:50%; text-align:right;">
                                &nbsp;</td>
                            <td style="width:50%; text-align:left;">
                                &nbsp;</td>
                        </tr>
                       
                        <tr>
                            <td style="width:50%; text-align:right;">
                                <asp:Button ID="btn_add" runat="server" Text="Add New" CssClass="FormButton" OnClick="btn_add_Click" />
                            </td>
                            <td style="width:50%; text-align:left;">
                                <asp:Button ID="btn_delete" runat="server"  Text="Delete" CssClass="FormButton"
                                    OnClientClick="javascript:return confirm('Are you sure?');" OnClick="btn_delete_Click" />
                                &nbsp;<asp:Button ID="btn_reset" runat="server"  Text="Reset" OnClick="btn_reset_Click" CssClass="FormButton" />
                            </td>
                        </tr>
                    </table>
                </div>
            </fieldset>
        </div>

        <div id="right">
            <fieldset class="masterform">
                <legend>Project/Event List</legend>
                <div style=" width: 100%; height:300px;  overflow-y: scroll;">
                    <table cellpadding="3" class="auto-style1">
                        <tr>
                            <td colspan="2">&nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width:50%;">&nbsp;</td>
                            <td>&nbsp;</td>
                        </tr>
                         <tr>
                            <td style="vertical-align:top;" colspan="2">
                                <asp:GridView ID="gdv_EventCode" runat="server" BorderColor="#014567" CellPadding="3"  Width="96%" OnRowCreated="gdv_EventCode_RowCreated" OnSelectedIndexChanging="gdv_EventCode_SelectedIndexChanging">
                                    <AlternatingRowStyle BackColor="#E9EFF2" />
                                    <Columns>
                                        <asp:TemplateField ShowHeader="False">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Select"><img src="resource_gallery/graphics/select.png" /></asp:LinkButton>
                                            </ItemTemplate>
                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
                                        </asp:TemplateField>
                                    </Columns>
                                    <HeaderStyle BackColor="#98C8DE" Font-Bold="True" />
                                     <SelectedRowStyle BackColor="#FFE98F" />
                                </asp:GridView>
                             </td>
                        </tr>
                        <tr>
                            <td style="width:50%; text-align:right;">
                                &nbsp;</td>
                            <td style="width:50%; text-align:left;">
                                &nbsp;</td>
                        </tr>
                    </table>
                </div>
            </fieldset>
        </div>
    </div>
        </ContentTemplate>
            </asp:UpdatePanel>
</asp:Content>
