<%@ Page Language="C#" MasterPageFile="../BloggerAdmin.master" AutoEventWireup="true" Inherits="Ruiao.WebSite.Blogger.Admin.Category.CategoryManage" Codebehind="CategoryManage.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">
    <input type="button" onclick="location='CategoryAdd<%=ExtensionName %>?ModuleTypeName=<%=MyModuleType.TypeName %>'" value="添加新分类" class="LinkButton" />
    <br />
    <asp:Repeater ID="rpCategoryList" runat="server">
    <HeaderTemplate>
    <table id="CateroryList" class="MainContentTable" cellpadding="3" cellspacing="1">
	<tr class="MainContentList_HeadTR">
		<td class="MainContentList_HeadTD" style="width:30px;">ID</td>
		<td class="MainContentList_HeadTD" style="width:80px;">目录名称</td>
		<td class="MainContentList_HeadTD" style="width:160px;">显示名称</td>
		<td class="MainContentList_HeadTD" style="width:auto;">描述</td>
		<td class="MainContentList_HeadTD" style="width:60px;">是否可见</td>
		<td class="MainContentList_HeadTD" style="width:80px;">操作</td>
	</tr>
    </HeaderTemplate>
    <ItemTemplate>
    	<tr class="MainContentList_ItemTR">
		<td class="MainContentList_ItemTD"><%# DataBinder.Eval(Container, "DataItem.ID")%></td>
		<td class="MainContentList_ItemTD"><%# DataBinder.Eval(Container, "DataItem.Name")%></td>
		<td class="MainContentList_ItemTD"><%# DataBinder.Eval(Container, "DataItem.DisplayName")%></td>
		<td class="MainContentList_ItemTD" style="text-align:left"><%# DataBinder.Eval(Container, "DataItem.Description")%></td>
		<td class="MainContentList_ItemTD"><%# ((bool)DataBinder.Eval(Container, "DataItem.Visible"))?"公开显示":"隐藏显示" %></td>
		<td class="MainContentList_ItemTD"><a href='CategoryEdit<%=ExtensionName %>?ModuleTypeName=<%=MyModuleType.TypeName %>&CategoryID=<%# DataBinder.Eval(Container, "DataItem.ID")%>'>编辑</a> | <a href='CategoryDelete<%=ExtensionName %>?ModuleTypeName=<%=MyModuleType.TypeName %>&CategoryID=<%# DataBinder.Eval(Container, "DataItem.ID")%>'>删除</a></td>
	</tr>
    </ItemTemplate>
    <FooterTemplate>
    </table>
    </FooterTemplate>
    </asp:Repeater>
    <cc1:aspnetpager id="Pager" PageSize="20" runat="server" AlwaysShow="True"></cc1:aspnetpager>
</div>
<div id="ContentBottom"></div>
</form>
</asp:Content>