<%@ Page Language="C#" MasterPageFile="BloggerAdmin.master" AutoEventWireup="true" Inherits="Ruiao.WebSite.Blogger.Admin.SkinManage" Codebehind="SkinManage.aspx.cs" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="cc1" %>
<asp:Content ID="MyContent" ContentPlaceHolderID="cphMainAdmin" Runat="Server">
<form id="MainForm" runat="server">
<div id="ContentTitle"><%=MyTitle %></div>
<div id="ContentBody">
    <fieldset class="ContentBox">
    <div class="ContentBox_Head" onclick="BoxSwitch('mcBody','siBody','/Blogger/Admin/Images/Box_')"><div style="float:left;">自定义CSS：</div><div id="siBody" class="SwitchIcon_Down"></div></div> 
    <div class="ContentBox_ContentBox" id="mcBody" style="display:none;">
        <div class="ContentBox_ContentItem">
        <asp:TextBox ID="tbSecondaryCss" runat="server" Height="80px" TextMode="MultiLine" Width="100%"></asp:TextBox>
        <div style="text-align:right"><asp:Button ID="btSave" runat="server" OnClick="btSave_Click" Text="保存自定义Css" CssClass="SubmitButton" /></div>
        </div>
    </div>
	</fieldset>
    <br />
    
    <asp:Repeater ID="rpSkins" runat="server">
    <ItemTemplate>
    <table id="SkinList" class="MainContentTable" cellpadding="3" cellspacing="1">
      <tr class="MainContentList_ItemTR">
        <td rowspan="2" style="width:200px"><a href="<%=AppUrl %>/Skins/<%# DataBinder.Eval(Container, "DataItem.SkinPath")%>/FullPreview.png" target="_blank"><img src="<%=AppUrl %>/Skins/<%# DataBinder.Eval(Container, "DataItem.SkinPath")%>/SmallPreview.png" width="200px" height="142px" style="border:0px"/></a></td>
        <td style="width:auto; height:20px; background-color:#EAEAEA">名称：<%# DataBinder.Eval(Container, "DataItem.SkinName")%></td>
        <td style="width:auto; height:20px; background-color:#EAEAEA">作者：<%# DataBinder.Eval(Container, "DataItem.AuthorName")%></td>
        <td style="width:auto; height:20px; background-color:#EAEAEA">发布日期：<%# DataBinder.Eval(Container, "DataItem.IssueDate")%></td>
      </tr>
      <tr class="MainContentList_ItemTR">
        <td colspan="3" style="width:auto; height:120px; vertical-align:top;">描述：<%# DataBinder.Eval(Container, "DataItem.Description")%></td>
      </tr>
      <tr class="MainContentList_ItemTR">
        <td colspan="4" style="width:auto; height:20px; background-color:#EAEAEA; text-align:right;"><input type="button" class="LinkButton" value="使用该皮肤" onclick="location='<%=MyBloggerUrl %>/Admin/SkinManage<%=ExtensionName %>?Action=UseSkin&SkinPath=<%# DataBinder.Eval(Container, "DataItem.SkinPath")%>'" /></td>
      </tr>
    </table>
    </ItemTemplate>
    <SeparatorTemplate><br /></SeparatorTemplate>
    </asp:Repeater>
    <br />
    <cc1:aspnetpager id="Pager" runat="server" AlwaysShow='true' OnPageChanged="Pager_PageChanged"></cc1:aspnetpager>
</div>
<div id="ContentBottom"></div>
</form>
</asp:Content>

