<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="crm.aspx.cs" Inherits="Us.Web.admin.inter.crm" %>


<!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">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8,chrome=1" />
    <title>绑定CRM</title>
    <asp:Literal ID="litregscript" runat="server" Text=""></asp:Literal>
    <link href="../style/default/style.css" rel="stylesheet" type="text/css" />
    <%=ImportScriptStr %>
    <script language="javascript" src="/admin/js/System.js" type="text/javascript"></script>
    <script language="javascript" src="/editor/xheditor.js" type="text/javascript"></script>
    <script type="text/javascript" src="/editor/xheditor_lang/zh-cn.js"></script>
    <script language="javascript" type="text/javascript">
       
    function jscheckAll() {

        var info = "您确实要把登录绑定到您输入的账户吗，您必须确保账户和密码同CRM系统相同才能保证绑定成功！";

        //info = "您确实要修改数据库连接吗？修改成功后，需要重新登录系统！";
        //alert(art.dialog.data("retdata"));
        if (art.dialog.data("retdata") == 1) {
            art.dialog.data("retdata", 0);//重置
            return true;
        }
        art.dialog.confirm(info, function () {
            art.dialog.data("retdata", 1);
            document.getElementById("btnSubmit").click();
        });

        return false;

    }
 </script>
</head>
<body onload="win_onLoad();">
    <form id="form1" runat="server">
       
        <div id="tbMain">
            <div class="divTbg">
                <div class="divTbgL">
                </div>
                <div class="divTbgInfo">
                    <div class="divTbgTitle">
                        绑定CRM
                    </div>
                </div>
            </div>
            <div class="divTbgF">
            </div>
            <div class="divTNavBG" id="topURL">
                <ul id="topURLul">
                    <li class="divURLed" id="div1">
                        <div>
                            <img src="../style/default/images/mini_icons_046.gif" width="10" height="10" />
                            基本信息
                        </div>
                    </li>
                </ul>
            </div>
            <div id="mypanel">
                <div class="divInfoContext">
                    <div class="divInfo">
                        <div class="divInfoblack">
                            <div class="divInfoTopList">
                                <div class="listLeft">
                                    <div class="navtitle">
                                        绑定CRM
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="divInfo">
                        <table width="100%" border="0" cellpadding="0" cellspacing="1" class="tablist" id="mainlist" onmouseover="changeto()" onmouseout="changeback()">
                            <tr class="tablisttr">
                                <td class="tablisttitle">用户名称</td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtUserName" runat="server" ToolTip="用户名称" Text="" CssClass="1" ReadOnly="True"></asp:TextBox></td>
                               
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">绑定用户<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtuAccount" runat="server" ToolTip="绑定用户" Text="" CssClass="1"></asp:TextBox></td>
                               
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">绑定密码<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtuPassword" runat="server" ToolTip="绑定密码" Text="" CssClass="1"></asp:TextBox></td>
                              
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">使用说明</td>
                                <td class="tabmanagertr">
                                     <span class="usHelpMessage"> * 注意事项： 请仔细阅读本说明，以免您无法正常使用</span> <br/>
                                    1、首此使用本功能的时候，需要您自己绑定您在CRM系统里面的用户名和密码以后进入本页面后自动登录到CRM系统，您不用在输入密码了；  <br/>
                                    2、如果想取消绑定或者更换其他人，请在CRM系统中修改密码，操作本处的密码和CRM不同步即可重新更换和修改绑定；  <br/>
                                    3、当绑定成功后，您需要关闭页面后重新进入本页面来验证CRM系统的绑定是否成功； <br/>
                                    4、本功能专为某用户设计，请确认您是否有本功能； <br/>
                                </td>
                              
                            </tr>
                        </table>
                        <div class="divSave">
                            <asp:Button ID="btnSubmit" runat="server" Text="绑定(S)"
                                CssClass="SkyButtonFocus" OnClick="btnSubmit_Click" />
                        </div>
                    </div>
                </div>
            </div>
        </div>

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