<%@ 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="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>
    
    <style>
.loginTabao{border:1px solid #dedfd7;background:#fbffda;padding:10px 5px;color:#666;height:180px;}
.loginTabao .taobaoTitle{font-size:14px;font-weight:bold;color:#306fa2;line-height:24px;height:24px;}
.loginTabao ul li.li1{height:26px;clear:both;overflow:visible;}
.loginTabao ul li.li2{clear:both;line-height:30px;height:30px;overflow:visible;}
.loginTabao ul li.li2 a img{border:none;margin-bottom:3px;}
.loginTabao ul li.li2 label,.loginTabao ul li.li2 a{float:left;padding-right:5px;}
.loginTabao ul.ul2{clear:both;}.loginTabao ul.ul2 a{padding-left:3px;color:#306fa2;}
.loginTabao ul.ul2 li{clear:both;word-break: break-all;}
    </style>
</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:OpenIdServices ID="OpenIdServices" runat="server">
<SkinTemplate>
<!-- 操作提示 -->
<Hishop:StatusMessage id="Status" runat="server" Visible="False" />
<div class="grdGroupFormList">             		
    <asp:Panel runat="server" ID="pnlConfigedList">
    <asp:GridView runat="server" ID="grdConfigedItems" AutoGenerateColumns="False" ShowHeader="False" DataKeyNames="FullName" Width="100%">
        <Columns>
            <asp:ImageField DataImageUrlField="Logo" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="150px">
            </asp:ImageField>
            <asp:BoundField DataField="DisplayName" ItemStyle-Width="100px" />
            <asp:TemplateField>            
                <ItemTemplate>
                    <%# Globals.HtmlDecode(Eval("ShortDescription").ToString())%>                    
                </ItemTemplate>                
                </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <asp:HyperLink CssClass="SmallCommonTextButton" ID="lkbtnEdit" runat="server" NavigateUrl='<%# Globals.GetSiteUrls().UrlData.FormatUrl("admin_OpenIdSettings", Eval("FullName")) %>'  Target="_self" Text="配置" ></asp:HyperLink>
                    <asp:LinkButton ID="LinkButton1" runat="server" OnClientClick="return confirm('确定要关闭此信任登录吗？');" CommandName="Delete" Text="关闭"></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    </asp:Panel>
    <asp:Panel runat="server" ID="pnlConfigedNote">
        <span>还没有配置任何信任登录信息，请从未开启的列表中选择配置。</span>
    </asp:Panel>

    <div class="openIdTitle">
	    <h1>未开启</h1>
    </div>
    
    <asp:Panel runat="server" ID="pnlEmptyList">
    <asp:GridView runat="server" ID="grdEmptyList" AutoGenerateColumns="False" ShowHeader="False" DataKeyNames="FullName">
        <Columns>
            <asp:ImageField DataImageUrlField="Logo" ItemStyle-Width="150px">
            </asp:ImageField>
            <asp:BoundField DataField="DisplayName" ItemStyle-Width="100px" />
            <asp:TemplateField>            
                <ItemTemplate>
                    <%# Globals.HtmlDecode(Eval("ShortDescription").ToString())%>                    
                </ItemTemplate>                
                </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <asp:HyperLink ID="HyperLink1" runat="server" Text="配置" NavigateUrl='<%# "OpenIdSettings.aspx?t="+Eval("FullName") %>'></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    </asp:Panel>
    <asp:Panel runat="server" ID="pnlEmptyNote">
        <span>所有可使用的信任登录都已开启。</span>
    </asp:Panel>
</div>

             </SkinTemplate>
 </Hishop:OpenIdServices>
        </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>
