<%@ Page Language="C#" AutoEventWireup="false" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Controls" Assembly="Hishop.Web.Controls" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Management" Assembly="Hishop.Web.Management" %>
<%@ Register TagPrefix="Kindeditor" Namespace="kindeditor.Net" Assembly="kindeditor.Net" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Validator" Assembly="Hishop.Web.Validator" %>
<%@ Import Namespace="Hishop.SystemServices" %>

<!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>
    <Hishop:HeadContainer ID="HeadContainer1" runat="server" />
    <Hishop:PageTitle ID="PageTitle1" runat="server" />
    <link rel="stylesheet" href="../../utility/validate/pagevalidator.css" type="text/css" />
    <link rel="stylesheet" href="../css/Hishopv5.css" type="text/css" />
    <script type="text/javascript" src="../../utility/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../../utility/validate/pagevalidator.js"></script>
    
    <script type="text/javascript" src="../js/Hishopv5.js"></script>
     <script type="text/javascript" src="../../utility/plugin.js"></script>
    <script type="text/javascript">
        $(document).ready(function() {
            pluginContainer = $("#pluginContainer");
            templateRow = $(pluginContainer).find("[rowType=attributeTemplate]");
            selectedNameCtl = $("#OpenIdSettings_txtSelectedName");
            configDataCtl = $("#OpenIdSettings_txtConfigData");
            ResetContainer($(selectedNameCtl).val(), "OpenIdService");
        });
</script>
</head>
<body>
    <form id="form1" runat="server">

        <div>           

            <div class="PageTitleArea">
                <div class="PageTitle">
                    <asp:Literal ID="lblPageTitle" runat="server" Text="配置信任登录相关参数"></asp:Literal>
                </div>
                <div style="width: 80%;">
                    <asp:Literal ID="lblPageDesc" runat="server" Text="配置信任登录相关参数"></asp:Literal>
                </div>
            </div>
            <Hishop:OpenIdSettings ID="OpenIdSettings" runat="server">
                  
                <SkinTemplate>
                  <asp:HiddenField runat="server" ID="txtSelectedName" />
                       <asp:HiddenField runat="server" ID="txtConfigData" />
                    <div id="addFeeFree"><Hishop:StatusMessage id="Status" runat="server" Visible="False" /></div>
                    <table style="width: 100%" cellspacing="0" cellpadding="0" class="formTableList">
                    
                       <tr>
                                <td class="leftTD">
                                        
                                    显示名称：
                                </td>
                                <td class="rightTD"><asp:TextBox ID="txtName" runat="server" Width="200px"></asp:TextBox></td>
                                <td class="rightTD">
                                    <div id="txtNameTip" runat="server"></div>
                                    <Hishop:ValidateTarget ID="ValidateName"  ContainerId="ValidatorContainer" runat="server" ControlToValidate="txtName" 
                                             Description="名称不能为空" Nullable="false">
                                        <Validators>
                                             <Hishop:InputStringClientValidator ErrorMessage="名称1-100" LowerBound="1" UpperBound="100" />
                                        </Validators>
                                    </Hishop:ValidateTarget>
                                </td>
                            </tr>
                            
                            
                               <tr>
                                <td class="leftTD" colspan="3">
                                   <ul id="pluginContainer">
	                                 <li rowtype="attributeTemplate" style="display:none;"><span>$Name$：</span><label>$Input$</label></li>
	                               </ul>
                                </td>
                               
                            </tr>
                            
                              <tr>
                                <td class="leftTD"><asp:Literal ID="Literal6" Text="简单描述" runat="server"></asp:Literal></td>
                                <td class="rightTD" colspan="2">
                                <Kindeditor:KindeditorControl ID="fckDescription" runat="server" Height="230px"/>
                                </td>
                            </tr>
                       
                        <tr>
                            <td class="bottonLeftTD">&nbsp;</td>
                            <td colspan="2" class="rightTD">
                                <table>
                                    <tr>
                                        <td valign="top"><asp:Button ID="btnAdd" OnClientClick="return PageIsValid();" runat="server" Text="保存" CssClass="inp_L1" /></td>
                                        <td><div class="return_inp"><a href='<%= Globals.GetSiteUrls().UrlData.FormatUrl("admin_OpenIdServices")%>'>
                                            <asp:Literal ID="lblreturn" runat="server" Text="<%$ Resources:Resources ,IDS_Button_Back %>" /></a></div>
                                        </td>
                                    </tr>
                                 </table>                    
                            </td>
                            <td class="rightTD">&nbsp;</td>
                        </tr>
                    </table>
                </SkinTemplate>

            </Hishop:OpenIdSettings>
        </div>
        <br />
        <div class="botCopyInfo">
            <hr style="width:500px;" />
            <Hishop:SiteCopyright ID="SiteCopyright1" runat="server" />
        </div>
        <br />
        <Hishop:ValidatorContainer runat="server" ID="ValidatorContainer" />
    </form>
</body>
</html>