<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Admin_Remark.aspx.cs" Inherits="QiCms.Web.Admin.Admin_Remark" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="QBSCmsContentPlaceHolder" runat="server">
<form id="TableForm" runat="server">
    <asp:Panel ID="ListPH" 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-commenting"></span> 评论列表</div>
            </div>

            <div class="tpl-block">
                <div class="am-g">
                    <div class="am-u-sm-12">
                        <asp:DataGrid ID="RemarkGrid" runat="server" OnItemDataBound="RemarkGrid_ItemDataBound" OnItemCommand="RemarkGrid_ItemCommand" Width="100%" GridLines="None" CssClass="am-table am-table-striped am-table-hover table-main">
					        <Columns>
                                <asp:TemplateColumn ItemStyle-HorizontalAlign="Center" ItemStyle-Width="2%">
							        <HeaderTemplate>
								        <input onclick="checkFormAll(this.checked)" type="checkbox">
							        </HeaderTemplate>
							        <ItemTemplate>
								        <asp:CheckBox ID="RemarkChk" runat="server" />
							        </ItemTemplate>
						        </asp:TemplateColumn>
						        <asp:TemplateColumn HeaderText="评论内容" ItemStyle-Width="50%">
							        <ItemTemplate>
								        <img alt="评论内容" src="/template/admin/images/admin_topic.gif" width="16" /><span title='<%# Eval("RemarkBody") %>'><%# Format(Eval("RemarkBody").ToString(), 30) %></span>
							        </ItemTemplate>
						        </asp:TemplateColumn>
						        <asp:BoundColumn DataField="MemberName" HeaderText="发表人" ItemStyle-Width="20%"></asp:BoundColumn>
                                <asp:TemplateColumn HeaderText="所属内容ID" ItemStyle-Width="20%">
				                    <ItemTemplate>
					                    <a href='../Show.aspx?id=<%# Eval("Articleid") %>'><%# Eval("Articleid") %></a>
				                    </ItemTemplate>
			                    </asp:TemplateColumn>
						        <asp:BoundColumn DataField="AddTime" DataFormatString="{0:yyyy-MM-dd}" HeaderText="评论日期" ItemStyle-Width="20%"></asp:BoundColumn>
						        <asp:BoundColumn DataField="MemberIP" HeaderText="IP地址" ItemStyle-Width="20%"></asp:BoundColumn>
                                <asp:TemplateColumn ItemStyle-CssClass="am-btn-group am-btn-group-xs" HeaderText="操作" 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-commenting"></span>编辑</asp:LinkButton>
						            </ItemTemplate>
					            </asp:TemplateColumn>
					        </Columns>
				        </asp:DataGrid>
                    <hr>
                    </div>
                </div>
                <div class="am-cf">
                    <div class="am-fr">
                        <ul class="am-pagination tpl-pagination">
                            <%= Pagination %><%= NextPrev %>
                        </ul>
                    </div>
                </div>
                
                <div class="am-text-danger" style="font-size:12px;margin-top: 10px; width: 100%; text-align: center">
				    <asp:Button ID="DeleteBtn" CssClass="am-btn am-btn-primary tpl-btn-bg-color-success" runat="server" Text="删除" onclick="DeleteBtn_Click" />
			    </div>
            </div>
            <div class="tpl-alert"></div>
        </div>
    </div>
    </asp:Panel>
    <asp:Panel ID="EditPH" runat="server">
        <div class="tpl-content-wrapper">
        <ol class="am-breadcrumb">
        <li><a href="Index.aspx" class="am-icon-home">首页</a></li>
        <li><a href="Admin_Remark.aspx">评论管理</a></li>
        <li class="am-active">编辑评论</li>
        </ol>
        <div class="tpl-portlet-components">
            <div class="am-g tpl-amazeui-form">
                <div class="am-form am-form-horizontal">
                    <div class="am-form-group">
                        <label for="user-name" class="am-u-sm-3 am-form-label">评论内容：</label>
                        <div class="am-u-sm-9">
                            <textarea  name="RemarkBodyTxt" id="RemarkBodyTxt" style="width:90%;float:left;" rows="5" placeholder="最大255字" runat="server"></textarea>
                            <asp:RequiredFieldValidator ID="RemarkBodyValR" runat="server" ErrorMessage="*" Display="Dynamic"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="am-form-group">
                        <div class="am-u-sm-9 am-u-sm-push-3">
                            <asp:Button ID="RemarkEditBtn" CssClass="am-btn am-btn-primary tpl-btn-bg-color-success" runat="server" OnClick="RemarkEditBtn_Click" Text="修改"/>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
    </asp:Panel>
</form>
</asp:Content>
