<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Users.aspx.vb" Inherits="CalendarAdmin.Users" %>

<!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 id="Head1" runat="server">
    <title>Calendar Administration (User...)</title>
    <link href="style/Login.css"rel="stylesheet" type="text/css">
</head>
<body>
    <form id="User" runat="server">
    <div id="Border" class="container">
        <div id="Header" class="header" >
            <asp:Image ID="imgLogo" runat="server" ImageUrl="~/images/edventure_logo.jpg" />
            </div>
        <div id="ProjectTitle" class="projectitle">
         
               <h2> Calendar Administration</h2></div>
        
            <div id="NavButton" class="NavButton">
            <asp:LinkButton ID="lnkLogout" runat="server" Font-Bold="True" Font-Names="Arial" style="float:right;"  Font-Size="10pt">Logout</asp:LinkButton>
            <asp:Button ID="btnEvent" runat="server" Text="Events" BorderStyle="None" ForeColor="White" BackColor="#666666" Height="30px" Width="140px" Font-Names="Arial" Font-Bold="True" />
            <asp:Button ID="btnCategories" runat="server" Text="Categories" BorderStyle="None" ForeColor="White" BackColor="#666666" Height="30px" Width="140px" Font-Names="Arial" Font-Bold="True" />
            <asp:Button ID="btnClosedDates" runat="server" Text="Closed Dates" BorderStyle="None" ForeColor="White" BackColor="#666666" Height="30px" Width="140px" Font-Names="Arial" Font-Bold="True" />
            <asp:Button ID="btnUsers" runat="server" Text="Users" BorderStyle="None" ForeColor="#666666" BackColor="#E7E7E9" Height="30px" Width="140px" Font-Names="Arial" Font-Bold="True"/>
            </div>
            <div id="FormTitle" class="formtitle">
         <h1>User</h1>
         </div>
          <div id="AddNew" class="AddNew" >
           <br />
            <asp:Label ID="lbl_alert_message" runat="server" Font-Bold="True" Font-Names="Arial"
                Font-Size="Small" ForeColor="Red" Width="567px"></asp:Label>
            
           <asp:Button ID="btnAddUser" runat="server" Text="Add New User >" BorderStyle="None" ForeColor="White" BackColor="#333333" Height="30px" Width="140px" Font-Names="Arial" Font-Bold="True" />
          </div>
            &nbsp;
            <br />
            
                             <div id="CategoryGrid" class="CategoryGrid">
                                
                                    <asp:GridView ID="gdv_user" runat="server" AutoGenerateColumns="False" ShowFooter="True" Width="100%">
                                        <Columns>
                                            <asp:TemplateField HeaderText="ID">
                                                <EditItemTemplate>
                                                    <asp:Label ID="Label10" runat="server" Text='<%# Bind("ID") %>'></asp:Label>
                                                </EditItemTemplate>
                                                <HeaderStyle BackColor="#E0E0E0" HorizontalAlign="Left" />
                                                <ItemTemplate>
                                                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("ID") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="User ID">
                                                <EditItemTemplate>
                                                    <asp:TextBox ID="TextBox2" runat="server" Columns="10" Text='<%# Bind("UserID") %>'></asp:TextBox>
                                                </EditItemTemplate>
                                                <FooterTemplate>
                                                    <asp:TextBox ID="txt_newuserid" runat="server" Columns="10"></asp:TextBox>
                                                </FooterTemplate>
                                                <HeaderStyle BackColor="#E0E0E0" HorizontalAlign="Left" />
                                                <ItemTemplate>
                                                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("UserID") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Password">
                                                <EditItemTemplate>
                                                    <asp:TextBox ID="TextBox3" runat="server" Columns="10" Text='<%# Bind("UPassword") %>'></asp:TextBox>
                                                </EditItemTemplate>
                                                <FooterTemplate>
                                                    <asp:TextBox ID="txt_newpassword" runat="server" Columns="10" TextMode="Password"></asp:TextBox>
                                                </FooterTemplate>
                                                <HeaderStyle BackColor="#E0E0E0" HorizontalAlign="Left" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Type">
                                                <EditItemTemplate>
                                                    <asp:DropDownList ID="DropDownList1" runat="server" SelectedValue='<%# Bind("user_type") %>'>
                                                        <asp:ListItem Value="a">Admin</asp:ListItem>
                                                        <asp:ListItem Value="e">Editor</asp:ListItem>
                                                    </asp:DropDownList>
                                                </EditItemTemplate>
                                                <FooterTemplate>
                                                    <asp:DropDownList ID="ddlNew_utype" runat="server" SelectedValue='<%# Bind("user_type") %>'>
                                                        <asp:ListItem Value="a">Admin</asp:ListItem>
                                                        <asp:ListItem Value="e">Editor</asp:ListItem>
                                                    </asp:DropDownList>
                                                </FooterTemplate>
                                                <HeaderStyle BackColor="#E0E0E0" />
                                                <ItemTemplate>
                                                    <asp:DropDownList ID="DropDownList1" runat="server" SelectedValue='<%# Bind("user_type") %>'>
                                                        <asp:ListItem Value="a">Admin</asp:ListItem>
                                                        <asp:ListItem Value="e">Editor</asp:ListItem>
                                                    </asp:DropDownList>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="User First Name">
                                                <EditItemTemplate>
                                                    <asp:TextBox ID="TextBox4" runat="server" Columns="12" Text='<%# Bind("UserFirstName") %>'></asp:TextBox>
                                                </EditItemTemplate>
                                                <FooterTemplate>
                                                    <asp:TextBox ID="txt_newfname" runat="server" Columns="12"></asp:TextBox>
                                                </FooterTemplate>
                                                <HeaderStyle BackColor="#E0E0E0" HorizontalAlign="Left" />
                                                <ItemTemplate>
                                                    <asp:Label ID="Label4" runat="server" Text='<%# Bind("UserFirstName") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="User Last Name">
                                                <EditItemTemplate>
                                                    <asp:TextBox ID="TextBox5" runat="server" Columns="12" Text='<%# Bind("UserLastName") %>'></asp:TextBox>
                                                </EditItemTemplate>
                                                <FooterTemplate>
                                                    <asp:TextBox ID="txt_newlastname" runat="server" Columns="12"></asp:TextBox>
                                                </FooterTemplate>
                                                <HeaderStyle BackColor="#E0E0E0" HorizontalAlign="Left" />
                                                <ItemTemplate>
                                                    <asp:Label ID="Label5" runat="server" Text='<%# Bind("UserLastName") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="User Email">
                                                <EditItemTemplate>
                                                    <asp:TextBox ID="TextBox6" runat="server" Columns="10" Text='<%# Bind("UserEmailid") %>'></asp:TextBox>
                                                </EditItemTemplate>
                                                <FooterTemplate>
                                                    <asp:TextBox ID="txt_newemail" runat="server" Columns="10"></asp:TextBox>
                                                </FooterTemplate>
                                                <HeaderStyle BackColor="#E0E0E0" HorizontalAlign="Left" />
                                                <ItemTemplate>
                                                    <asp:Label ID="Label6" runat="server" Text='<%# Bind("UserEmailid") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:CommandField HeaderText="Update" ShowEditButton="True">
                                                <HeaderStyle BackColor="#E0E0E0" HorizontalAlign="Left" />
                                            </asp:CommandField>
                                            <asp:TemplateField HeaderText="Delete" ShowHeader="False">
                                                <FooterTemplate>
                                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Insert"
                                                        Text="Add"></asp:LinkButton>
                                                </FooterTemplate>
                                                <HeaderStyle BackColor="#E0E0E0" HorizontalAlign="Left" />
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
                                                        Text="Delete"></asp:LinkButton>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                    </asp:GridView>
                                </div>
        
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />

    
    </div>
    </form>
    </body>
</html>
