<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Admin_Content.aspx.cs" Inherits="QiCms.Web.Admin.Admin_Content" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="QBSCmsContentPlaceHolder" runat="server">
    <div class="tpl-content-wrapper">
            <ol class="am-breadcrumb">
                <li><a href="Index.aspx" class="am-icon-home">首页</a></li>
                <li class="am-active">内容管理</li>
            </ol>
            <div class="tpl-portlet-components">
                <div class="portlet-title">
                    <div class="caption font-green bold"><span class="am-icon-bars"></span> 内容列表</div>
                    <div class="tpl-portlet-input tpl-fz-ml">
                        <div class="portlet-input input-small input-inline">
                            <div class="input-icon right">
                                <form name="frmSearch" method="post" action="Admin_Content.Aspx">
                                <div class="am-input-group am-input-group-sm">
                                <input type="text" name="keyword" id="keyword" class="am-form-field" placeholder="搜索...">
                                <span class="am-input-group-btn">
                                    <button class="am-btn  am-btn-default am-btn-success tpl-am-btn-success am-icon-search" type="submit"></button>
                                </span>
                                </div>
                                </form>
                            </div>
                        </div>
                    </div>


                </div>
                <form id="TableForm" runat="server">
                <div class="tpl-block">
                    <div class="am-g">
                        <div class="am-u-sm-12 am-u-md-2">
                            <div class="am-btn-group am-btn-group-xs">
                                <button type="button" class="am-btn am-btn-default am-btn-success" onclick="window.location.href='Admin_ContentMg.Aspx?Act=Add';" ><span class="am-icon-plus"></span> 新增内容</button>
                            </div>
                        </div>
                        <div class="am-u-sm-12 am-u-md-3" style="float:left;">
                            <div class="am-form-group">
                                <asp:DropDownList ID="ClassDropAll" runat="server" data-am-selected="{btnSize: 'sm'}" AutoPostBack="True" OnSelectedIndexChanged="ClassDropAll_SelectedIndexChanged"></asp:DropDownList>
                            </div>
                        </div>
                    </div>
                    <div class="am-g">
                        <div class="am-u-sm-12">
                            <asp:DataGrid ID="ArticleGrid" runat="server" OnItemDataBound="ArticleGrid_ItemDataBound" Width="100%" GridLines="None" CssClass="am-table am-table-striped am-table-hover table-main" OnItemCommand="ArticleGrid_ItemCommand">
	                            <Columns>
                                    <asp:TemplateColumn ItemStyle-Width="30">
			                            <HeaderTemplate>
				                            <input onclick="checkFormAll(this.checked)" type="checkbox" />
			                            </HeaderTemplate>
			                            <ItemTemplate>
				                            <asp:CheckBox ID="ArticleChk" runat="server" />
			                            </ItemTemplate>
		                            </asp:TemplateColumn>
                                    <asp:BoundColumn DataField="Articleid" HeaderText="ID" ItemStyle-Width="50"></asp:BoundColumn>
		                            <asp:TemplateColumn HeaderText="标题" ItemStyle-Width="30%">
			                            <ItemTemplate>
				                            <img alt="内容标题" src="/template/admin/images/article_pass.gif"  border='0'/>
				                            <%# Format(Eval("Title").ToString(),30) %>
				                            <%# (bool)Eval("ImgArt") ? "<img alt='图片内容' src='/template/admin/images/admin_img.gif' border='0' />" : ""%>
			                            </ItemTemplate>
		                            </asp:TemplateColumn>
                                    <asp:BoundColumn DataField="ClassName" HeaderText="所属分类" ItemStyle-Width="80"></asp:BoundColumn>
		                            <asp:BoundColumn DataField="AddTime" DataFormatString="{0:yyyy年MM月dd日}" HeaderText="发布日期" ItemStyle-Width="120"></asp:BoundColumn>
		                            <asp:HyperLinkColumn DataNavigateUrlField="Articleid" DataNavigateUrlFormatString="Admin_Remark.aspx?id={0}" HeaderText="评论" ItemStyle-Width="60" Text="评论"></asp:HyperLinkColumn>
                                    <asp:TemplateColumn ItemStyle-CssClass="am-btn-group am-btn-group-xs" HeaderText="操作" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="100%">
				                            <ItemTemplate>
                                                <asp:LinkButton ID="EditBtn" runat="server" CommandName="Edit" CssClass="am-btn am-btn-default am-btn-xs am-text-secondary"><span class="am-icon-pencil-square-o"></span>编辑</asp:LinkButton>
					                            <asp:LinkButton ID="DeleteBtn" runat="server" CommandName="Delete" CssClass="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only"><span class="am-icon-trash-o"></span>删除</asp:LinkButton>
				                            </ItemTemplate>
			                        </asp:TemplateColumn>
	                            </Columns>
                            </asp:DataGrid>
                                <div class="am-cf">

                                    <div class="am-fr">
                                        <ul class="am-pagination tpl-pagination">
                                            <%= NextPrev %><%= Pagination %>
                                        </ul>
                                    </div>
                                </div>
                                <hr>
                        </div>
                        <div class="am-text-danger">
                            <div class="am-u-sm-9 am-u-sm-push-3" style="float: left;width: 120px">
                                <asp:Button ID="DeleteBtnAll" runat="server" OnClick="DeleteBtnAll_Click" Text="删除" CssClass="am-btn am-btn-primary tpl-btn-bg-color-success" />
                            </div>
                            <div class="am-u-sm-12 am-u-md-3" style="float: left; margin-left: 25%;">
                                <div class="am-form-group">
	                                <asp:DropDownList ID="ClassDrop" runat="server" data-am-selected="{btnSize: 'sm'}"></asp:DropDownList>
                                </div>
                            </div>
                            <div class="am-u-sm-9 am-u-sm-push-3" style="float: left;margin-left: -27%;width: 120px">
	                            <asp:Button ID="ChangeClassBtn" runat="server" OnClick="ChangeClassBtn_Click" Text="转移" CssClass="am-btn am-btn-primary tpl-btn-bg-color-success" />
                            </div>
			            </div>
                    </div>
                </div>
                </form>
                
            </div>
        </div>
</asp:Content>
