<%@ page language="C#" autoeventwireup="true" inherits="ims.hotline, ims.web" enableviewstatemac="false" enableEventValidation="false" %>
<!DOCTYPE html>
<html id="hotline">
<head runat="server">
    <title>来电弹屏设置</title><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width,initial-scale=1">
    <script src="js/comm.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="s1" runat="server" OnAsyncPostBackError="AsyncError">
        <CompositeScript Path="js/msajax.js" ScriptMode="Release">
            <Scripts>
                <asp:ScriptReference Name="WebForms.js" Assembly="System.Web" /><asp:ScriptReference Name="MicrosoftAjax.js" /><asp:ScriptReference Name="MicrosoftAjaxWebForms.js" />
            </Scripts>
        </CompositeScript>
    </asp:ScriptManager>
    <div id="tabs" class="ui-tabs simple">
        <ul>
            <li><a href="#setting">来电弹屏设置</a></li>
        </ul>
        <asp:UpdatePanel ID="setting" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <div runat="server" id="lic">
                <div class="highlight mtop_m mbottom_l" runat="server" id="buyLic">
                    该功能需单独<a href="https://landian.cc/content.aspx?p=price" target="_blank">购买授权和设备</a>，请用购买的授权码在下面授权。
                </div>
                <div class="center">
                    功能授权码： <asp:TextBox runat="server" ID="tbCode" Width="160"></asp:TextBox><asp:Button runat="server" ID="btnReg" CssClass="btn small sec" Text="授权" OnClick="btnReg_Click" />
                </div>
            </div>
            <div runat="server" id="options" style="padding-left:1em">
                <div class="zoneTitle mtop_n">来电匹配：</div>
                <ul class="ml_n dot">
                    <li>客户信息： <asp:DropDownList runat="server" ID="ddlCustomer" OnSelectedIndexChanged="BindField" AutoPostBack="true"></asp:DropDownList> <asp:DropDownList runat="server" ID="telCustomer" ToolTip="指定与来电匹配的电话号码字段"></asp:DropDownList></li>
                    <li>来电历史： <asp:DropDownList runat="server" ID="ddlHistory" OnSelectedIndexChanged="BindField" AutoPostBack="true"></asp:DropDownList> <asp:DropDownList runat="server" ID="telHistory" ToolTip="指定与来电匹配的电话号码字段"></asp:DropDownList>，录音文件保存字段：<asp:DropDownList runat="server" ID="ddlRecord"></asp:DropDownList></li>
                </ul>
                <div class="zoneTitle mtop_n">操作权限：</div>
                <div class="ml_n">启用来电弹屏的角色： <asp:DropDownList runat="server" ID="ddlRoles"></asp:DropDownList></div>
            </div>
            <div class="center mtop_x">
                <asp:Button runat="server" ID="btnSave" OnClick="Save" Text="保存设置" CssClass="btn" />
                <input type="button" onclick="showHelp('hotline');" value="帮助" class="btn pconly" />
                <input type="button" onclick="back();" value="返回" class="btn" />
            </div>
        </ContentTemplate>
        </asp:UpdatePanel>
    </div> 
    </form>
    <script>
        $(function () { $('#tabs').tabs().fadeIn(300);});
    </script>
</body>
</html>