<%@ Page Language="c#" Inherits="WebApp.Wpdcc.manageSSO" CodeBehind="manageSSO.aspx.cs" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>ManageSSOProperty</title>
    <meta name="description" content="SSO" />
	
    <!--#include file = "../assets/head.htm" -->
    
    
</head>
<body>
    <form id="system" method="post" runat="server" class="form-horizontal">
    <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-home home-icon"></i>
						主页
					</li>
					<li>站群基本信息</li>
					<li class="active">参数配置</li>
				</ul><!-- /.breadcrumb -->
				
				<!-- /section:basics/content.searchbox -->
			</div>

			<!-- /section:basics/content.breadcrumbs -->
			
            <div class="page-content">

				<!-- /section:settings.box -->

				<!-- PAGE CONTENT BEGINS -->
				<div class="row">
				
				<div class="col-xs-12">
				
				<!-- #section:elements.tab -->
				<div class="tabbable">
				<ul class="nav nav-tabs">
						<li class="">
							<a href="manageunitinfo.aspx" target="_self">
								<i class="green ace-icon fa fa-home bigger-120"></i>
								站群基本信息
							</a>
						</li>

						<li class="">
							<a href="manageBasic.aspx" target="_self">
								站群系统参数
							</a>
						</li>
						
						<li class="active">
							<a href="#manageSSO">
								单点登录配置
							</a>
						</li>
						
						<li class="">
							<a href="manageSMTP.aspx" target="_self">
								电子邮箱参数
							</a>
						</li>
					</ul>
					
					<div class="tab-content">
					<div class="tab-pane fade active in">
					                    <!-- #section:elements.form -->
									    <div class="form-group">
										    <label class="col-sm-3 control-label no-padding-right" for="ddlType">基础平台类型</label>

										    <div class="col-sm-9">
								                <asp:DropDownList ID="ddlType" runat="server" CssClass="input-md" >
                                                    <asp:ListItem Value="0" Text="城域办公中心"></asp:ListItem>
                                                    <asp:ListItem Value="1" Text="数字校园办公桌面"></asp:ListItem>
                                                </asp:DropDownList>
										    </div>
									    </div>
										<div class="form-group">
										    <label class="col-sm-3 control-label no-padding-right" for="txtServiceUrl">基础平台服务地址</label>

										    <div class="col-sm-9">
											    <asp:TextBox ID="txtServiceUrl" runat="server" class="col-xs-10 col-sm-5" notNull="true" msgName="基础平台服务地址" ></asp:TextBox>
                                                &nbsp;<span class="tip">注：请填写完整http地址，非80端口请标明，如：http://192.168.0.100:81/</span>
										    </div>
									    </div>
									    <div class="form-group">
										    <label class="col-sm-3 control-label no-padding-right" for="txtPassportUrl">Passport验证地址</label>

										    <div class="col-sm-9">
										        <asp:TextBox ID="txtPassportUrl" runat="server" class="col-xs-10 col-sm-5" notNull="true" msgName="Passport验证地址" ></asp:TextBox>
                                                &nbsp;<span class="tip">注：请填写完整http地址，非80端口请标明，如：http://192.168.0.100:81/</span>
										    </div>
									    </div>
									    <div class="form-group">
										    <label class="col-sm-3 control-label no-padding-right" for="txtMemberUrl">Member地址</label>

										    <div class="col-sm-9">
										        <asp:TextBox ID="txtMemberUrl" runat="server" class="col-xs-10 col-sm-5" msgName="member地址" ></asp:TextBox>
                                                &nbsp;<span class="tip">可不填，为兼容V5.x版本保留</span>
										    </div>
									    </div>
									    <div class="form-group">
										    <label class="col-sm-3 control-label no-padding-right" for="txtOfficeUrl">验证成功后跳转地址</label>

										    <div class="col-sm-9">
										        <asp:TextBox ID="txtOfficeUrl" runat="server" class="col-xs-10 col-sm-5" notNull="true" msgName="验证成功后跳转地址" ></asp:TextBox>
                                                &nbsp;<span class="tip">通常填写办公中心地址，以便从办公桌面统一转到各个应用</span>
										    </div>
									    </div>
									    <div class="form-group">
										    <label class="col-sm-3 control-label no-padding-right" for="txtServerId">服务ID</label>

										    <div class="col-sm-9">
										        <asp:TextBox ID="txtServerId" runat="server" class="col-xs-10 col-sm-5" notNull="true" msgName="服务ID" ></asp:TextBox>
                                                &nbsp;<span class="tip">由passport提供</span>
										    </div>
									    </div>
									    <div class="form-group">
										    <label class="col-sm-3 control-label no-padding-right" for="txtServerKey">服务KEY</label>

										    <div class="col-sm-9">
										        <asp:TextBox ID="txtServerKey" runat="server" class="col-xs-10 col-sm-5" notNull="true" msgName="服务KEY" ></asp:TextBox>
                                                &nbsp;<span class="tip">由passport提供</span>
										    </div>
									    </div>
									    <div class="form-group">
										    <label class="col-sm-3 control-label no-padding-right" for="txtWebUrl">请求访问的地址</label>

										    <div class="col-sm-9">
										        <asp:TextBox ID="txtWebUrl" runat="server" class="col-xs-10 col-sm-5" ></asp:TextBox>
                                                &nbsp;<span class="tip">注：请填写完整http地址，若为空则取当前网站登录页面地址</span>
										    </div>
									    </div>
									    <div class="form-group">
										    <label class="col-sm-3 control-label no-padding-right" for="txtRoot">root参数</label>

										    <div class="col-sm-9">
										        <asp:TextBox ID="txtRoot" runat="server" class="input-md col-sm-5" notNull="true" msgName="root" ></asp:TextBox>
                                                &nbsp;<span class="tip">指AP是否是发布在根目录下。如果本网站部署为独立站点则设为1，部署为虚拟目录则设为0。</span>
										    </div>
									    </div>
									    <div class="form-group">
										    <label class="col-sm-3 control-label no-padding-right" for="rbControl">开启基础平台控制</label>

										    <div class="col-sm-9">
										        <label>
														<input id="rbControl" runat="server" name="switch-field-1" class="ace ace-switch ace-switch-5" type="checkbox" />
                                                        <span class="lbl"></span>
                                                </label>
										    </div>
									    </div>
									    <div class="clearfix">
										    <div class="col-md-offset-3 col-md-2">
										    
									            <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>
                                                
                                            </div>
                                            <div id="showMessage" ></div>
									    </div>
						</div>
                </div>
				
				</div>

				<!-- /section:elements.tab -->
			    </div>
			
			    </div>
		        <!-- PAGE CONTENT ENDS -->
            </div>
    </div>
	

    </form>
    <!--#include file = "../assets/foot.htm" -->
    <script type="text/javascript">
        function checkall() {
            //验证
            if (checkAllValidate()) {
                return true;
            } else {
                return false;
            }
        }


        function showMessage(i) {
            $('#showMessage').html("<div class=\"alert alert-block alert-success col-sm-2\"><button type=\"button\" class=\"close\" data-dismiss=\"alert\"><i class=\"ace-icon fa fa-times\"></i></button><i class=\"ace-icon fa fa-check green\"></i>保存成功</div>");

        }
    </script>
</body>
</html>