<%@ control language="VB" autoeventwireup="false" inherits="RCC_Clients_CC_OCS_Resource, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Packages/CC/LyncPlans.ascx" TagName="LyncPolicies" TagPrefix="EM" %>
<table id="Tbl_Listing" runat="server" class="tblNewListing" width="100%">
    <tr>
        <td>
            <%--Limits--%>
            <table class="tblNewListing">

                <tr>
                    <td class="Heading" colspan="5">&nbsp;<asp:Image ID="Image_Limits" SkinID="OCSLimits" runat="server" />&nbsp;&nbsp;<asp:Literal
                        ID="Literal2" runat="server" Text='<%$ Resources:Content,GN0000112%>' EnableViewState="false" />
                    </td>
                </tr>

                <tr>
                    <th width="30%" align="left">
                        <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,GN0000199%>"
                            EnableViewState="false" />
                    </th>
                    <th width="15%" align="left">
                        <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Content,DGN1110615%>"
                            EnableViewState="false" />
                    </th>
                    <th width="15%" align="left">
                        <asp:Literal ID="Literal15" runat="server" Text="<%$ Resources:Content,String346%>"
                            EnableViewState="false" />
                    </th>
                    <th width="15%" align="left">
                        <asp:Literal ID="Literal113" runat="server" Text="<%$ Resources:Content,DGN1110616%>"
                            EnableViewState="false" />
                    </th>
                    <th align="left">
                        <asp:Literal ID="Literal110" runat="server" Text="<%$ Resources:Content,String347%>"
                            EnableViewState="false" />
                    </th>
                </tr>

                <tr align="left">
                    <td class="shade">
                        <asp:Literal ID="ltr_SipDomains" runat="server" Text='<%$ Resources:Content,Dev1218 %>' />:
                    </td>
                    <td id="Td_Orgs" runat="server"></td>
                    <td id="Td_Orgs_NA" runat="server"></td>
                    <td id="Td_Orgs_Used" runat="server"></td>
                    <td id="Td_Orgs_Rem" runat="server"></td>
                </tr>

                <tr>
                    <td colspan="5">
                        <asp:GridView CssClass="tblListing" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                            ID="GV_LyncResources" AllowPaging="False" runat="server" AutoGenerateColumns="false">
                            <AlternatingRowStyle CssClass="altRow" />
                            <Columns>
                                <asp:BoundField HeaderStyle-Width="30%" HeaderStyle-HorizontalAlign="Left" HeaderText="<%$ Resources:Content,GN000141%>" DataField="Name" />
                                <%--<asp:TemplateField HeaderText="Total SIP Domains">
                                    <ItemTemplate>
                                        <asp:Literal ID="Ltrl_TotalSIPDomains" runat="server"></asp:Literal>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Used Domains">
                                    <ItemTemplate>
                                        <asp:Literal ID="Ltrl_UsedDomains" runat="server"></asp:Literal>
                                    </ItemTemplate>
                                </asp:TemplateField>--%>
                                <asp:TemplateField HeaderStyle-Width="15%" HeaderText="Total Users" HeaderStyle-HorizontalAlign="Left">
                                    <ItemTemplate>
                                        <asp:Literal ID="Ltrl_TotalUsers" runat="server"></asp:Literal>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="15%" HeaderText='<%$ Resources:Content,DGN1110616%>' HeaderStyle-HorizontalAlign="Left">
                                    <ItemTemplate>
                                        <asp:Literal ID="Ltrl_UtilizedUsers" runat="server"></asp:Literal>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000360%>' HeaderStyle-HorizontalAlign="Left">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LB_ShowDetail" SkinID="linkButtonDefault" runat="server" Text='<%$ Resources:Content,DGN1110431%>'
                                            CommandName="ShowDetail"></asp:LinkButton>
                                        <%--<asp:LinkButton ID="LB_Delete" runat="server" Text="<%$ Resources:Content,GN0000377%>"
                                            SkinID="linkButtonDelete" CommandName="Delete_Org" />
                                        <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$Resources:Content,GN000200%>"
                                            TargetControlID="LB_Delete">
                                        </EM:ConfirmButtonExtender>--%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <%--PagerTemplate Start--%>
                            <PagerTemplate>
                                <table width="100%" class="pagerBottomRow">
                                    <tr>
                                        <td width="7%%">
                                            <asp:Literal ID="Literal2" Text="<%$ Resources:Content,String307 %>" runat="server" />:
                                        </td>
                                        <td width="2%">
                                            <asp:Label ID="lbl_FirstPageRow" runat="server" />&nbsp;-
                                        </td>
                                        <td width="2%">
                                            <asp:Label ID="lbl_LastpageRow" runat="server" />
                                        </td>
                                        <td width="2%">
                                            <asp:Literal ID="lbl_of" Text="<%$ Resources:Content,String308 %>" runat="server" />
                                        </td>
                                        <td width="2%">
                                            <asp:Label ID="lbl_TotalRows" runat="server" />
                                        </td>
                                        <%--<td width="20%"></td> --%>
                                        <td width="50%" align="center">
                                            <asp:LinkButton CausesValidation="false" CommandName="Pager" CommandArgument="First"
                                                ID="lb_First" runat="server">
                                                <asp:Image ID="Image6" SkinID="btnFirst" runat="server" />
                                            </asp:LinkButton>&nbsp;
                                            <asp:LinkButton CausesValidation="false" CommandName="Pager" CommandArgument="Prev"
                                                ID="lb_Previous" runat="server">
                                                <asp:Image ID="img_Previous" SkinID="btnPrevious" runat="server" />
                                            </asp:LinkButton>&nbsp;
                                            <asp:LinkButton Text="1" ID="lb_No1" CommandName="Pager" CommandArgument="1" runat="server" />&nbsp;
                                            <asp:LinkButton Text="2" ID="lb_No2" CommandName="Pager" CommandArgument="2" runat="server" />&nbsp;
                                            <asp:LinkButton Text="3" ID="lb_No3" CommandName="Pager" CommandArgument="3" runat="server" />&nbsp;
                                            <asp:LinkButton CausesValidation="false" CommandName="Pager" CommandArgument="Next"
                                                ID="lb_Next" runat="server">
                                                <asp:Image ID="Image4" SkinID="btnNext" runat="server" />
                                            </asp:LinkButton>&nbsp;
                                            <asp:LinkButton CausesValidation="false" CommandName="Pager" CommandArgument="Last"
                                                ID="lb_Last" runat="server">
                                                <asp:Image ID="Image5" SkinID="btnLast" runat="server" />
                                            </asp:LinkButton>
                                        </td>
                                        <%--<td width="20%" ></td> --%>
                                        <td width="30%" align="right">
                                            <asp:Literal ID="Literal1" Text="Displaying per page:" runat="server" />
                                        </td>
                                        <td width="5%" align="left">
                                            <asp:DropDownList ID="ddl_RecordsPerPage" runat="server">
                                                <asp:ListItem Text="20" Value="20"></asp:ListItem>
                                                <asp:ListItem Text="40" Value="40"></asp:ListItem>
                                                <asp:ListItem Text="60" Value="60"></asp:ListItem>
                                                <asp:ListItem Text="80" Value="80"></asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                        <td width="6%" align="left">
                                            <asp:LinkButton ID="lb_Change_RowsPerChange" CommandName="Pager" CommandArgument="Change_RowsPerChange"
                                                runat="server" Text="Change"></asp:LinkButton>
                                        </td>
                                    </tr>
                                </table>
                            </PagerTemplate>
                            <%--PagerTemplate End--%>
                        </asp:GridView>
                    </td>
                </tr>
            </table>

        </td>
    </tr>
</table>

<asp:Panel ID="Pnl_PackageDetail" runat="server" Style="display: none; background-color: White; width: 400px">
    <table class="tblListing2">
        <tr>
            <th colspan="2" align="left">
                <asp:Literal ID="Literal8" runat="server" EnableViewState="false" Text='<%$ Resources:Content, SPT002529 %>' />
            </th>
        </tr>
        <tr>
            <td width="35%" class="shade">
                <asp:Literal ID="Literal19" runat="server" Text='<%$ Resources:Content, Dev1231 %>' />:</td>
            <td width="60%">
                <asp:Literal ID="ltr_Telephony" runat="server" /></td>
        </tr>
        <tr id="TR_DialPlan" runat="server">
            <td class="shade">
                <asp:Literal ID="Literal9" runat="server" Text='<%$ Resources:Content,Dev1220 %>' />:</td>
            <td>
                <asp:Literal ID="ltr_DialPlan" runat="server"></asp:Literal></td>
        </tr>
        <tr id="TR_VoicePolicy" runat="server">
            <td class="shade">
                <asp:Literal ID="Literal10" runat="server" Text='<%$ Resources:Content,Dev1232 %>' />:</td>
            <td>
                <asp:Literal ID="ltr_VoicePolicy" runat="server" /></td>
        </tr>
        <tr>
            <td class="shade">
                <asp:Literal ID="Literal11" runat="server" Text='<%$ Resources:Content,Dev1221 %>' />:</td>
            <td>
                <asp:Literal ID="ltr_ConferencingPolicy" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="shade">
                <asp:Literal ID="Literal12" runat="server" Text='<%$ Resources:Content,Dev1222 %>' />:</td>
            <td>
                <asp:Literal ID="ltr_ClientVersionPolicy" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="shade">
                <asp:Literal ID="Literal13" runat="server" Text='<%$ Resources:Content,Dev1223 %>' />:</td>
            <td>
                <asp:Literal ID="ltr_PINPolicy" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="shade">
                <asp:Literal ID="Literal14" runat="server" Text='<%$ Resources:Content,Dev1225 %>' />:</td>
            <td>
                <asp:Literal ID="ltr_ExternalAccessPolicy" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="shade">
                <asp:Literal ID="Literal16" runat="server" Text='<%$ Resources:Content,Dev1224 %>' />:</td>
            <td>
                <asp:Literal ID="ltr_ArchivingPolicy" runat="server" />
            </td>
        </tr>

        <tr>
            <td class="shade">
                <asp:Literal ID="Literal17" runat="server" Text='<%$ Resources:Content,Dev1226 %>' />:</td>
            <td>
                <asp:Literal ID="ltr_LocationPolicy" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="shade">
                <asp:Literal ID="Literal18" runat="server" Text='<%$ Resources:Content,Dev1227 %>' />:</td>
            <td>
                <asp:Literal ID="ltr_ClientPolicy" runat="server" />
            </td>
        </tr>
        <tr id="TR_MobilityPolicy" runat="server">
            <td class="shade">
                <asp:Literal ID="Literal7" runat="server" Text='<%$ Resources:Content,Dev1229 %>' />:</td>
            <td>
                <asp:Literal ID="ltr_MobilityPolicy" runat="server"></asp:Literal></td>
        </tr>
        <tr id="TR_PersistentChatPolicy" runat="server">
            <td class="shade">
                <asp:Literal ID="Literal20" runat="server" Text='<%$ Resources:Content,Dev1244 %>' />:</td>
            <td>
                <asp:Literal ID="ltr_PersistentChatPolicy" runat="server"></asp:Literal></td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Button ID="Btn_Mp_Lync_Ok" CssClass="formButton formButtonOK"
                    runat="server" Text='<%$ Resources:Content, GN0000858 %>' /></td>
        </tr>
    </table>
</asp:Panel>
<EM:ModalPopupExtender runat="server" ID="Mp_Lync" BackgroundCssClass="modalBackground"
    DropShadow="true" PopupControlID="Pnl_PackageDetail" TargetControlID="Btn_Tab1">
</EM:ModalPopupExtender>



<table id="Tbl_Edit" runat="server" class="tblNewListing">
    <tr>
        <td>
            <table class="tblNewListing">
                <tr>
                    <td class="Heading" colspan="2">&nbsp;<asp:Image ID="Image1" SkinID="OCSLimits" runat="server" />&nbsp;&nbsp;<asp:Literal
                        ID="Literal3" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN0000112%>' />
                    </td>
                </tr>
                <tr>
                    <td class="shade" width="30%">
                        <asp:Literal ID="Literal4" runat="server" Text='<%$ Resources:Content,Dev1218 %>' />:</td>
                    <td width="70%">
                        <asp:TextBox ID="TxBx_SipDomains" runat="server" MaxLength="5" Enabled="false"></asp:TextBox>
                        <asp:CheckBox ID="CB_SipDomains" Text="<%$ Resources:Content,GN0000908%>" runat="server"
                            Checked="true" />
                        <asp:Label ID="Lbl_SipDomains" runat="server" ForeColor="red" Visible="false">*</asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="shade">
                        <asp:Literal ID="Literal6" runat="server" EnableViewState="false" Text='<%$ Resources:Content,DEV1154%>' />:
                    </td>
                    <td>
                        <asp:TextBox ID="TxBx_MaximumUsers" runat="server" MaxLength="5" Enabled="false"></asp:TextBox>
                        <asp:CheckBox ID="CB_MaximumUsers" Text="<%$ Resources:Content,GN0000908%>" runat="server"
                            Checked="true" />
                        <asp:Label ID="Lbl_MaximumUsers" runat="server" ForeColor="red" Visible="false">*</asp:Label>
                    </td>
                </tr>
            </table>
            <%-- Plans & Policies --%>
            <table class="tblNewListing">
                <tr>
                    <td class="Heading" colspan="2">&nbsp;<asp:Image ID="Image10" SkinID="OCSLimits" runat="server" />&nbsp;&nbsp;<asp:Literal
                        ID="Literal37" runat="server" EnableViewState="false" Text='<%$ Resources:Content,Lync039%>' />
                    </td>
                </tr>
                <%--<tr>
                    <td class="shade" width="30%">Select Package/Addon:</td>
                    <td><asp:DropDownList ID="ddl_EditPlanPackages" AutoPostBack="true" runat="server">
                                        </asp:DropDownList></td>
                </tr>--%>
                <tr>
                    <td colspan="2">
                        <EM:LyncPolicies ID="LyncPackage" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2"><asp:RadioButtonList ID="Rbl_ApplyToUsers" runat="server" RepeatColumns="2">
                        <asp:ListItem Value="1" Text="Apply to existing and the new users"></asp:ListItem>
                        <asp:ListItem Value="2" Text="Apply to the new users" Selected="True"></asp:ListItem>
                                    </asp:RadioButtonList></td>
                </tr>
            </table>
        </td>
    </tr>
    
    <tr>
        <td>
            <asp:Button SkinID="saveButton" ID="Btn_Update" runat="server" Text="<%$ Resources:Content,GN0000281%>" />
            <asp:Button SkinID="cancelButton" ID="Btn_Cancel" runat="server" Text="<%$ Resources:Content,GN0000572%>" />
        </td>
    </tr>
</table>
