<%@ page language="C#" masterpagefile="~/Manage/I/Default.master" autoeventwireup="true" inherits="Manage_I_Content_CorrectManage, App_Web_oxnlb5iw" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<asp:Content ContentPlaceHolderID="head" runat="Server"><title>纠错报告</title></asp:Content>
<asp:Content ContentPlaceHolderID="Content" runat="Server">
    <div style="margin-bottom: 10px;">
        <span><a href="AddSource.aspx" class="btn btn-primary">添加来源</a></span>&nbsp;&nbsp;<span><a href="Author.aspx" class="btn btn-primary">添加作者</a></span>&nbsp;&nbsp;<span><a href="AddKeyWord.aspx" class="btn btn-primary">添加关键字</a></span>
    </div>
    <!--end navigation-->
    <div class="clearfix"></div>
    <ZL:ExGridView ID="Egv" runat="server" AutoGenerateColumns="False" DataKeyNames="CorrectID" PageSize="10" OnPageIndexChanging="Egv_PageIndexChanging" IsHoldState="false" AllowPaging="True" AllowSorting="True" OnRowCommand="Lnk_Click" CssClass="table table-striped table-bordered table-hover" EnableTheming="False" EnableModelValidation="True" EmptyDataText="无相关数据">
        <Columns>
            <asp:TemplateField HeaderText="选中">
                <ItemTemplate>
                    <input type="checkbox" name="idchk" title="" value='<%#Eval("CorrectID") %>' />
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle Width="5%" />
            </asp:TemplateField>
            <asp:BoundField DataField="CorrectID" HeaderText="ID">
                <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle Width="5%" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="网页标题">
                <HeaderStyle Width="20%" />
                <ItemTemplate>
                    <a href="<%#Eval("CorrectUrl")%>" title="点击查看出错页" target="_parent"><%#Eval("CorrectTitle")%></a>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="left" />
            </asp:TemplateField>
            <asp:BoundField DataField="CorrectDetail" HeaderText="详细信息">
                <ItemStyle HorizontalAlign="left" />
                <HeaderStyle Width="30%" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="错误类型">
                <HeaderStyle Width="10%" />
                <ItemTemplate>
                    <%# GetCTitle(Eval("CorrectType", "{0}"))%>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:BoundField DataField="CorrectPer" HeaderText="报告人">
                <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle Width="10%" />
            </asp:BoundField>
            <asp:BoundField DataField="PerEmail" HeaderText="报告人Email">
                <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle Width="10%" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <asp:LinkButton ID="LinkButton3" runat="server" CommandName="Del" CommandArgument='<%# Eval("CorrectID") %>' OnClientClick="return confirm('你确定将该数据删除吗？')">删除</asp:LinkButton>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" />
            </asp:TemplateField>
        </Columns>
        <PagerStyle HorizontalAlign="Center" />
    </ZL:ExGridView>
    <asp:Button ID="btnDeleteAll" Style="width: 110px;" class="btn btn-primary" runat="server" Text="批量删除" OnClick="btnDeleteAll_Click"
        OnClientClick="if(!IsSelectedId()){alert('请选择删除项');return false;}else{return confirm('你确定要将所有选择项删除吗？')}" UseSubmitBehavior="true" />
</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="ScriptContent">
    <script type="text/javascript" src="/JS/SelectCheckBox.js"></script>
    <script type="text/javascript" src="/JS/ICMS/ZL_Common.js"></script>
    <script>
        $().ready(function () {
            
        });
    </script>
</asp:Content>
