<%@ page language="C#" masterpagefile="~/Manage/I/Default.master" autoeventwireup="true" inherits="Manage_I_Guest_BkCheck, App_Web_5ay3adzg" validaterequest="false" enableviewstatemac="false" 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;">
        <div class="pull-left" style="line-height:32px;">
            按词条名搜索：
        </div>
        <div class="input-group pull-left" style="width:300px;">
            <asp:TextBox CssClass="form-control" ID="Key_T" runat="server"></asp:TextBox>
            <span class="input-group-btn">
                <asp:Button ID="SearchBtn" CssClass="btn btn-default" runat="server" Text="搜索" OnClick="SearchBtn_Click" />
            </span>
        </div>
    </div><div class="clearfix"></div>
    <div class="borders">
        <ul class="nav nav-tabs">
            <li class="active"><a href="#tab0" onclick="ShowTabss(0)" data-toggle="tab">所有词条</a></li>
            <li><a href="#tab1" data-toggle="tab" onclick="ShowTabss(1)"><%=lang.LF("待审核")%></a></li>
            <li><a href="#tab2" data-toggle="tab" onclick="ShowTabss(2)"><%=lang.LF("已审核")%></a></li>
            <li><a href="#tab3" data-toggle="tab" onclick="ShowTabss(3)">新版本待审</a></li>
        </ul>
    </div>
    <div class="user_t">
        <ZL:ExGridView ID="Egv" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" PageSize="10" OnRowDataBound="Egv_RowDataBound" OnPageIndexChanging="Egv_PageIndexChanging" IsHoldState="false" OnRowCommand="Lnk_Click" AllowPaging="True" AllowSorting="True" CssClass="table table-striped table-bordered table-hover" EnableTheming="False" EnableModelValidation="True" EmptyDataText="无相关数据">
            <Columns>
                <asp:TemplateField HeaderText="选择">
                    <HeaderStyle Width="5%" Height="25px" />
                    <ItemStyle HorizontalAlign="Center" />
                    <ItemTemplate>
                        <input type="checkbox" name="idchk" title="" value='<%#Eval("ID") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="" HeaderStyle-Width="0%" Visible="false">
                    <ItemTemplate>
                    </ItemTemplate>
                    <HeaderStyle Width="0%"></HeaderStyle>
                    <ItemStyle CssClass="tdbg"></ItemStyle>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="ID" HeaderStyle-Width="5%">
                    <ItemTemplate>
                        <%#Eval("ID")%>
                    </ItemTemplate>
                    <HeaderStyle Width="5%"></HeaderStyle>
                    <ItemStyle CssClass="tdbg"></ItemStyle>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="词条" HeaderStyle-Width="12%">
                    <ItemTemplate>
                        <%#Eval("Tittle")%>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="txtName" class="l_input" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Tittle")%>'>'></asp:TextBox>
                    </EditItemTemplate>
                    <HeaderStyle Width="10%"></HeaderStyle>
                    <ItemStyle CssClass="tdbg"></ItemStyle>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="创建人" HeaderStyle-Width="12%">
                    <ItemTemplate>
                        <%#Eval("UserName")%>
                    </ItemTemplate>
                    <HeaderStyle Width="10%"></HeaderStyle>
                    <ItemStyle CssClass="tdbg"></ItemStyle>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="创建时间" HeaderStyle-Width="10%">
                    <ItemTemplate>
                        <%#Eval("AddTime")%>
                    </ItemTemplate>
                    <HeaderStyle Width="10%"></HeaderStyle>
                    <ItemStyle CssClass="tdbg"></ItemStyle>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="修改时间" HeaderStyle-Width="10%">
                    <ItemTemplate>
                        <%#Eval("UpdateTime")%>
                    </ItemTemplate>
                    <HeaderStyle Width="10%"></HeaderStyle>
                    <ItemStyle CssClass="tdbg"></ItemStyle>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="分类">
                    <ItemTemplate>
                        <%#Eval("Classification") %>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="推荐" HeaderStyle-Width="8%">
                    <ItemStyle HorizontalAlign="Center" />
                    <ItemTemplate>
                        <%#getElite(Eval("Elite").ToString())%>
                    </ItemTemplate>
                    <HeaderStyle Width="8%"></HeaderStyle>
                    <ItemStyle CssClass="tdbg"></ItemStyle>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="合并状态" HeaderStyle-Width="8%">
                    <ItemStyle HorizontalAlign="Center" />
                    <ItemTemplate>
                        <%#getsta(Eval("Merge").ToString())%>
                    </ItemTemplate>
                    <HeaderStyle Width="8%"></HeaderStyle>
                    <ItemStyle CssClass="tdbg"></ItemStyle>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="审核">
                    <ItemTemplate>
                        <%#getcommend(Eval("status"))%>
                    </ItemTemplate>
                    <ItemStyle CssClass="tdbg"></ItemStyle>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <a href="/Guest/Baike/Details.aspx?soure=manager&tittle=<%#Server.UrlEncode(Eval("Tittle").ToString()) %>" target="_blank">预览</a>
                        |
                        <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%#Eval("ID") %>' CommandName="Audit" CausesValidation="false">审核</asp:LinkButton>
                        | <a href="BkAlter.aspx?id=<%#Server.UrlEncode(Eval("ID").ToString()) %>" target="_self">修改</a>
                        |
                    <asp:LinkButton ID="LinkButton2" runat="server" OnClientClick="return confirm('确实要删除吗？');" CommandArgument='<%#Eval("ID") %>' CommandName="Del" CausesValidation="false">删除</asp:LinkButton>
                        | <a href="baikeMerger.aspx?tittle=<%#Eval("Tittle").ToString()%>">合并词条</a>|
                    <a href="InfoList.aspx?tittle=<%#Eval("Tittle").ToString()%>">信息列表</a>
                    </ItemTemplate>
                    <ItemStyle CssClass="tdbg" HorizontalAlign="Center" />
                </asp:TemplateField>
            </Columns>
            <RowStyle ForeColor="Black" HorizontalAlign="Center" />
            <PagerStyle CssClass="tdbg" ForeColor="Black" HorizontalAlign="Center" />
        </ZL:ExGridView>
    </div>
    <asp:Button ID="Button1" runat="server" Text="批量删除" OnClick="BtnSubmit1_Click" UseSubmitBehavior="False" OnClientClick="if(!confirm('确定要批量删除词条吗？')){return false;}" CssClass="btn btn-primary" />
    <asp:Button ID="Button2" runat="server" Text="批量审核" OnClick="BtnSubmit2_Click" UseSubmitBehavior="False" CssClass="btn btn-primary" />
    <asp:Button ID="Button3" runat="server" Text="取消审核" OnClick="BtnSubmit3_Click" UseSubmitBehavior="False" CssClass="btn btn-primary" />
    <asp:Button ID="Button4" runat="server" Text="推荐" OnClick="BtnSubmit4_Click" UseSubmitBehavior="False" CssClass="btn btn-primary" />
    <asp:Button ID="Button5" runat="server" Text="取消推荐" OnClick="BtnSubmit5_Click" UseSubmitBehavior="False" CssClass="btn btn-primary" />
    <asp:Button ID="Button8" runat="server" Text="特色" OnClick="BtnSubmit8_Click" UseSubmitBehavior="False" CssClass="btn btn-primary" />
    <asp:Button ID="Button9" runat="server" Text="取消特色" OnClick="BtnSubmit9_Click" UseSubmitBehavior="False" CssClass="btn btn-primary" />
    <asp:Button ID="Button6" runat="server" Text="每日图片" OnClick="BtnSubmit6_Click" UseSubmitBehavior="False" CssClass="btn btn-primary" />
    <asp:Button ID="Button7" runat="server" Text="取消每日图片" OnClick="BtnSubmit7_Click" UseSubmitBehavior="False" CssClass="btn btn-primary" />
    <style>
        th {
            text-align: center;
        }
    </style>
    <script type="text/javascript" src="/JS/SelectCheckBox.js"></script>
    <script type="text/javascript" src="/JS/ICMS/ZL_Common.js"></script>
    <script type="text/javascript">
        var tID = 0;//border:1px solid #fff;
        var arrTabTitle = new Array("TabTitle0", "TabTitle1", "TabTitle2", "TabTitle3");
        window.onload = function () {
            pload();
        }
        function ShowTabss(ID) {
            location.href = 'BkCheck.aspx?NodeID=<%=Request.QueryString["NodeID"] %>&id=' + ID + '&type=' + ID;
        }
        function pload() {
            var ID = '<%=Request.QueryString["id"]%>';
            if (ID != tID) {
                document.getElementById(arrTabTitle[tID].toString()).className = "tabtitle";
                document.getElementById(arrTabTitle[ID].toString()).className = "titlemouseover";
                tID = ID;
            }
        }
        $().ready(function () {
            if (getParam("type")) {
                $("li a[href='#tab" + getParam("type") + "']").parent().addClass("active").siblings("li").removeClass("active");;
            }
        })
        function displayToolbar() {
            $("#toolbar1").toggle("fast");
        }
        $().ready(function () {
            
        });
    </script>
</asp:Content>
