<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="manageNewsInfo.aspx.cs"
    Inherits="Web.Wpdcc.manageNewsInfo" %>

<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <title>用户发文明细</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--#include file = "../Css/head.htm" -->
</head>
<body>
    <div class="main-content-inner">
        <!-- #section:basics/content.breadcrumbs -->
        <div class="breadcrumbs" id="breadcrumbs">
            <script type="text/javascript">
                try { ace.settings.check('breadcrumbs', 'fixed') } catch (e) { }
            </script>
            <ul class="breadcrumb">
                <li>
                    <i class="ace-icon fa  fa-desktop"></i>
                    <a href="welcome.aspx">主页</a>
                </li>
                <li>网站数据分析
                </li>
                <li class="active">用户发文明细</li>
            </ul>
            <!-- /.breadcrumb -->

            <!-- /section:basics/content.searchbox -->
        </div>
        <!-- /section:basics/content.breadcrumbs -->
        <div class="page-content">
            <div class="row">
                <div class="col-xs-12">
                    <!-- PAGE CONTENT BEGINS -->
                    <div class="list-func-box func-box">
                        <form id="form1" runat="server">
                            <div class="bd">
                                <div class="function-hd">
                                    <div class="search-box pull-right">
                                    </div>
                                    <!--/search-box-->
                                    <div class="action-field">
                                        <div class="col-xs-8 col-sm-12">
                                            <div>
                                                <span>&emsp;所属栏目：</span><asp:DropDownList ID="ddlbigclass" runat="server" DataTextField="name" DataValueField="pkId" CssClass="input-md">
                                                </asp:DropDownList>
                                                &nbsp;&nbsp;文章标题：<asp:TextBox ID="txtTitle" runat="server" CssClass="input-md" ToolTip="标题支持模糊查询"></asp:TextBox>
                                                <span class="pull-left">发文时间：</span>
                                                <div class="input-daterange input-group pull-left">
                                                    <input id="txtStartDate" runat="server" class="input-md form-control" type="text">
                                                    <span class="input-group-addon">
                                                        <i class="fa fa-exchange"></i>
                                                    </span>
                                                    <input id="txtEndDate" runat="server" class="input-md form-control" type="text">
                                                </div>
                                            </div>
                                            <!-- /section:plugins/date-time.datepicker -->
                                            <div class="hr4"></div>
                                            <div>
                                                审核状态：<asp:DropDownList ID="ddlPassed" runat="server" CssClass="input-md">
                                                    <asp:ListItem Text="<全部>" Value="2"></asp:ListItem>
                                                    <asp:ListItem Text="通过" Value="1"></asp:ListItem>
                                                    <asp:ListItem Text="待审" Value="0"></asp:ListItem>
                                                </asp:DropDownList>
                                                &nbsp;&emsp;发布人：
                                <asp:DropDownList ID="ddlUserId" runat="server" DataTextField="fullname" DataValueField="pkid" CssClass="input-md"></asp:DropDownList>
                                                &nbsp;&nbsp;审核人员：<asp:DropDownList ID="ddlAudituserId" runat="server" DataTextField="fullname" DataValueField="pkid" CssClass="input-md"></asp:DropDownList>
                                                &nbsp;&nbsp;发布部门：<asp:DropDownList ID="ddlDept" runat="server" DataTextField="name" DataValueField="pkId" CssClass="input-md"></asp:DropDownList>
                                                &nbsp;&nbsp;
                    <%--  等级:<asp:DropDownList ID="ddlGrade" runat="server" DataTextField="name" DataValueField="pkId">
                    </asp:DropDownList>    &nbsp;&nbsp;--%>
                                                <asp:Button ID="btnQuery" class="btn btn-sm btn-primary" runat="server" Text="查询" OnClick="Btn_Click" />
                                                &nbsp;&nbsp;
                    <asp:Button ID="btnExp" class="btn btn-sm btn-primary" runat="server" Text="导出" OnClick="Btn_Click" />
                                            </div>
                                        </div>

                                    </div>
                                    <!--/action-field-->
                                </div>
                                <div class="function-bd">
                                    <!--[if lte IE 7]><div style="zoom:1"><![endif]-->
                                    <asp:GridView ID="GridView1" runat="server" class="table table-striped table-bordered table-hover" AutoGenerateColumns="false">

                                        <Columns>
                                            <asp:BoundField HeaderText="编号" DataField="pkId" />
                                            <asp:TemplateField HeaderText="标题" HeaderStyle-CssClass="title">
                                                <ItemTemplate>
                                                    <asp:Label ID="lbStatus" runat="server" Font-Bold="True" ForeColor="Red" Text='<%# Eval("isduplicated").ToString()=="1"?"[抄送]":"" %>'></asp:Label>
                                                    <asp:HyperLink ID="hyTitle" runat="server" Text='<%# Eval("intactTitle") %>' NavigateUrl='<%# "../newsInfo.aspx?pkId=" + Eval("pkId") %>'
                                                        Target="_blank"></asp:HyperLink>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:BoundField HeaderText="所属栏目" DataField="bigclassname" />
                                            <asp:BoundField HeaderText="发布部门" DataField="deptname" />
                                            <asp:BoundField HeaderText="发布人" DataField="fullname" />
                                            <asp:BoundField HeaderText="发布时间" DataField="updateTime" />
                                            <asp:BoundField HeaderText="审核人" DataField="auditUser" />
                                        </Columns>
                                    </asp:GridView>
                                    <asp:Label ID="lbInfo" runat="server"></asp:Label>
                                    <!--[if lte IE 7]></div><![endif]-->
                                </div>
                                <!--/function-bd-->
                            </div>
                            <div class="ft">
                                <div class="pagination">
                                    <asp:Label ID="ShowPage" runat="server"></asp:Label>
                                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
                                        ShowSummary="False" />
                                </div>
                                <!--/action-field-->
                            </div>
                        </form>
                    </div>
                    <!-- PAGE CONTENT ENDS -->
                </div>
            </div>
        </div>
        <!-- /.page-content -->
    </div>
    <!--#include file = "../Css/foot.htm" -->
    <script type="text/javascript">
        jQuery(function ($) {

            //datepicker plugin
            //link
            $('.date-picker').datepicker({
                autoclose: true,
                todayHighlight: true
            })
            //show datepicker when clicking on the icon
            .next().on(ace.click_event, function () {
                $(this).prev().focus();
            });

            //or change it into a date range picker
            $('.input-daterange').datepicker({ autoclose: true });
        });
    </script>
</body>
</html>