<%@ Page Language="c#" Inherits="Web.Wpdcc.ManageSSOProperty" CodeBehind="manageSSOProperty.aspx.cs" %>

<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <title>ManageSSOProperty</title>

    <!--#include file="../Css/head.htm"-->

</head>
<body>
    <div class="main-content-inner">
        <!-- #section:basics/content.breadcrumbs -->
        <div class="breadcrumbs" id="breadcrumbs">
            <script type="text/javascript">
                try { ace.settings.check('breadcrumbs', 'fixed') } catch (e) { }
            </script>
            <ul class="breadcrumb">
                <li>
                    <i class="ace-icon fa  fa-desktop"></i>
                    <a href="../welcome.aspx">主页</a>
                </li>
                <li>网站高级属性设置
                </li>
                <li class="active">单点登录</li>
            </ul>
        </div>
        <!-- /section:basics/content.breadcrumbs -->
        <div class="page-content">
            <div class="row">
                <div class="col-xs-12">
                    <!-- PAGE CONTENT BEGINS -->
                    <form id="system" method="post" runat="server">
                        <div class="edit-func-box func-box">
                            <!-- #section:elements.tab.option -->
                            <div class="tabbable">
                                <ul class="nav nav-tabs" id="myTab4">
                                    <li>
                                        <a aria-expanded="false" href="manageUploadFilesProperty.aspx" data-toggle="tab">上传限制</a>
                                    </li>
                                    <li>
                                        <a aria-expanded="false" href="manageWatermark.aspx" data-toggle="tab">水印设置</a>
                                    </li>
                                    <li>
                                        <a aria-expanded="false" href="manageMessageBoardProperty.aspx" data-toggle="tab">留言本</a>
                                    </li>
                                    <li>
                                        <a aria-expanded="false" href="manageMobile.aspx" data-toggle="tab">手机微站</a>
                                    </li>
                                    <li class="active">
                                        <a aria-expanded="false" href="manageSSOProperty.aspx" data-toggle="tab">单点登录</a>
                                    </li>
                                    <li>
                                        <a aria-expanded="false" href="manageRegService.aspx" data-toggle="tab">服务注册管理</a>
                                    </li>
                                    <li>
                                        <a aria-expanded="false" href="manageSMTP.aspx" data-toggle="tab">邮件服务参数设置</a>
                                    </li>
                                </ul>
                            </div>
                            <!-- /section:elements.tab.option -->
                            <div class="bd  tab-content">
                                <table id="Table1" class="edit-table">
                                    <tr>
                                        <th>开启单点登录验证：
                                        </th>
                                        <td>
                                            <label>
                                                <input id="rbControl" runat="server" name="switch-field-1" class="ace ace-switch ace-switch-5" type="checkbox" />
                                                <span class="lbl"></span>
                                            </label>
                                            &emsp;<span class="tip">（若开启，则网站接入Passport统一认证平台，并停用自身登陆口，单点登录成功时同步用户数据）</span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>前台登录栏目控制：
                                        </th>
                                        <td>
                                            <label>
                                                <input id="rbPassportSel" runat="server" name="switch-field-1" class="ace ace-switch ace-switch-5" type="checkbox" />
                                                <span class="lbl"></span>
                                            </label>
                                            &emsp;<span class="tip">（若仅开启本开关时：前台登录栏目自动切换成Passport模式，网站后台登陆口仍然可用）</span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>验证平台选择：
                                        </th>
                                        <td>
                                            <asp:DropDownList ID="ddlType" runat="server" CssClass="input-md w3">
                                                <asp:ListItem Value="0" Text="城域办公中心"></asp:ListItem>
                                                <asp:ListItem Value="1" Text="数字校园办公桌面"></asp:ListItem>
                                            </asp:DropDownList>
                                            &nbsp;<span class="tip"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>验证平台服务地址：
                                        </th>
                                        <td>
                                            <asp:TextBox ID="txtServiceUrl" runat="server" class="input-md w3" notnll="true" msgName="验证平台服务地址"></asp:TextBox>
                                            &nbsp;<span class="tip">注：请填写完整http地址，非80端口请标明，如：http://192.168.0.100:81/</span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>Passport验证地址：
                                        </th>
                                        <td>
                                            <asp:TextBox ID="txtPassportUrl" runat="server" class="input-md w3" notnll="true"  msgName="Passport验证地址"></asp:TextBox>
                                            &nbsp;<span class="tip">注：请填写完整http地址，非80端口请标明，如：http://192.168.0.100:81/</span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>（Member地址）：
                                        </th>
                                        <td>
                                            <asp:TextBox ID="txtMemberUrl" runat="server" class="input-md w3" msgName="member地址"></asp:TextBox>
                                            &nbsp;<span class="tip">本项为兼容V5.x版本保留，可不填</span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>验证成功后跳转地址：
                                        </th>
                                        <td>
                                            <asp:TextBox ID="txtOfficeUrl" runat="server" class="input-md w3" notnll="true"  msgName="验证成功后跳转地址"></asp:TextBox>
                                            &nbsp;<span class="tip">通常填写办公中心地址，以便从办公桌面统一转到各个应用</span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>服务ID：
                                        </th>
                                        <td>
                                            <asp:TextBox ID="txtServerId" runat="server" class="input-md w3" notnll="true"  msgName="服务ID" ></asp:TextBox>
                                            &nbsp;<span class="tip">由passport提供</span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>服务KEY：
                                        </th>
                                        <td>
                                            <asp:TextBox ID="txtServerKey" runat="server" class="input-md w3" notnll="true"  msgName="服务KEY"></asp:TextBox>
                                            &nbsp;<span class="tip">由passport提供</span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>请求访问的地址：
                                        </th>
                                        <td>
                                            <asp:TextBox ID="txtWebUrl" runat="server" class="input-md w3"></asp:TextBox>
                                            &nbsp;<span class="tip">注：请填写完整http地址，若为空则取当前网站登录页面地址</span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>root参数：
                                        </th>
                                        <td>
                                            <asp:TextBox ID="txtRoot" runat="server" class="input-md"  dataType="integer" notnll="true" msgName="root参数"></asp:TextBox>
                                            &nbsp;<span class="tip">指AP是否是发布在根目录下。如果本网站部署为独立站点则设为1，部署为虚拟目录则设为0。</span>
                                        </td>
                                    </tr>
                                </table>
                                <div class="ft">
                                    <div class="action-field btn-pl">
                                        <asp:Button ID="btnSave" class="btn btn-sm btn-primary" runat="server" Text="保 存" OnClientClick="return checkall()" OnClick="btn_Click"></asp:Button>&nbsp;
                <asp:Button ID="btnReset" class="btn btn-sm btn-primary" runat="server" Text="重 载" OnClick="btn_Click"></asp:Button>
                                        &nbsp;
                                        <asp:Button ID="btnRead" class="btn btn-sm btn-primary" runat="server" Text="读 取" OnClick="btn_Click"></asp:Button>
                                    </div>
                                    <!--/action-field-->
                                </div>
                            </div>
                        </div>
                    </form>
                    <!-- PAGE CONTENT ENDS -->
                </div>
            </div>
        </div>
        <!-- /.page-content -->
    </div>
    <!--#include file = "../Css/foot.htm" -->
    <script type="text/javascript">
        function checkall() {
            //验证
            if (checkAllValidate()) {
                return true;
            } else {
                return false;
            }
        }
        $(document).ready(function () {
            $('[data-rel=popover]').popover({ container: 'body' });
            $("#btnRegService").click(function () {
            }).fancybox({
                'width': 1000,
                'height': 600,
                'type': 'iframe',
                'padding': '0'
            })
        })
    </script>
</body>
</html>
