<%@ 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/adminCss.htm" -->

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

</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 fr">
                    
                </div>
                <div class="action-field">
                标题：
                    <asp:TextBox ID="txtTitle" runat="server" class="input-txt input-txt1" notNull="true" MaxLength="250" msgname="标题"></asp:TextBox>
                    &nbsp;&nbsp;内容：
                    <asp:TextBox ID="txtContent" runat="server" Rows="10" class="input-txt input-txt3" notNull="true" msgname="内容"></asp:TextBox>
                    &nbsp;&nbsp;
                    <asp:Button ID="add" class="btn" runat="server" Text="添 加" OnClick="add_Click"></asp:Button>
                </div>
            </div>
            <asp:DataGrid ID="adminDataGrid" class="list-table" 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>
                            <asp:LinkButton ID="btnEdit" runat="server" CommandName="Edit" CssClass="blue">编辑</asp:LinkButton>&nbsp;&nbsp;
                            <asp:LinkButton ID="btnDel" runat="server" CssClass="blue" CausesValidation="False" CommandName="del" OnClientClick="return confirm('注意：你确定要删除吗？');">删除</asp:LinkButton>
                        </ItemTemplate>
                        <HeaderStyle Width="140px" />
                    </asp:TemplateColumn>
                </Columns>
            </asp:DataGrid>
        </div>
        </form>
    </div>
</body>
</html>