<%@ page language="C#" masterpagefile="~/MasterPages/Main.master" autoeventwireup="true" inherits="GroupPermissions, App_Web_grouppermissions.aspx.cecc3084" viewStateEncryptionMode="Always" maintainScrollPositionOnPostBack="true" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table class="body_MainTB" border="0" cellpadding="0" cellspacing="0">
        <tr align="center">
            <td valign="top">
                <!------------------------------------body St  ---------------------------------------------->
                <table border="0" cellpadding="0" cellspacing="0" class="body_formTitle">
                    <tr>
                        <td>
                            Manage Group Permissions
                        </td>
                    </tr>
                       <tr>
                        <td>
                          Group Name: <asp:Literal ID="LiteralGroupName" Text="" runat="server"></asp:Literal>
                        </td>
                    </tr>
                
                </table>
                <br>
                <!------------------------------------body End1 ----------------------------------------------->
                <table border="0" cellpadding="0" cellspacing="0" class="contTB">
                    <tr>
                        <td align="center">
                            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="Frow">
                                <tr>
                                    <td>
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <asp:Panel ID="pnlGrid" runat="server" Width="100%">
                                <asp:Label ID="lblError" runat="server" Text="" class="fieldError"></asp:Label>
                                <table border="0" cellpadding="0" cellspacing="0" class="grid_TitleBG_B">
                                    <tr>
                                        <td>
                                            Pages
                                        </td>
                                    </tr>
                                </table>
                                <asp:GridView ID="GridView1" CssClass="gridMaster" Width ="100%" runat="server" AutoGenerateColumns="False"
                                    OnRowCommand="GridView1_RowCommand" AllowSorting="True" CellPadding="4" ForeColor="#333333"
                                    GridLines="None" OnRowCreated="GridView1_RowCreated" DataKeyNames="PID">
                                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                    <Columns>
                                        <asp:BoundField DataField="NAME" ItemStyle-Width="20%" HeaderText="Page Name" />
                                        <asp:BoundField DataField="DESCRIPTION" HeaderText="Description" />
                                        <asp:BoundField DataField="status_txt" HeaderText="Status" />
                                        <asp:BoundField DataField="app_status" HeaderText="Approval Status" />
                                        <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="d" Text="Delete"
                                            ImageUrl="~/Images/delete.jpg" />
                                        <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="v" Text="View Page Functions"
                                            ImageUrl="~/Images/document_view.jpg" />
                                        <asp:ButtonField ButtonType="Image" ItemStyle-Width="20px" CommandName="approve"
                                            Text="Approve" ImageUrl="~/Images/approve.jpg"></asp:ButtonField>
                                        <asp:ButtonField ButtonType="Image" ItemStyle-Width="20px" CommandName="decline"
                                            Text="Decline" ImageUrl="~/Images/reject.jpg"></asp:ButtonField>
                                    </Columns>
                                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="Black" />
                                    <EditRowStyle BackColor="#999999" />
                                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                </asp:GridView>
                                <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgForm">
                                    <tr>
                                        <td>
                                            <asp:Button ID="btnAdd" runat="server" Text="     Add     " OnClick="btnAdd_Click"
                                                class="Btn_M_Normal" />
                                    </tr>
                                </table>
                            </asp:Panel>
                            <br />
                            <!------------------------------------body End1 ----------------------------------------------->
                            <asp:Panel ID="pnlControls" runat="server" Width="100%">
                                <fieldset id="addItem">
                                    <legend id="addItem">Adding new Page</legend>
                                </fieldset>
                                <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Pages <span style="color: Red">*</span>
                                        </td>
                                        <td colspan="3" class="tdNormal" style="width: 30%">
                                            <asp:DropDownList ID="ddlPages" runat="server" class="fieldNormal" DataTextField="NAME"
                                                DataValueField="PID">
                                            </asp:DropDownList>
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                    </tr>
                                </table>
                                <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                                    <tr>
                                        <td>
                                            <asp:Button ID="btnCancel" runat="server" Text="   Cancel   " OnClick="btnCancel_Click"
                                                class="Btn_M_Normal" CausesValidation="False" />
                                            <asp:Button ID="btnSave" runat="server" Text="   Save   " OnClick="btnSave_Click"
                                                class="Btn_M_Normal" />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <asp:Panel ID="pnl_pageFunctions" runat="server" Width="100%">
                                <fieldset id="addItem">
                                    <legend id="addItem">Adding new function to page "<asp:Label ID="lblLegend" runat="server"
                                        Text=""></asp:Label>"</legend>
                                </fieldset>
                                <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Permitted Functions
                                        </td>
                                        
                                        <td class="tdNormal" style="width: 30%">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="5">
                                            <asp:GridView ID="grd_pageFunctions" CssClass="gridMaster" Width ="100%" runat="server" AutoGenerateColumns="False" 
                                                AllowSorting="True" CellPadding="4" ForeColor="#333333"
                                                GridLines="None" DataKeyNames="fid" EmptyDataText="No Permitted Functions" 
                                                onrowcommand="grd_pageFunctions_RowCommand" >
                                                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                                <Columns>
                                                    <asp:BoundField DataField="NAME" ItemStyle-Width="20%" HeaderText="Function Name" />
                                                    <asp:BoundField DataField="DESCRIPTION" HeaderText="Description" />
                                                    <asp:BoundField DataField="status_txt"  HeaderText="Status" />
                                                    <asp:BoundField DataField="app_status" HeaderText="Approval Status" />
                                                    
                                                    <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="del" Text="Delete"
                                                        ImageUrl="~/Images/delete.jpg" />
                                                    
                                                    <asp:ButtonField ButtonType="Image" ItemStyle-Width="20px" CommandName="approve"
                                                        Text="Approve" ImageUrl="~/Images/approve.jpg"></asp:ButtonField>
                                                    <asp:ButtonField ButtonType="Image" ItemStyle-Width="20px" CommandName="decline"
                                                        Text="Decline" ImageUrl="~/Images/reject.jpg"></asp:ButtonField>
                                                </Columns>
                                                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="Black" />
                                                <EditRowStyle BackColor="#999999" />
                                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                            </asp:GridView>
                                            
                                            <asp:Panel ID="pnl_addFunctions" runat="server" Width="100%">
                                                <fieldset id="addItem">
                                                    <legend id="addItem">Select function to add</legend>
                                                </fieldset>
                                                <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                    <tr>
                                                        <td class="tdNormal" style="width: 15%">
                                                            Functions <span style="color: Red">*</span>
                                                        </td>
                                                        <td colspan="3" class="tdNormal" style="width: 30%">
                                                            <asp:DropDownList ID="ddl_pageFunctions" runat="server" class="fieldNormal" DataTextField="NAME"
                                                                DataValueField="FID">
                                                            </asp:DropDownList>
                                                        </td>
                                                        <td class="tdNormal" style="width: 30%">
                                                            &nbsp;
                                                        </td>
                                                    </tr>
                                                </table>
                                            </asp:Panel>
                                        </td>
                                    </tr>
                                </table>
                                <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                                    <tr>
                                        <td>
                                            <asp:Button ID="btn_AddFnction" runat="server" Text="     Add     " 
                                                class="Btn_M_Normal" onclick="btn_AddFnction_Click"/>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <!------------------------------------body End2 ----------------------------------------------->
                            <br>
                        </td>
                    </tr>
                </table>
                <!------------------------------------body End2 ----------------------------------------------->
            </td>
        </tr>
    </table>
</asp:Content>
