<%@ Page Language="c#" Inherits="Web.Wpdcc.ManageContributePostil" CodeBehind="manageContributePostil.aspx.cs" %>
<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <title>ManageContributePostil</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--#include file = "../Css/head.htm" -->
</head>
<body>
    <div class="list-func-box func-box">
        <div class="hd">
            您的位置：系统数据设置 &gt; 投稿批注管理</div>
        <form id="Form1" method="post" runat="server">
        <div class="bd">
            <div class="function-hd">
                <div class="search-box pull-right">
                    
                </div>
                <div class="action-field">
                标题：
                    <asp:TextBox ID="txtTitle" runat="server" class="input-md" notNull="true" MaxLength="250" msgname="标题"></asp:TextBox>
                    &nbsp;&nbsp;内容：
                    <asp:TextBox ID="txtContent" runat="server" Rows="10" class="input-md w3" notNull="true" msgname="内容"></asp:TextBox>
                    &nbsp;&nbsp;
                    <asp:Button ID="add" class="btn btn-sm btn-primary" runat="server" Text="添 加" OnClick="add_Click"></asp:Button>
                </div>
            </div>
            <asp:DataGrid ID="adminDataGrid" class="table table-striped table-bordered table-hover" runat="server" AutoGenerateColumns="False"
                Width="100%" OnItemCommand="editAdmin">
                <Columns>
                    <asp:BoundColumn DataField="pkId" HeaderText="ID" HeaderStyle-CssClass="title">
                        <HeaderStyle Width="50px" />
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="title" HeaderText="标题" HeaderStyle-CssClass="title">
                        <HeaderStyle Width="200px" />
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="content" HeaderText="内容" HeaderStyle-CssClass="title">
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="isSystem" HeaderText="是否系统" HeaderStyle-CssClass="title">
                        <HeaderStyle Width="60px" />
                    </asp:BoundColumn>
                    <asp:TemplateColumn HeaderText="执行" HeaderStyle-CssClass="title">
                        <ItemTemplate>
                            <div class="action-buttons">
                            <asp:LinkButton ID="btnEdit" runat="server" CommandName="Edit"  data-toggle="tooltip" data-placement="bottom" title="编辑" ><i class="ace-icon fa fa-pencil bigger-120 blue"></i></asp:LinkButton>
                            <asp:LinkButton ID="btnDel" runat="server"  CausesValidation="False" CommandName="del" OnClientClick="return confirm('注意：你确定要删除吗？');"  data-toggle="tooltip" data-placement="bottom" title="删除"><i class="ace-icon fa fa-trash-o bigger-120 red"></i></asp:LinkButton>
                                </div>
                        </ItemTemplate>
                        <HeaderStyle Width="140px" />
                    </asp:TemplateColumn>
                </Columns>
            </asp:DataGrid>
        </div>
        </form>
    </div>
    <!--#include file = "../Css/foot.htm" -->
    <script type="text/javascript">
        $(document).ready(function () {

            $("#ok").click(function () {
                return confirm("确定继续执行此操作吗？");
            });
            //统一检查页面输入项合法性
            $("#add").click(function () {
                return checkAllValidate();
            });

        });
    </script>
</body>
</html>